Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Member
***
190 20 Dec 2025 0
#1

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

Returning true from a by-value hook replaces the argument; by-reference hooks mutate in place — check the call site.

Hooks are the heart of MyBB plugins — [code=php]$plugins->add_hook('pre_output_page', 'my_func');[/code] is where everything starts.

I did a bit of searching but could not find a recent thread on this, so here we go.
Reply
Member
***
209 14 Nov 2025 0
#2

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.
Reply
Member
***
219 20 Jan 2026 0
#3

(11-30-2026, 12:11 PM)LunarLily Wrote: That hooks explanation finally made it click for me.
The gid=0 trick keeps plugin settings out of the ACP — neat.
Reply
Member
***
209 14 Nov 2025 0
#4

That hooks explanation finally made it click for me.

Nice plugin, testing it on my dev board now.

Thanks for sharing, saved me a lot of time.
Reply
Super Moderator
******
203 23 Oct 2026 0
#5

That hooks explanation finally made it click for me.

Nice thread, following for the replies.
Reply
Moderator
*****
213 24 Jan 2026 0
#6

Nice plugin, testing it on my dev board now.

Always call rebuild_settings() after changing settings programmatically.

Interesting — I will have to try that.
Reply
Member
***
208 14 Jan 2026 0
#7

Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Reply
Account not Activated
216 18 Nov 2025
#8

(Yesterday, 07:18 PM)VinylVera Wrote: Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Whitelist-based hooks debugging in class_plugins.php helped me a lot.

Thanks for sharing, saved me a lot of time.
Reply
Member
***
204 17 Apr 2026 0
#9

(Yesterday, 07:18 PM)ByteBruce Wrote:
(Yesterday, 07:18 PM)VinylVera Wrote: Whitelist-based hooks debugging in class_plugins.php helped me a lot.
Always call rebuild_settings() after changing settings programmatically.

Nice plugin, testing it on my dev board now.
Reply

Users browsing this thread: 2 Guest(s)

Forum Jump: