MyBB Community Forums

Full Version: Variable for forum moderator?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I've made a plugin which provides extra options to admins, supermods and forum mods.
Now if I set them to be available if($mybb->usergroup['issupermod'] == 1) then it's there for admins and supermods.

What should I do to make it available for the forum's moderators (Local or simple moderators)? Moderator group has the default gid=6 in my case, if that needed.
if($mybb->user['usergroup'] == 6)

Probably something like that.
Worksforme ™ Big Grin
Thanks!