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