MyBB Community Forums

Full Version: Do not allow deactivate
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
thanks for the code dennis Smile