PDA

View Full Version : Usergroups on postbit_legacy


Nocturnal222
06-30-2011, 07:54 AM
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.

Zachery
06-30-2011, 08:50 AM
<vb:if condition="$post[usergroupid] == 6">Administrator</vb:if>

Nocturnal222
06-30-2011, 08:55 AM
<vb:if condition="$post[usergroupid] == 6">Administrator</vb:if>
So if I would like to show the users usergroup I would have to make an if statement for each usergroup I have right?

Zachery
06-30-2011, 08:57 AM
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.

Successfulsteps
07-27-2011, 02:18 AM
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!