The website is for sale. Check here for more information.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.
problem with plugin Uninstall ?
I have just finished developing a free plugin for community everything is working fine except Uninstall function

At first I was just using Activate/deactivate and it worked fine,but later I devided the code to follow standard,

No what happens is when I click uninstall (in plugin managment) I receive "successfull" message but control link doesn't change i.e from "Uninstall" to "Install" ideally I should see "Install & activate"

I need to know which specific table enetry is associated with it what I'm doing wrong?

below is my code
PHP Code:
function mymodtools_uninstall()
$db->delete_query("templates""title IN('moderation_tools')");

$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name ='my_address'");
$db->query("DELETE FROM ".TABLE_PREFIX."settinggroups WHERE name='my_tool'");


find_replace_templatesets("showthread_inlinemoderation""#".preg_quote('<option value="myconfigtools">{$lang->my_tools}</option>')."#i"''0);


Problem is now solved Actually I wasn't using is_installed function ,MyBB needs this to determine if a plugin is installed or not..... Wink

PHP Code:
function mymodtools_is_installed () { 


Users browsing this thread: 1 Guest(s)

About MyBB-Plugins

Plug Yourself into the best MyBB AddOn.

Copyright © 2009-2021 MyBB-Plugins Forums.


  • 51,000+ Posts
  • 19,000+ Members
  • 3,600+ Threads

Impressed? For sure
Check Full Stats here