Thread Rating:
08-15-2026, 07:54 AM
Hooks are the heart of MyBB plugins — is where everything starts.
Remember: _activate() should be reversible, _install() owns permanent structures.
Any tips, experiences or strong opinions welcome.
Code: PHP
$plugins->add_hook('pre_output_page', 'my_func');Remember: _activate() should be reversible, _install() owns permanent structures.
Any tips, experiences or strong opinions welcome.
08-17-2026, 06:05 AM
(08-15-2026, 07:54 AM)KernelKate Wrote: Hooks are the heart of MyBB plugins —Always call rebuild_settings() after changing settings programmatically.is where everything starts.Code: PHP$plugins->add_hook('pre_output_page', 'my_func');
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Interesting — I will have to try that.
08-17-2026, 08:55 AM
That hooks explanation finally made it click for me.
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
I disagree slightly, but I can see where you are coming from.
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
I disagree slightly, but I can see where you are coming from.
215
24
Feb 2026
08-19-2026, 04:38 AM
That hooks explanation finally made it click for me.
08-19-2026, 08:09 PM
The gid=0 trick keeps plugin settings out of the ACP — neat.
I disagree slightly, but I can see where you are coming from.
I disagree slightly, but I can see where you are coming from.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)
