The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello everyone,
I've been looking around the internt and vbulletin.org with no help at all. I would like to display the usergroup a member is in on the postbit_legacy I figured I could use HTML on the user rank instead of an image, but user ranks also display secondary usergroups. Is there a way to make the variable {vb:raw post.rank} display only the usergroup? Lets say "Administrator", or is there a way to create something that will display it? I know there is {vb:raw post.usergroupid} but that just shows the id of the usergroup. Any help would be deeply appreciated, Thank you. |
#2
|
||||
|
||||
![]()
<vb:if condition="$post[usergroupid] == 6">Administrator</vb:if>
|
#3
|
|||
|
|||
![]()
So if I would like to show the users usergroup I would have to make an if statement for each usergroup I have right?
|
#4
|
||||
|
||||
![]()
Yes.
You in theory could also use the html markup, but that can get really tricky with multiple usergroups. Best just to code it into the template. |
#5
|
||||
|
||||
![]()
I took the usergroups ranks off the profile because someone before me did a sloppy job and the url of a profile showed all the image locations of the ranks, which was just plain messy!
So which template do I edit to put them back? I know I should know this since I took them out, but it's been a crash course to say the least and with all I have done in the past month I cannot remember. Thanks in advance for you help! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|