XenForo Support

Secondary Groups

Submitted by ReaDyMade, , Thread ID: 116422

Thread Closed
ReaDyMade
Lurker
Level:
0
Reputation:
0
Posts:
5
Likes:
0
Credits:
8
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

Knight
Senior Member
Level:
0
Reputation:
39
Posts:
512
Likes:
54
Credits:
12
11-01-2019, 03:08 PM
#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

SkyCod
nulledbb.com/profile/3747/
Level:
0
Reputation:
78
Posts:
1.15K
Likes:
165
Credits:
2.57K
11-01-2019, 04:40 PM
#3
He's talking about Xenforo forum system. and i can assure the code is right.

RE: Secondary Groups

ReaDyMade
Lurker
Level:
0
Reputation:
0
Posts:
5
Likes:
0
Credits:
8
OP
11-01-2019, 04:55 PM
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

Cuddles
The Robot <3
Level:
0
Reputation:
66
Posts:
1.84K
Likes:
43
Credits:
-109
11-01-2019, 05:44 PM
#5
This thread has been moved to XenForo Support by a Staff member. Please use the right section next time.

Users browsing this thread: 1 Guest(s)