Thread Rating:
10-30-2026, 09:41 AM
Hooks are the heart of MyBB plugins — is where everything starts.
Remember: _activate() should be reversible, _install() owns permanent structures.
I did a bit of searching but could not find a recent thread on this, so here we go.
Code: PHP
$plugins->add_hook('pre_output_page', 'my_func');Remember: _activate() should be reversible, _install() owns permanent structures.
I did a bit of searching but could not find a recent thread on this, so here we go.
10-30-2026, 11:32 PM
Always call rebuild_settings() after changing settings programmatically.
11-01-2026, 08:45 AM
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
The gid=0 trick keeps plugin settings out of the ACP — neat.
Could not agree more.
That has been my experience as well.
The gid=0 trick keeps plugin settings out of the ACP — neat.
Could not agree more.
That has been my experience as well.
209
16
Oct 2025
11-03-2026, 07:47 AM
11-04-2026, 05:09 PM
Always call rebuild_settings() after changing settings programmatically.
Nice plugin, testing it on my dev board now.
Nice thread, following for the replies.
Nice plugin, testing it on my dev board now.
Nice thread, following for the replies.
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)
