• 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?

Jaxel

Well-known member
#1
Right now I am doing the following in a template
Code:
<xen:if is="{xen:helper ismemberof, $user, 4}">
	<li class="ribbonStaff"><div class="left"></div><div class="right"></div>Staff / Moderator</li>
</xen:if>
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?
 

Mike

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

ragtek

Guest
#5
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
 
F

Floris

Guest
#7
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