The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to Hide avatars from guests?
It involves using conditionals and editing the postbit - that much I know!
:tired: |
#2
|
||||
|
||||
In your postbit or postbit_legacy template find:
Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> Code:
<if condition="$bbuserinfo['userid'] == 0"> <td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="clear.gif" alt="$post[username]" border="0" width="1" height="1" /></a></td> <else /> <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> </if> |
#3
|
|||
|
|||
Thanks - educational too. Will probably go with that but any reason why the 1x1gif is needed there at all?
Code:
<if condition="$bbuserinfo['userid'] == 0"> <td class="alt2"> </td> <else /> <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> </if> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|