PDA

View Full Version : Code to display avatars


Mahar
07-09-2009, 04:53 AM
One of our old Administrators deleted the code to show avatars in peoples posts a long time ago, we're looking to bring that back. Is there anyway I can simply get the code and be told where to put it in(Haha, perverted comment) because I don't want to revert all my other template edits back.

smartkidbk5
07-09-2009, 05:21 AM
Go to the "postbit" template

Find:
<!-- user info -->
<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr>

Add after:
<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 you use postbit_legacy. Go to "postbit_legacy"

Find:
$template_hook[postbit_userinfo_left]

Add after:

<if condition="$show['avatar']">
<div class="smallfont">
&nbsp;<br /><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>
</div>
</if>

Mahar
07-09-2009, 05:51 AM
Weird thing is....those codes are there...

--------------- Added 1247122664 at 1247122664 ---------------

Nevermind, I'm retarded. for some reason in my option I had it to not show Avatars