MyStudio Free demo
Plugin settings with gid=0 — hidden settings trick - 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: Plugin settings with gid=0 — hidden settings trick (/thread-115.html)



Plugin settings with gid=0 — hidden settings trick - TechTress - 09-09-2026

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

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

Would love to hear how you all handle this.

Curious what everyone else here thinks about it.


- GamerGhoul - 09-11-2026

That hooks explanation finally made it click for me.

Interesting — I will have to try that.

I disagree slightly, but I can see where you are coming from.


- KernelKate - 09-13-2026

Nice plugin, testing it on my dev board now.

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

That has been my experience as well.


- RetroRex - 09-13-2026

Nice plugin, testing it on my dev board now.

Could not agree more.

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