The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Hey,
I want to display an user's avatar, near the Welcome, %user message in the header. For this, I need a condition that checks if that user has an avatar and if it has, display it there..if not, display something else or nothing. i tried using this: Code:
<vb:if condition="$show['avatar']">
<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
</vb:if>
Tnx in advance |
|
#2
|
||||
|
||||
|
Hmm look nice!
Did you find any solution? |
|
#3
|
||||
|
||||
|
There is a vb4x mod to do this for you now just search for it.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|