Thread Rating:
  • 10 Vote(s) - 2.7 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] MySubscriptions - Paid Usergroup Subscriptions (Paypal IPN)
#22
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')
		{

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 Omar G. - 2012-09-22, 05:12 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

Forum Jump:


Users browsing this thread: 1 Guest(s)