PDA

View Full Version : Profile Picture not showing up!


djxcee
08-11-2008, 06:52 AM
Used the following code:

<if condition="$prepared['profilepicurl']">
img src="$prepared[profilepicurl]" $prepared[profilepicsize] alt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" /><else /><img src="/images/misc/no_profilepic.gif" alt="" border="0"/>
</if>

However only the No Profile Picture (no_profilepic.gif) is showing up. Not sure what is wrong.
Trying to place this in my postbit_legacy template so I can replace the avatar.

Lynne
08-11-2008, 03:14 PM
I would guess that the variable $prepared is not available to the template, thus you always get the <else /> condition.

djxcee
08-14-2008, 02:43 PM
Found an alternative route.
Going to replace all profile pictures with avatars and renamed avatar to profile pictures.