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
***
245 14 Jun 2026 0 0
#1

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.

xmlhttp.php is the cleanest way to add AJAX endpoints to MyBB.

Curious what everyone else here thinks about it.

Would love to hear how you all handle this.
Reply
Senior Member
****
265 20 Dec 2025 0 0
#2

(09-22-2026, 08:12 AM)MovieMaven Wrote: Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.
The gid=0 trick keeps plugin settings out of the ACP — neat.

That has been my experience as well.
Reply
Moderator
*****
234 24 Jul 2026 0 0
#3

(09-24-2026, 02:24 AM)EchoEzra Wrote: [quote='MovieMaven' pid='1343' dateline='1790064772']Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check ...
The gid=0 trick keeps plugin settings out of the ACP — neat.

Nice thread, following for the replies.
Reply
Member
***
243 20 Oct 2026 0 0
#4

(09-24-2026, 02:18 PM)KernelKate Wrote: [quote='EchoEzra' pid='1344' dateline='1790216663'][quote='MovieMaven' pid='1343' dateline='1790064772']Returning true from a by-value hook replaces the argu...
Nice plugin, testing it on my dev board now.

That hooks explanation finally made it click for me.

Could not agree more.
Reply
Member
***
214 23 Sep 2026 0 0
#5

That hooks explanation finally made it click for me.

Nice thread, following for the replies.
Reply

Users browsing this thread: 1 Guest(s)

Forum Jump: