MyStudio Free demo
AJAX in plugins via xmlhttp.php — follow-up - Printable Version

+- MyStudio Free demo (https://demo.mystudio.forumeze.com)
+-- Forum: Products & Services (https://demo.mystudio.forumeze.com/forum-8.html)
+--- Forum: MyBB (https://demo.mystudio.forumeze.com/forum-9.html)
+---- Forum: Plugins (https://demo.mystudio.forumeze.com/forum-11.html)
+---- Thread: AJAX in plugins via xmlhttp.php — follow-up (/thread-129.html)

Pages: 1 2 3 4 5 6


AJAX in plugins via xmlhttp.php — follow-up - RetroRex - 11-16-2026

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

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


- EchoEzra - 11-16-2026

The gid=0 trick keeps plugin settings out of the ACP — neat.


- TurboTom - 11-16-2026

Whitelist-based hooks debugging in class_plugins.php helped me a lot.

That has been my experience as well.


- MovieMaven - 11-16-2026

Whitelist-based hooks debugging in class_plugins.php helped me a lot.

Thanks for sharing, saved me a lot of time.


- EchoEzra - 11-16-2026

The gid=0 trick keeps plugin settings out of the ACP — neat.


- GamerGhoul - 11-16-2026

Nice plugin, testing it on my dev board now.

Good point, I had not thought of it that way.


- PixelatedPaul - 11-16-2026

(11-16-2026, 05:34 PM)GamerGhoul Wrote: Nice plugin, testing it on my dev board now.
Nice plugin, testing it on my dev board now.

That hooks explanation finally made it click for me.

That has been my experience as well.


- ServerSage - 11-16-2026

Nice plugin, testing it on my dev board now.

Whitelist-based hooks debugging in class_plugins.php helped me a lot.

Bumping this because I ran into the same thing today.


- ByteBruce - 11-16-2026

Whitelist-based hooks debugging in class_plugins.php helped me a lot.

The gid=0 trick keeps plugin settings out of the ACP — neat.


- GamerGhoul - 11-16-2026

Nice plugin, testing it on my dev board now.

That has been my experience as well.