Log in

View Full Version : Profile Pic


djnth
12-23-2005, 12:12 AM
I'm trying to get the $userinfo[profilepicurl] or even $userinfo[field14] (which is a custom field asking the user for a URL of an image) to display in a template that I'm modifying but I'm not having any luck getting the image to display.

I tried using this bit of code that I got from hr3rdgen's user profile mod

<if condition="$show['profilepic']">
<td valign="top" align="$stylevar[right]" rowspan="2">
<img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" />
</td>
<else />
<td valign="top" align="$stylevar[right]" rowspan="2">
<img src="$stylevar[imgdir_misc]/no_pic.jpg" alt="$userinfo[username]" border="0" style="border:1px solid $stylevar[tborder_bgcolor];" />
</td>
</if>

With this I'm getting the default image no_pic.jpg but there should be the user's profile pic there.

Any help would be greatly appreciated!!

djnth
12-27-2005, 11:21 PM
I read that it may not be possible to use the profile pic in a different part of the forum, does this sound right?