View Full Version : Display of User Avatar's in posts
TheFocusElf
12-05-2006, 07:44 PM
I am using a Tranverse Styles theme and I really love the color scheme for a friends World of Warcraft Guild page, using their LAVA RED (http://www.transversestyles.com/vB/?styleid=188) skin.
Also, I have vbAdvanced CMPS installed, and the Form hack for them. That's it. Otherwise a regular 3.63 install and nothing to crazy.
The words "User's Avatar" appear in the post's header, and in replies as well corresponding to the appropriate poster.
Any advice'd help a lot.
I should add the avatars DO show up in the user's CP and in the Welcome Block on the CMPS front page.
KW802
12-05-2006, 08:44 PM
Have you asked Transverse for support yet?
TheFocusElf
12-05-2006, 09:13 PM
Yes I have submitted a ticket, nearly a week ago.
I thought this kind of issue might be recognized.
wrestlepower
12-05-2006, 09:30 PM
is it happening on other styles or just that one?
TheFocusElf
12-05-2006, 09:34 PM
<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr>
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
<td nowrap="nowrap">
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
$post[onlinestatus]
<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>
</td>
I think the problem is towards the top near the <if> condition:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
I will check another style.
wrestlepower
12-05-2006, 09:38 PM
img src="$avatarurl"
try changing that to
img src="$post[avatarurl]"
TheFocusElf
12-05-2006, 09:41 PM
It was. An incorrect call to the section detailed above, perhaps because the template uses calls in a previous version of VB?
Who knows
<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" />
The Avatar call in that section of code comes from the default style. And substituting that image call for the avatar in place of the one above makes everything work cherry.
wrestlepower
12-05-2006, 09:47 PM
your answer has confused me, lol. So, is it working now or not? :confused:
KW802
12-05-2006, 09:54 PM
your answer has confused me, lol. So, is it working now or not? :confused:It appears to be working for him. The version of the Transverse style he is using is most likely for an older version of vB (hence my first response above) and his avatars were not showing because the code in the postbit has changed. When he copied the code from the default style to the outdated style the avatars showed up again.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.