Rate limiting a plugin endpoint -
RetroRex - 11-16-2026
Hooks are the heart of MyBB plugins — [code=php]$plugins->add_hook('pre_output_page', 'my_func');[/code] is where everything starts.
Remember: _activate() should be reversible, _install() owns permanent structures.
Would love to hear how you all handle this.
-
ZenZara - 11-16-2026
(11-16-2026, 01:55 AM)RetroRex Wrote: Hooks are the heart of MyBB plugins — [code=php]$plugins->add_hook('pre_output_page', 'my_func');[/code] is where everything starts.
Whitelist-based hooks debugging in class_plugins.php helped me a lot.
-
CraftyCathy - 11-17-2026
The gid=0 trick keeps plugin settings out of the ACP — neat.
-
KernelKate - 11-18-2026
That hooks explanation finally made it click for me.