MyStudio Free demo
Uninstall routines — what should they clean up? — follow-up - Printable Version

+- MyStudio Free demo (https://demo.mystudio.forumeze.com)
+-- Forum: Products & Services (https://demo.mystudio.forumeze.com/forum-8.html)
+--- Forum: MyBB (https://demo.mystudio.forumeze.com/forum-9.html)
+---- Forum: Plugins (https://demo.mystudio.forumeze.com/forum-11.html)
+---- Thread: Uninstall routines — what should they clean up? — follow-up (/thread-119.html)



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.