Do not allow deactivate
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
[Need Smilies? Get Me Smileys!

Forum Jump:

Users browsing this thread: 1 Guest(s)