• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Is there a helper to check if a user is a SUPER moderator?


Well-known member
Right now I am doing the following in a template
<xen:if is="{xen:helper ismemberof, $user, 4}">
	<li class="ribbonStaff"><div class="left"></div><div class="right"></div>Staff / Moderator</li>
The problem is that this will return true if a user has any moderator permissions; even if they are a moderator of only one forum. I want this to return true only if a user is a super moderator. How would I check this?


XenForo developer
Staff member
We don't actually distinguish them in the code (the process just distinguishes how permissions are set).


Which usergroupid?
There is no usergroupid for supermods...

YOu need to check table xf_moderator where moderator.is_super_moderator = 1....

Nope, you can't do that.

You will have to check the user group id for that :S


I did the same, I fixed this by making a group called Global, on a networked site. This way the global admins and global mods .. additional usergroup > checkbox, WOOT