Thread Rating:
10-28-2026, 04:51 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.
Any tips, experiences or strong opinions welcome.
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.
Any tips, experiences or strong opinions welcome.
10-29-2026, 09:29 PM
Nice plugin, testing it on my dev board now.
Good point, I had not thought of it that way.
That has been my experience as well.
Good point, I had not thought of it that way.
That has been my experience as well.
10-31-2026, 08:00 AM
Always call rebuild_settings() after changing settings programmatically.
That hooks explanation finally made it click for me.
Bumping this because I ran into the same thing today.
That hooks explanation finally made it click for me.
Bumping this because I ran into the same thing today.
11-01-2026, 06:31 PM
Nice plugin, testing it on my dev board now.
I disagree slightly, but I can see where you are coming from.
I disagree slightly, but I can see where you are coming from.
11-02-2026, 05:01 AM
Nice plugin, testing it on my dev board now.
Bumping this because I ran into the same thing today.
Could not agree more.
Bumping this because I ran into the same thing today.
Could not agree more.
11-02-2026, 10:53 PM
Always call rebuild_settings() after changing settings programmatically.
Could not agree more.
Could not agree more.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)
