Thread Rating:
10-29-2026, 08:52 AM
Hooks are the heart of MyBB plugins — is where everything starts.
Remember: _activate() should be reversible, _install() owns permanent structures.
I keep a list of essential plugins and thought I would share it here.
Code: PHP
$plugins->add_hook('pre_output_page', 'my_func');Remember: _activate() should be reversible, _install() owns permanent structures.
I keep a list of essential plugins and thought I would share it here.
10-29-2026, 09:27 AM
The gid=0 trick keeps plugin settings out of the ACP — neat.
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Thanks for sharing, saved me a lot of time.
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Thanks for sharing, saved me a lot of time.
10-29-2026, 09:55 AM
Always call rebuild_settings() after changing settings programmatically.
Good point, I had not thought of it that way.
Good point, I had not thought of it that way.
10-29-2026, 11:53 AM
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
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.
10-29-2026, 01:16 PM
Nice plugin, testing it on my dev board now.
Nice thread, following for the replies.
Nice thread, following for the replies.
10-29-2026, 02:50 PM
Nice plugin, testing it on my dev board now.
Thanks for sharing, saved me a lot of time.
Thanks for sharing, saved me a lot of time.
10-29-2026, 04:25 PM
Always call rebuild_settings() after changing settings programmatically.
Could not agree more.
Could not agree more.
10-29-2026, 04:31 PM
10-29-2026, 05:26 PM
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
That hooks explanation finally made it click for me.
Interesting — I will have to try that.
That hooks explanation finally made it click for me.
Interesting — I will have to try that.
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)
