Thread Rating:
10-13-2026, 06:25 AM
Remember: _activate() should be reversible, _install() owns permanent structures.
Hooks are the heart of MyBB plugins — is where everything starts.
Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.
I keep a list of essential plugins and thought I would share it here.
Hooks are the heart of MyBB plugins —
Code: PHP
$plugins->add_hook('pre_output_page', 'my_func');Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.
I keep a list of essential plugins and thought I would share it here.
10-13-2026, 11:24 PM
(10-13-2026, 06:25 AM)GamerGhoul Wrote: Remember: _activate() should be reversible, _install() owns permanent structures.Always call rebuild_settings() after changing settings programmatically.
Nice plugin, testing it on my dev board now.
I disagree slightly, but I can see where you are coming from.
10-15-2026, 11:12 AM
10-16-2026, 02:18 PM
(10-15-2026, 11:12 AM)FluxFiona Wrote: [quote='CodeWizard' pid='1228' dateline='1791933860'][quote='GamerGhoul' pid='1227' dateline='1791872723']Remember: _activate() should be reversible, _instal...That hooks explanation finally made it click for me.
Nice plugin, testing it on my dev board now.
I disagree slightly, but I can see where you are coming from.
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)
