236
18
Oct 2026
0
08-17-2026, 09:14 AM
I keep a list of essential plugins and thought I would share it here.
Hooks are the heart of MyBB plugins — 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.
Hooks are the heart of MyBB plugins —
Code: PHP
$plugins->add_hook('pre_output_page', 'my_func');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.
08-17-2026, 11:06 AM
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.
The gid=0 trick keeps plugin settings out of the ACP — neat.
Thanks for sharing, saved me a lot of time.
08-17-2026, 12:47 PM
08-17-2026, 02:27 PM
Always call rebuild_settings() after changing settings programmatically.
Interesting — I will have to try that.
Interesting — I will have to try that.
08-17-2026, 02:34 PM
That hooks explanation finally made it click for me.
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
08-17-2026, 02:53 PM
08-17-2026, 03:41 PM
The gid=0 trick keeps plugin settings out of the ACP — neat.
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
08-17-2026, 05:28 PM
08-17-2026, 05:53 PM
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.
Always call rebuild_settings() after changing settings programmatically.
Thanks for sharing, saved me a lot of time.
08-17-2026, 06:56 PM
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.
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.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)
