Thread Rating:
  • 10 Vote(s) - 2.7 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] MySubscriptions - Paid Usergroup Subscriptions (Paypal IPN)
#96
Hi, I just want to inform you that your plugin may be broking MyBB features as plugins ones. The cause is this code in your plugin:
 function mysubs_payment_page()
 {
 global $db, $mybb, $header, $headerinclude, $footer, $theme, $lang;
 
 $lang->load('mysubs');

 $settings = ipn_settings();
 
 if(!$settings['enabled']) redirect('index.php', $lang->error_subscriptions_disabled);
 
 if($mybb->input['action'] == 'payments')
 {

PHP
Select All


As you can see, your plugin will redirect to the index page unless it is activated from the settings. Also, as a unrelated suggestion, you should use the _install/_is_installed/_uninstalled functions with this plugin since you add tables to the DB.
Reply


Messages In This Thread
RE: MySubscriptions - Paypal IPN Plugin - by Zueq - 2012-07-31, 08:47 PM
RE: MySubscriptions - Paypal IPN Plugin - by JimR - 2014-02-22, 04:10 PM
RE: MySubscriptions - Paypal IPN Plugin - by ytt - 2014-10-03, 06:49 PM
RE: MySubscriptions - Paid Usergroup Subscriptions (Paypal IPN) - by viable - 2019-03-24, 01:54 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)