View Full Version : Avatars are all broken?
Cool21
05-26-2006, 04:12 AM
All of the avatars on my forums are broken. You can't see them on the post (it just has a broken image), but you can view them on peoples profile. So, I was just wondering what is happening?
Thanks!
peterska2
05-26-2006, 04:45 AM
Has this happened since upgrading from 3.0.x to 3.5.x or on installing a style?
It is possible that the avatar code in the postbit template is the obsolete code for 3.0.x which doesn't work in 3.5.x
Cool21
05-26-2006, 05:33 AM
I haven't updated...I just brought vbulletin and I got the 3.4 verison. But I have updated the styles. But I checked the postbit and eveything seemed to be okay.
peterska2
05-26-2006, 05:38 AM
ok, just for good measure,
in your postbit and postbit_legacy templates, find the code that resembles this (it may not be identical)
<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> and replace it with the above code.
Cool21
05-26-2006, 06:03 AM
OMG!!! it is all messed up now! this is the code that I put in:
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
<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>
<div class="smallfont">
<br />
and this is how my forum looks:
http://img6.picsplace.to/img6/21/cap.png (http://picsplace.to/)
link to forum:
www.kellyforums.com/forum
peterska2
05-26-2006, 06:10 AM
ok, replace the code you posted above with
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
<if condition="$show['avatar']">
<div class="smallfont">
<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
<div class="smallfont">
<br />
Cool21
05-26-2006, 06:14 AM
OMG!!! your the best!!!! thank you so much!!! everything is perfect now.
peterska2
05-26-2006, 06:16 AM
Sorry about the panic before, I forgot that the code is slightly different for postbit_legacy which is why it broke. :(
(You can tell I don't use postbit_legacy very often :p )
Glad it's working now though :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.