MyBB Community Forums
Do not allow deactivate - Printable Version

+- MyBB Community Forums (
+-- Forum: Extensions (
+--- Forum: Plugins (
+---- Forum: Plugin Development (
+---- 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