Theme demo: pick a theme on the right. Log in as demo / demo to try posting. Everything resets every night.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Member
***
222 16 Feb 2026 0
#1

Remember: _activate() should be reversible, _install() owns permanent structures.

Hooks are the heart of MyBB plugins —
Code: PHP
$plugins->add_hook('pre_output_page', 'my_func');
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.
Reply
Member
***
247 17 Feb 2026 0
#2

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.
Reply
Member
***
238 23 Jun 2026 0
#3

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.
Reply
Member
***
235 21 Dec 2025 0
#4

Nice plugin, testing it on my dev board now.

I disagree slightly, but I can see where you are coming from.
Reply
Member
***
209 15 Mar 2026 0
#5

Nice plugin, testing it on my dev board now.

Bumping this because I ran into the same thing today.

Could not agree more.
Reply
Super Moderator
******
226 15 Oct 2025 0
#6

Always call rebuild_settings() after changing settings programmatically.

Could not agree more.
Reply
Member
***
209 15 Mar 2026 0
#7

Nice plugin, testing it on my dev board now.

Nice thread, following for the replies.
Reply

Users browsing this thread: 1 Guest(s)

Forum Jump: