PDA

View Full Version : Show usergroup in profile


paul41598
07-24-2006, 12:04 PM
I wanna know if theres a way to display someones usergroup/membership in their profile. I.E If a premium member, I can display it somewhere ;)

Kirk Y
07-24-2006, 06:55 PM
If you want it displayed in the User's Profile:
<if condition="$userinfo[usergroupid] == specialgroupid">I'm a Premium Member!</if>

davidw
07-24-2006, 07:51 PM
paul41598,

You are currently showing up as unlicensed. To be able to download hacks and/or receive support here at vBulletin.org, we ask you to please click here (http://members.vbulletin.com/membersupport_priority.php) (vB-germany users click here (http://members.vbulletin-germany.com/membersupport_priority.php)) and enter your email address, to show us that you are licensed.

You will need to use your customer number and password (which will be in the email you got when you paid for your license) to access that page. Please note that your email is case sensitive. The update of your account may take up to one hour.

Thank you.

Kirk Y
07-24-2006, 10:22 PM
I didn't think unlicensed users could post here.

paul41598
07-25-2006, 04:28 PM
I didn't think unlicensed users could post here.
Does that code apply to primary or secondary usergrop?

Kirk Y
07-25-2006, 07:52 PM
Either one.

paul41598
07-25-2006, 07:56 PM
because believe it or not, it does absolutely nothing ;(

Kirk Y
07-25-2006, 10:46 PM
Which template are you trying to apply it to?

paul41598
07-26-2006, 12:03 AM
memberinfo

Kirk Y
07-26-2006, 01:36 AM
Strange. It's working for me -- I just tested it.

<if condition="$userinfo[usergroupid] == 6">I'm a Premium Member!</if>

Where '6' is my UsergroupID, Administrators in my case.

Edit: Just noticed, it says you're running 3.0.7. The variables may be different from 3.0.x - 3.5.x. I'd imagine that's why it's no showing up.

paul41598
07-26-2006, 01:58 AM
naw, just havnt updated my profile. Now its updated ;) I'll try it again.

So if I wanted to display all 6-7 of my usergroups, I would need 6-7 if conditions...