Theme demo: pick a theme on the right. Log in as demo / demo to try posting. Everything resets every night.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Account not Activated
236 18 Oct 2026 0
#1

I keep a list of essential plugins and thought I would share it here.

Hooks are the heart of MyBB plugins —
Code: PHP
$plugins->add_hook('pre_output_page', 'my_func');
is where everything starts.

Remember: _activate() should be reversible, _install() owns permanent structures.

Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.

Would love to hear how you all handle this.
Reply
Super Moderator
******
275 23 Nov 2026 0 0
#2

That hooks explanation finally made it click for me.

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

Thanks for sharing, saved me a lot of time.
Reply
Member
***
230 31 Jul 2026 0 0
#3

(08-17-2026, 11:06 AM)ServerSage Wrote: That hooks explanation finally made it click for me.
Whitelist-based hooks debugging in class_plugins.php helped me a lot.

Nice plugin, testing it on my dev board now.

Nice thread, following for the replies.
Reply
Member
***
243 18 Jun 2026 0 0
#4

Always call rebuild_settings() after changing settings programmatically.

Interesting — I will have to try that.
Reply
Senior Member
****
263 28 Dec 2025 0 0
#5

That hooks explanation finally made it click for me.

Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Reply
Moderator
*****
233 22 Oct 2026 0 0
#6

(08-17-2026, 02:34 PM)GamerGhoul Wrote: That hooks explanation finally made it click for me.
Whitelist-based hooks debugging in class_plugins.php helped me a lot.

I disagree slightly, but I can see where you are coming from.
Reply
Senior Member
****
265 20 Dec 2025 0 0
#7

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

Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Reply
Member
***
247 17 Jul 2026 0 0
#8

(08-17-2026, 03:41 PM)EchoEzra Wrote: The gid=0 trick keeps plugin settings out of the ACP — neat.
Always call rebuild_settings() after changing settings programmatically.

Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Reply
Member
***
231 20 Nov 2026 0 0
#9

That hooks explanation finally made it click for me.

Always call rebuild_settings() after changing settings programmatically.

Thanks for sharing, saved me a lot of time.
Reply
Super Moderator
******
232 17 Mar 2026 0 0
#10

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.

Good point, I had not thought of it that way.
Reply

Users browsing this thread: 2 Guest(s)

Forum Jump: