Jump to content

(NB40) Secondary Group Icons


Recommended Posts

Posted (edited)

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
Posted
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}}

 

Posted (edited)

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
  • 3 months later...
Posted

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'. 

  • 2 weeks later...
Posted

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

  • 1 month later...
  • 3 months later...
  • 3 weeks later...
  • 5 months later...
  • 9 months later...
  • 8 months later...
Posted
24 minutes ago, StreamGro said:

Will this plugin ever be available to buy again? 

I'd like this, but cannot get it through AdminCP. @newbie LAC

The developer is not around anymore (at least for now?). Unless they renew their license, their modifications won't be available for purchase.

 

For more details, check the topic linked in the reply above.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...