Jump to content

(NB40) Secondary Group Icons


newbie LAC

Recommended Posts

Hello,

13 hours ago, Adam.M said:

I have a specific group that I want displayed but only visible to admin and moderators. Is this possible?

You can edit the templates

core - global - plugins - nbSecGroupIconsProfile
core - global - plugins - nbSecGroupIconsPost

Find 

{{if isset($memberGroups[$grOther]) and $icon = $memberGroups[$grOther]->g_icon}}

Add below

			{{if $grOther == X and !(\IPS\Member::loggedIn()->isAdmin() or \IPS\Member::loggedIn()->modPermissions() !== false)}}
				{{continue;}}
			{{endif}}

X is specific group ID

Edited by newbie LAC
Link to comment
Share on other sites

On 10/24/2020 at 11:19 PM, newbie LAC said:

{{if $grOther == X and !(\IPS\Member::loggedIn()->isAdmin() or \IPS\Member::loggedIn()->modPermissions() !== false)}} {{continue;}} {{endif}}

thank you 🙂 
 

Turns out I have more than one group that I want to show only to mods/admins. 

what is the correct formatting? I tried this:

 

{{if $grOther == (26 or 27) and !(\IPS\Member::loggedIn()->isAdmin() or \IPS\Member::loggedIn()->modPermissions() !== false)}} {{continue;}} {{endif}}

 

Link to comment
Share on other sites

Hello,

1 hour ago, Adam.M said:

thank you 🙂 
 

Turns out I have more than one group that I want to show only to mods/admins. 

what is the correct formatting? I tried this:

 


{{if $grOther == (26 or 27) and !(\IPS\Member::loggedIn()->isAdmin() or \IPS\Member::loggedIn()->modPermissions() !== false)}} {{continue;}} {{endif}}

 

 

{{if \in_array($grOther, array(26, 27)) and !(\IPS\Member::loggedIn()->isAdmin() or \IPS\Member::loggedIn()->modPermissions() !== false)}} {{continue;}} {{endif}}
Edited by newbie LAC
Link to comment
Share on other sites

  • 3 months later...

I could use some help here if someone is willing. 

Updated and changed over to a theme that worked for us, Dreadnaught by Taman on here. It'll show groups such as moderator and admin, but absolutely won't show any of the other groups that we have. When I switched to another theme, there they are!

Any ideas on what/where to edit as I would love to have this work as our community members enjoy their 'badges'. 

Link to comment
Share on other sites

  • 2 weeks later...

Hello,

How to display group badges BELOW the number of posts and reputation?

Currently badges are displayed under the primary member group name like this.
image.png.daa069d892837f0a6bb351cc5b3f613c.png

 

I want it to display in this order
AVATAR PIC
Administrator
Reputation
Number of Posts
Group Badges

Please help, thanks

Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...