*

Loma

  • ***
  • 69 posts
  • Loma
need custom rout in admin panel
« on: November 21, 2017, 03:49:11 PM »
i hate to edit code every plugin update please make custom rout in next version

thank you so much

*

MB Themes

Re: need custom rout in admin panel
« Reply #1 on: November 21, 2017, 04:05:02 PM »
@Loma
What code?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Loma

  • ***
  • 69 posts
  • Loma
Re: need custom rout in admin panel
« Reply #2 on: November 22, 2017, 03:55:08 PM »

// ROUTES
osc_add_route('osp-item-pay', 'osclasspay/itempay/([0-9]+)', 'osclasspay/itempay/{itemId}', osc_plugin_folder(__FILE__).'user/item_pay.php');
osc_add_route('osp-item-pay-publish', 'osclasspay/itempaypub/([0-9]+)/([0-9]+)', 'osclasspay/itempaypub/{itemId}/{isPublish}', osc_plugin_folder(__FILE__).'user/item_pay.php');
osc_add_route('osp-item-pay-remove', 'osclasspay/itempaydel/(.+)/([0-9]+)', 'osclasspay/itempaydel/{removeType}/{itemId}', osc_plugin_folder(__FILE__).'user/item_pay.php');
osc_add_route('osp-item', 'osclasspay/item', 'osclasspay/item', osc_plugin_folder(__FILE__).'user/item.php', true);
osc_add_route('osp-item-page', 'osclasspay/pageitem/([0-9]+)', 'osclasspay/pageitem/{pageId}', osc_plugin_folder(__FILE__).'user/item.php', true);
osc_add_route('osp-cart', 'osclasspay/cart',  'osclasspay/cart', osc_plugin_folder(__FILE__).'user/cart.php', true);
osc_add_route('osp-cart-update', 'osclasspay/updatecart/(.+)', 'osclasspay/updatecart/{product}', osc_plugin_folder(__FILE__).'user/cart.php', true);
osc_add_route('osp-cart-remove', 'osclasspay/removecart/(.+)', 'osclasspay/removecart/{remove}', osc_plugin_folder(__FILE__).'user/cart.php', true);
osc_add_route('osp-pack', 'osclasspay/pack', 'osclasspay/pack', osc_plugin_folder(__FILE__).'user/pack.php', true);
osc_add_route('osp-membership', 'osclasspay/membership', 'osclasspay/membership', osc_plugin_folder(__FILE__).'user/group.php', true);
osc_add_route('osp-banner', 'osclasspay/banner', 'osclasspay/banner', osc_plugin_folder(__FILE__).'user/banner.php', true);
osc_add_route('osp-banner-remove', 'osclasspay/removebanner/(.+)', 'osclasspay/removebanner/{removeId}', osc_plugin_folder(__FILE__).'user/banner.php', true);
osc_add_route('osp-order', 'osclasspay/order', 'osclasspay/order', osc_plugin_folder(__FILE__).'user/order.php', true);
osc_add_route('osp-payments', 'osclasspay/payments/([0-9]+)', 'osclasspay/payments/{history}', osc_plugin_folder(__FILE__).'user/payments.php', true);
osc_add_route('osp-restrict', 'osclasspay/restrict/([^\/]+)', 'osclasspay/restrict/{category}', osc_plugin_folder(__FILE__).'user/restrict.php', false);
osc_add_route('osp-admin-mark', 'osclasspay/admin/mark/(.+)/([0-9]+)/([0-9]+)/([0-9]+)/([0-9]+)', 'osclasspay/admin/mark/{type}/{itemId}/{what}/{iPage}/{iDisplayLength}', osc_plugin_folder(__FILE__).'admin/mark.php');
osc_add_route('osp-wallet', 'osclasspay/wallet/([^\/]+)/(.+)/([^\/]+)/([^\/]+)/(.+)', 'osclasspay/wallet/{a}/{fee}/{extra}/{desc}/{product}', osc_plugin_folder(__FILE__).'/user/wallet_pay.php', true);
osc_add_route('osp-transfer', 'osclasspay/transfer/([^\/]+)/([^\/]+)/(.+)', 'osclasspay/transfer/{a}/{extra}/{desc}', osc_plugin_folder(__FILE__).'/user/transfer_pay.php');
osc_add_route('osp-admin-pay', 'osclasspay/adminpay/([^\/]+)/([^\/]+)/(.+)', 'osclasspay/adminpay/{a}/{extra}/{desc}', osc_plugin_folder(__FILE__).'/user/admin_pay.php');
osc_add_route('osp-admin-transfer', 'osclasspay/admin/transfer/([0-9]+)/([0-9]+)', 'osclasspay/admin/transfer/{btId}/{status}', osc_plugin_folder(__FILE__).'admin/gateway.php');


*

MB Themes

Re: need custom rout in admin panel
« Reply #3 on: November 22, 2017, 04:04:52 PM »
@Loma
Still no idea what you mean
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots