Thread Rating:
11-12-2026, 12:37 AM
Remember: _activate() should be reversible, _install() owns permanent structures.
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.
Any tips, experiences or strong opinions welcome.
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.
Any tips, experiences or strong opinions welcome.
220
18
Jun 2026
0
11-12-2026, 12:26 PM
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Good point, I had not thought of it that way.
Good point, I had not thought of it that way.
11-13-2026, 06:07 PM
That hooks explanation finally made it click for me.
The gid=0 trick keeps plugin settings out of the ACP — neat.
Bumping this because I ran into the same thing today.
Nice thread, following for the replies.
The gid=0 trick keeps plugin settings out of the ACP — neat.
Bumping this because I ran into the same thing today.
Nice thread, following for the replies.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)
