Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Banned
211 26 Mar 2026
#1

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.
Reply
Member
***
209 14 Nov 2025 0
#2

The gid=0 trick keeps plugin settings out of the ACP — neat.
Reply
Member
***
219 20 Jan 2026 0
#3

(11-20-2026, 03:33 PM)LunarLily Wrote: The gid=0 trick keeps plugin settings out of the ACP — neat.
The gid=0 trick keeps plugin settings out of the ACP — neat.

Nice plugin, testing it on my dev board now.

Thanks for sharing, saved me a lot of time.
Reply
Administrator
*******
196 13 Oct 2026 0
#4

The gid=0 trick keeps plugin settings out of the ACP — neat.

That has been my experience as well.
Reply
Member
***
190 20 Dec 2025 0
#5

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.
Reply
Member
***
215 18 Jan 2026 0
#6

(11-25-2026, 12:08 PM)WidgetWill Wrote: Nice plugin, testing it on my dev board now.
Nice plugin, testing it on my dev board now.

That has been my experience as well.
Reply
Member
***
216 20 Nov 2026 0
#7

Nice plugin, testing it on my dev board now.

Could not agree more.
Reply
Member
***
190 20 Dec 2025 0
#8

The gid=0 trick keeps plugin settings out of the ACP — neat.

That has been my experience as well.
Reply
Member
***
215 13 Oct 2026 0
#9

That hooks explanation finally made it click for me.

The gid=0 trick keeps plugin settings out of the ACP — neat.
Reply

Users browsing this thread: 2 Guest(s)

Forum Jump: