XenForo Support

Secondary Groups

Submitted by ReaDyMade, , Thread ID: 116422

Thread Closed
11-01-2019, 02:41 PM
Warned
#1
Hello, idk if imallowed to. I apologize.

I need help with frames regarding secondary groups.This is my curennt code.

Code:
<xf:if is="{{$xf.visitor.isMemberOf(3)}}">
            <div class="avatar-frame admin">

          <xf:elseif is="{{$xf.visitor.isMemberOf(4)}}"/>
            <div class="avatar-frame mod">

          </xf:if>

This shows the frames correcly if the primary group is set as Admin and moderator.

I need to make it work for secondary groups.
The primary group has to be Registered and the Secondary Admin. How to make it work if possible.


Code:
<xf:if is="{{$xf.visitor.isMemberOf(x)}}">
also doesntseem to work.

Thank you.

RE: Secondary Groups

#2
I am assuming you're talking about some forum system like mybb or ipb.

Support is for NulledBB related issues.

Go to the Webmaster section for help regarding that.

RE: Secondary Groups

#3
He's talking about Xenforo forum system. and i can assure the code is right.

RE: Secondary Groups

OP
This post was last modified: 11-01-2019, 05:03 PM by ReaDyMade
#4
It doesn't work for secondary groups, and yes indeed, its Xenforo2.

<xf:if is="{{$xf.visitor.isMemberOf(3)}}">
<div class="avatar-frame admin">

using this code sets the admin frame to all users,those who are not in the admin group.I tried this code,but this works ONLY for primary groups.


<xf:if is="{$user.user_group_id} == 3">
<div class="avatar-frame admin">

RE: Secondary Groups

#5
This thread has been moved to XenForo Support by a Staff member. Please use the right section next time.

Users browsing this thread: 4 Guest(s)