Thread Rating:
08-18-2026, 02:22 PM
Hooks are the heart of MyBB plugins — is where everything starts.
Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.
xmlhttp.php is the cleanest way to add AJAX endpoints to MyBB.
I keep a list of essential plugins and thought I would share it here.
Curious what everyone else here thinks about it.
Maybe this has been discussed before, but I could not find anything recent.
Code: PHP
$plugins->add_hook('pre_output_page', 'my_func');Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.
xmlhttp.php is the cleanest way to add AJAX endpoints to MyBB.
I keep a list of essential plugins and thought I would share it here.
Curious what everyone else here thinks about it.
Maybe this has been discussed before, but I could not find anything recent.
08-20-2026, 03:55 AM
The gid=0 trick keeps plugin settings out of the ACP — neat.
That has been my experience as well.
Thanks for sharing, saved me a lot of time.
That has been my experience as well.
Thanks for sharing, saved me a lot of time.
08-21-2026, 03:31 AM
That hooks explanation finally made it click for me.
Always call rebuild_settings() after changing settings programmatically.
Always call rebuild_settings() after changing settings programmatically.
08-21-2026, 11:59 PM
The gid=0 trick keeps plugin settings out of the ACP — neat.
That hooks explanation finally made it click for me.
That hooks explanation finally made it click for me.
220
18
Jun 2026
0
08-23-2026, 12:53 PM
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.
240
22
Mar 2026
0
08-25-2026, 04:31 PM
Nice plugin, testing it on my dev board now.
The gid=0 trick keeps plugin settings out of the ACP — neat.
The gid=0 trick keeps plugin settings out of the ACP — neat.
08-27-2026, 12:00 PM
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)
