1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Usergroup ranks based on post count

Discussion in 'Styling and Customization Questions' started by Impulse, Aug 14, 2013.

  1. Impulse

    Impulse Member

    I got this template edit working correctly for the rank images, but I was wondering if there's anyway to make it apply to only 1 specific usergroup. So the images only show up for normal users and not Admin/Moderators
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Impulse likes this.
  3. Impulse

    Impulse Member

    Thanks for the help. I don't wish to just show it to regular users, I'd like to exclude Admin and Moderator from receiving those post count rank images.

    Is there a conditional that will change the {$user.message_count} to target just users of a specific usergroup and not everybody?
     
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    Code:
    !{xen:helper ismemberof, $user, #}
    Will verify that a user is not in a user group. Change # to the user group ID.
     
    Andrej and Impulse like this.
  5. Impulse

    Impulse Member

    Perfect, it works! Thanks!!
     

Share This Page