MyBB Community Forums
Do not allow deactivate - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Development (https://community.mybb.com/forum-68.html)
+---- Thread: Do not allow deactivate (/thread-22935.html)



Do not allow deactivate - Dennis Tsang - 2006-02-02

For whatever reason, if you do not want your plugin deactivated, add this to the deactivate function:

global $codename;
$active_plugins[$codename] = $codename;

I have found this useful when writing private plugins for my own forums, which I don't want other administrators to deactivate. I wouldn't expect many plugins to have this anyway Toungue


RE: Do not allow deactivate - Christian - 2006-02-04

thanks for the code dennis Smile