MyBB Community Forums

Full Version: Help me please to completely uninstall a plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys I am experiencing some issues and I think this plugin can be the problem! Can you please hell me to completely remove all the traces of this plugin?

<?php

$plugins->add_hook('newreply_do_newreply_start', 'reqapp_do');
$plugins->add_hook('newthread_do_newthread_start', 'reqapp_do');

function reqapproval_info()
{
	return array(
		'name'			=> 'Required Approval',
		'description'	=> 'Causes new users posts to require approval, until a specified amount of the users posts have been approved.',
		'website'		=> 'http://www.coderzplanet.net',
		'author'		=> 'Jammerx2',
		'authorsite'	=> 'http://www.coderzplanet.net',
		'version'		=> '1.1',
		'guid'        => '4d65a68dcd928c545b785279664a40ef'
	);
}

function reqapproval_activate()
{
global $db, $mybb;

	$reqapp_group = array(
		"gid"			=> "NULL",
		"name"			=> "reqapproval",
		"title" =>"Required Approval Settings",
		"description"	=> "Settings for the Required Approval plugin.",
		"disporder"		=> "1234567890",
		"isdefault"		=> "no",
	);

	$db->insert_query("settinggroups", $reqapp_group);
	$gid = $db->insert_id();

	$reqapp_setting = array(
		"sid"			=> "NULL",
		'name'			=> 'reqapp',
		'title'			=> 'Required Approvals',
		'description'	=> 'How many approved posts must a user have in order to post freely.',
		'optionscode'	=> 'text',
		'value'			=> '1',
		'disporder'		=> '1',
		'gid'			=> intval($gid),
	);

	$db->insert_query('settings', $reqapp_setting);
	
	$reqapp_setting = array(
		"sid"			=> "NULL",
		'name'			=> 'reqappforums',
		'title'			=> 'Forums',
		'description'	=> 'IDs of forums this will be active in, seperated by comma. (Leave blank for all.)',
		'optionscode'	=> 'text',
		'value'			=> '',
		'disporder'		=> '1',
		'gid'			=> intval($gid),
	);

	$db->insert_query('settings', $reqapp_setting);
	
	rebuild_settings();

}

function reqapproval_deactivate()
{
global $db, $mybb;
$db->delete_query("settinggroups","name='reqapproval'");
	$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='reqapp'");
	$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='reqappforums'");
}


function reqapp_do() {
global $mybb, $fid;
if($mybb->settings['reqapp'] > $mybb->user['postnum'] && (in_array($fid, explode(',', $mybb->settings['reqappforums'])) || !$mybb->settings['reqappforums'])) {
$mybb->user['moderateposts'] = 1;
}
}


?>
Go into PHPmyadmin and delete all the structures related to that plugin. just make sure you disable it in your plugin section.
structures related to that plugin? What do you mean? What files did this plugin modified?
What I do is I download the plugin that I wanted to delete, then I look inside that plugin folder and see what contents is in it and then I look inside my FTP and find those files that is in that folder and remove it. It can't be that many though.
This plugin is only one file called reqapproval.php
It has modified some Mybb core files and that is causing some issues!
If you install and activate any plugin then that add some tables in you database but if you uninstall any plugin all database tables removed so there is no trace now just delete plugin files from ftp
I have it deactivated and deleted form the server. However I am sure there is traces left of it. Is there a way to tell that files did it modified like settings.php!
No i see the plugin code all there settings are just from adding tables and if you deactivated it first so means it deletes all there tables.Btw what issue you are getting
Ok thanks very much maybe it's not the plugin that causes this problem.
http://community.mybb.com/thread-143811.html