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

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.
Reply
Member
***
247 17 Jul 2026 0 0
#2

Whitelist-based hooks debugging in class_plugins.php helped me a lot.

Nice plugin, testing it on my dev board now.

That has been my experience as well.
Reply
Member
***
230 31 Jul 2026 0 0
#3

(11-04-2026, 07:51 AM)CraftyCathy Wrote: Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Whitelist-based hooks debugging in class_plugins.php helped me a lot.

That hooks explanation finally made it click for me.

Could not agree more.
Reply
Member
***
243 18 Jun 2026 0 0
#4

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

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
Super Moderator
******
232 17 Mar 2026 0 0
#5

(11-06-2026, 08:19 PM)DoodleDom Wrote: The gid=0 trick keeps plugin settings out of the ACP — neat.
That hooks explanation finally made it click for me.
Reply
Super Moderator
******
232 17 Mar 2026 0 0
#6

(11-08-2026, 11:47 AM)CodeWizard Wrote:
(11-06-2026, 08:19 PM)DoodleDom Wrote: The gid=0 trick keeps plugin settings out of the ACP — neat.
Always call rebuild_settings() after changing settings programmatically.

That has been my experience as well.
Reply

Users browsing this thread: 1 Guest(s)

Forum Jump: