MyStudio Free demo
Rate limiting a plugin endpoint — 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: Rate limiting a plugin endpoint — follow-up (/thread-124.html)



Rate limiting a plugin endpoint — follow-up - SpammySteve - 08-16-2026

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.


- PixelatedPaul - 08-16-2026

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

Bumping this because I ran into the same thing today.


- QuietQuokka - 08-17-2026

Always call rebuild_settings() after changing settings programmatically.

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


- RetroRex - 08-18-2026

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

Interesting — I will have to try that.

Bumping this because I ran into the same thing today.


- RetroRex - 08-19-2026

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

Always call rebuild_settings() after changing settings programmatically.

Thanks for sharing, saved me a lot of time.

Bumping this because I ran into the same thing today.


- TurboTom - 08-20-2026

Nice plugin, testing it on my dev board now.

That has been my experience as well.


- VinylVera - 08-21-2026

(08-20-2026, 01:41 AM)TurboTom Wrote: Nice plugin, testing it on my dev board now.
The gid=0 trick keeps plugin settings out of the ACP — neat.


- ServerSage - 08-22-2026

Nice plugin, testing it on my dev board now.

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