MyBB Community Forums

Full Version: Difference between activate and install
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi!
What is the difference between activate and install in plugin develop?
ACTIVATE = Turned ON , is ACTIVE

A plugin can be "installed" but not activated.

A plugin can not be "activated" if "not installed".
In general:

install = create database tables, settings
activate = make template changes (things that make a plugin *visually* active, if anything)
deactivate = revert template changes
uninstall = deactivate + revert database changes, remove settings

Note: deactivate should not destroy any data the plugin stores.
Thanks ! Smile
(2016-09-25, 02:13 AM)Josh H Wrote: [ -> ]uninstall = deactivate + revert database changes, remove settings

Note: deactivate should not destroy any data the plugin stores.

I wish I would have known this before I uninstalled my plugin and it messed up everything!! Thanks
I tend to add a warning page into my larger plugins on the uninstall step as a "are you really sure" confirmation. Shame that wasn't done as standard.