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
Senior Member
****
263 28 Dec 2025 0 0
#1

Hooks are the heart of MyBB plugins —
Code: PHP
$plugins->add_hook('pre_output_page', 'my_func');
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.
Reply
Member
***
243 20 Oct 2026 0 0
#2

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.
Reply
Member
***
231 20 Nov 2026 0 0
#3

That hooks explanation finally made it click for me.

Always call rebuild_settings() after changing settings programmatically.
Reply
Member
***
205 25 May 2026 0 0
#4

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

That hooks explanation finally made it click for me.
Reply
Banned
220 18 Jun 2026 0
#5

Always call rebuild_settings() after changing settings programmatically.

Thanks for sharing, saved me a lot of time.
Reply
Super Moderator
******
224 17 Feb 2026 0 0
#6

Nice plugin, testing it on my dev board now.
Reply
Account not Activated
240 22 Mar 2026 0
#7

Nice plugin, testing it on my dev board now.

The gid=0 trick keeps plugin settings out of the ACP — neat.
Reply
Senior Member
****
263 28 Dec 2025 0 0
#8

(08-25-2026, 04:31 PM)QuietQuokka Wrote: Nice plugin, testing it on my dev board now.
Always call rebuild_settings() after changing settings programmatically.

Interesting — I will have to try that.
Reply
Moderator
*****
233 22 Oct 2026 0 0
#9

Always call rebuild_settings() after changing settings programmatically.

Bumping this because I ran into the same thing today.
Reply

Users browsing this thread:

Forum Jump: