indotekken
01-07-2010, 08:51 AM
Hi,
I'm trying to make plugin to show custom avatar.
i cut from template postbit:
<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>
then make plugin to call .php files
if($show['avatar']){
echo "<td class=\"alt2\"><a href=\"member.php?".$session[sessionurl]."u=".$post[userid]."\"><img src=\"".$post[avatarurl]."\" ".$post[avwidth]." ".$post[avheight]." alt=\"Avatar ".$post[username]."\" border=\"0\" /></a></td>";
}
The problem is $post[avatarurl] not showing right.
i manual echo $post[avatarurl] and the result it empty.
But it have result when i try echo $show['avatar'] or echo $post[userid]
Does anyone here know how to do the right way to have $post[avatarurl] with right value?
Thanks
I'm trying to make plugin to show custom avatar.
i cut from template postbit:
<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>
then make plugin to call .php files
if($show['avatar']){
echo "<td class=\"alt2\"><a href=\"member.php?".$session[sessionurl]."u=".$post[userid]."\"><img src=\"".$post[avatarurl]."\" ".$post[avwidth]." ".$post[avheight]." alt=\"Avatar ".$post[username]."\" border=\"0\" /></a></td>";
}
The problem is $post[avatarurl] not showing right.
i manual echo $post[avatarurl] and the result it empty.
But it have result when i try echo $show['avatar'] or echo $post[userid]
Does anyone here know how to do the right way to have $post[avatarurl] with right value?
Thanks