The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Adding User Rank to Profile
For whatever reason, user ranks have disappeared from the member profile page in v4, and I simply want to add it back. I have tried stealing the code from the postbit:
Code:
<vb:if condition="$post['rank']"> <span class="rank">{vb:raw post.rank}</span> </vb:if> --------------- Added [DATE]1267048529[/DATE] at [TIME]1267048529[/TIME] --------------- Okay, so that's a no-go then. Well, let me ask this then: can someone tell me how I can display content (some text, for instance) on a member's profile page according to their usergroup? So, if the user is a member of usergroup 5, then display the text "Hello World"....sort of thing? |
#2
|
|||
|
|||
HTML Code:
<vb:if condition="is_member_of($bbuserinfo, 5)">Hello world</vb:if> |
#3
|
|||
|
|||
Thanks for the reply ChopSuey...I appreciate it, but unfortunately I didn't explain myself well enough. That code will display "Hello World" only to the allowed usergroup that is viewing the page. I want "Hello World" to display on a user's page only if they are a member of that group.
Here's what I'm trying to do: I have a Spammer usergroup. On the Spammer's profile page, I want big bold letters to scream "SPAMMER", but of course I only want that text to show if the user is a member of the Spammer usergroup. So I want everyone to be able to view the text, but only want the text to show up if the user is a member of that group. I hope that explains it better. That's why having the user rank display on the profile page was perfect, because it was based on usergroups.... |
#4
|
||||
|
||||
For anyone else out there that hasn't figured this one out...
Open your MEMBERINFO template. Find: Code:
<vb:if condition="$prepared['usertitle']"> <br /> <span class="usertitle">{vb:raw prepared.usertitle}</span> </vb:if> Code:
<vb:if condition="$prepared['rank']"> <br /> <span class="usertitle">{vb:raw prepared.rank}</span> </vb:if> |
#5
|
|||
|
|||
Awesome, that's exactly what I was looking for.... Thanks!
|
#6
|
|||
|
|||
Thanks for this! I was having this same problem as well!
|
#7
|
|||
|
|||
thanks for this!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|