Not Solved Plugin Help
#1
Not Solved
Hello,
I'm having a very bad bug out there , lemme explain a bit


Plugin Name: Form Manager v2.0



After i added alot of forms , i deactivated the plugin by mistake , when i activated it again and went to plugin manager , all of them were removed!!!!

==De-Activating the plugin deletes all of the forms <>==
Do you need help? PM Me!
Dont forget , if you find that im helpful and have anything to say give me +1 rep Click HERE
Reply
#2
Not Solved
That plugin is a paid plugin, so you'll need to get help from where you bought it from.

If you deactivated the plugin, then it's a mistake of the plugin author. If you uninstalled the plugin, then that isn't a bug, that's exactly what the plugin is supposed to do.
Reply
#3
Not Solved
It dosen't have uninstall button and deactive button it has only deactive , and yes when i deactivated it

look at the deactive code as you can see it deletes the drop table should i delete the drop table codes?

function form_manager_deactivate() 
{
	global $db;
	$db->query("DROP TABLE ".TABLE_PREFIX."forms");
	$db->query("DROP TABLE ".TABLE_PREFIX."forms_items");
	$db->query("DROP TABLE ".TABLE_PREFIX."forms_protect");
	$db->query("DROP TABLE ".TABLE_PREFIX."form_responses_logged");
}

function form_manager_action_handler(&$action)
{
	$action['forms'] = array('active' => 'forms', 'file' => 'forms.php');
}

function form_manager_nav(&$sub_menu)
{
	global $mybb, $lang;
	end($sub_menu);
	$key = (key($sub_menu))+10;

	if(!$key)
	{
		$key = '50';
	}
	$sub_menu[$key] = array('id' => 'forms', 'title' => "Form Manager", 'link' => "index.php?module=config/forms");
}

Do you need help? PM Me!
Dont forget , if you find that im helpful and have anything to say give me +1 rep Click HERE
Reply
#4
Not Solved
basically deactivation & uninstall functions can be like this
function form_manager_deactivate()
{
}

function form_manager_uninstall()
{
    global $db;
    $db->query("DROP TABLE ".TABLE_PREFIX."forms");
    $db->query("DROP TABLE ".TABLE_PREFIX."forms_items");
    $db->query("DROP TABLE ".TABLE_PREFIX."forms_protect");
    $db->query("DROP TABLE ".TABLE_PREFIX."form_responses_logged");
}
Reply
#5
Not Solved
Well , there is no uninstall function , so ill try deactive and reply

Working , Solved
Do you need help? PM Me!
Dont forget , if you find that im helpful and have anything to say give me +1 rep Click HERE
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)