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
Linear Mode
Administrator
*******
252 25 Jun 2026 0 0
#2

(09-17-2026, 08:48 AM)GamerGhoul Wrote: Hooks are the heart of MyBB plugins —
Code: PHP
$plugins->add_hook('pre_output_page', 'my_func');
is where everything starts.
Always call rebuild_settings() after changing settings programmatically.

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

That has been my experience as well.

Bumping this because I ran into the same thing today.
Reply
Messages In This Thread
[No subject] - by PixelatedPaul - 09-17-2026, 04:52 PM
[No subject] - by ByteBruce - 09-18-2026, 06:38 AM
[No subject] - by CodeWizard - 09-18-2026, 10:39 PM

Users browsing this thread: 1 Guest(s)

Forum Jump: