Thread Rating:
11-29-2026, 05:02 PM
xmlhttp.php is the cleanest way to add AJAX endpoints to MyBB.
Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.
Hooks are the heart of MyBB plugins — [code=php]$plugins->add_hook('pre_output_page', 'my_func');[/code] is where everything starts.
I did a bit of searching but could not find a recent thread on this, so here we go.
Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.
Hooks are the heart of MyBB plugins — [code=php]$plugins->add_hook('pre_output_page', 'my_func');[/code] is where everything starts.
I did a bit of searching but could not find a recent thread on this, so here we go.
11-30-2026, 12:11 PM
That hooks explanation finally made it click for me.
Nice plugin, testing it on my dev board now.
I disagree slightly, but I can see where you are coming from.
Nice plugin, testing it on my dev board now.
I disagree slightly, but I can see where you are coming from.
12-01-2026, 07:25 AM
Yesterday, 01:09 PM
That hooks explanation finally made it click for me.
Nice plugin, testing it on my dev board now.
Thanks for sharing, saved me a lot of time.
Nice plugin, testing it on my dev board now.
Thanks for sharing, saved me a lot of time.
Yesterday, 07:18 PM
That hooks explanation finally made it click for me.
Nice thread, following for the replies.
Nice thread, following for the replies.
Yesterday, 07:18 PM
Nice plugin, testing it on my dev board now.
Always call rebuild_settings() after changing settings programmatically.
Interesting — I will have to try that.
Always call rebuild_settings() after changing settings programmatically.
Interesting — I will have to try that.
Yesterday, 07:18 PM
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
216
18
Nov 2025
Yesterday, 07:18 PM
Yesterday, 07:18 PM
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)
