Thread Rating:
211
26
Mar 2026
11-19-2026, 02:20 PM
Hooks are the heart of MyBB plugins — [code=php]$plugins->add_hook('pre_output_page', 'my_func');[/code] is where everything starts.
Remember: _activate() should be reversible, _install() owns permanent structures.
I keep a list of essential plugins and thought I would share it here.
Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.
I did a bit of searching but could not find a recent thread on this, so here we go.
Remember: _activate() should be reversible, _install() owns permanent structures.
I keep a list of essential plugins and thought I would share it here.
Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.
I did a bit of searching but could not find a recent thread on this, so here we go.
11-20-2026, 03:33 PM
The gid=0 trick keeps plugin settings out of the ACP — neat.
11-21-2026, 08:41 PM
11-23-2026, 01:43 PM
The gid=0 trick keeps plugin settings out of the ACP — neat.
That has been my experience as well.
That has been my experience as well.
11-25-2026, 12:08 PM
Nice plugin, testing it on my dev board now.
That hooks explanation finally made it click for me.
Bumping this because I ran into the same thing today.
That hooks explanation finally made it click for me.
Bumping this because I ran into the same thing today.
11-25-2026, 09:25 PM
11-27-2026, 07:29 PM
Nice plugin, testing it on my dev board now.
Could not agree more.
Could not agree more.
11-28-2026, 06:13 PM
The gid=0 trick keeps plugin settings out of the ACP — neat.
That has been my experience as well.
That has been my experience as well.
11-30-2026, 01:39 PM
That hooks explanation finally made it click for me.
The gid=0 trick keeps plugin settings out of the ACP — neat.
The gid=0 trick keeps plugin settings out of the ACP — neat.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)
