2011-12-20, 06:41 PM
I decided to make something this weekend for new developers that are interested in making plugins for MyBB but don't really know how.
The plugin is attached to this post along with the licence (LGPL 3) and its language file.
About every line is commented and I hope I've made things clear. Note that this is not supposed to teach you how to code in PHP but how to apply your PHP programming knowledge to developing MyBB plugins.
Here's what the plugin does:
Even though the plugin is fairly simple it may be possible that I forgot something or accidentally wrote something incorrectly so in case you notice something wrong please say so.
I'm leaving this thread open in case you have any questions regarding this plugin, however this thread is not the place to ask for anything else besides that.
The plugin is attached to this post along with the licence (LGPL 3) and its language file.
About every line is commented and I hope I've made things clear. Note that this is not supposed to teach you how to code in PHP but how to apply your PHP programming knowledge to developing MyBB plugins.
Here's what the plugin does:
- Installation:
- Adds two settings.
- Adds one table.
- Adds two settings.
- Activation:
- Adds templates.
- Edits existing templates.
- Adds templates.
- Deactivation:
- Removes templates.
- Removes edits made during the activation process.
- Removes templates.
- Uninstallation:
- Removes settings.
- Drops table.
- Removes settings.
- Allows users to input messages from the index page.
- The messages are shown on the index page and under every post, depending on the values of the two settings (they control if the messages are shown on index and at the bottom every post).
Even though the plugin is fairly simple it may be possible that I forgot something or accidentally wrote something incorrectly so in case you notice something wrong please say so.
I'm leaving this thread open in case you have any questions regarding this plugin, however this thread is not the place to ask for anything else besides that.