Do not allow deactivate
#1
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
Reply
#2
thanks for the code dennis Smile
[Need Smilies? Get Me Smileys!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)