09-09-2026, 09:03 PM
Hooks are the heart of MyBB plugins — is where everything starts.
Remember: _activate() should be reversible, _install() owns permanent structures.
xmlhttp.php is the cleanest way to add AJAX endpoints to MyBB.
Any tips, experiences or strong opinions welcome.
I did a bit of searching but could not find a recent thread on this, so here we go.
Code: PHP
$plugins->add_hook('pre_output_page', 'my_func');Remember: _activate() should be reversible, _install() owns permanent structures.
xmlhttp.php is the cleanest way to add AJAX endpoints to MyBB.
Any tips, experiences or strong opinions welcome.
I did a bit of searching but could not find a recent thread on this, so here we go.
09-09-2026, 10:01 PM
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Nice plugin, testing it on my dev board now.
Interesting — I will have to try that.
Nice plugin, testing it on my dev board now.
Interesting — I will have to try that.
09-10-2026, 01:12 AM
Always call rebuild_settings() after changing settings programmatically.
Thanks for sharing, saved me a lot of time.
Thanks for sharing, saved me a lot of time.
09-10-2026, 05:59 AM
That hooks explanation finally made it click for me.
Nice thread, following for the replies.
Nice thread, following for the replies.
09-10-2026, 07:02 AM
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
The gid=0 trick keeps plugin settings out of the ACP — neat.
I disagree slightly, but I can see where you are coming from.
The gid=0 trick keeps plugin settings out of the ACP — neat.
I disagree slightly, but I can see where you are coming from.
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)
