MyBB Community Forums

Full Version: A tip for new plugin makers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is just a little tip for people who are new to creating plugins, and are wondering what some of the functions do. I'll go over the main 3...
  • pluginName_info()
    • This function basically returns all of the information to the Admin Control Panel once the file is uploaded to inc/plugins.
    • NOTE: THIS FUNCTION IS NEEDED!
  • pluginName_activate()
    • This function activates the plugin, and handles anything that would need to be done to activate the function and make it work properly - such as inserting SQL into the database.
    • NOTE: This function is recommended.
  • pluginName_deactivate()
    • This function does the opposite of pluginName_activate. This function takes all of the information that was done during the installation process, and gets rid of it - SQL insertions, etc.
    • NOTE: This function is recommended.

Kind Regards,
TomL