Uninstall routines — what should they clean up? — follow-up -
SpammySteve - 08-05-2026
Remember: _activate() should be reversible, _install() owns permanent structures.
xmlhttp.php is the cleanest way to add AJAX endpoints to MyBB.
Hooks are the heart of MyBB plugins — [code=php]$plugins->add_hook('pre_output_page', 'my_func');[/code] is where everything starts.
Any tips, experiences or strong opinions welcome.
-
PatchPat - 08-05-2026
(08-05-2026, 12:41 PM)SpammySteve Wrote: Remember: _activate() should be reversible, _install() owns permanent structures.
The gid=0 trick keeps plugin settings out of the ACP — neat.
Nice thread, following for the replies.