PDA

View Full Version : MEMBERINFO Question


Cledus James
02-14-2009, 05:00 AM
Quick question, anyone know the command to display a user's profile pic in the MEMBERINFO template. The style I have doesn't have the profile pictures displayed. I tried:

$prepared[profile_picture]
$post[profile_picture]
$userinfo[profile_picture]

With no luck.


Thanks.

TigerC10
02-14-2009, 05:25 AM
Try

$blocks[profile_picture]

Spank
02-14-2009, 05:54 AM
The variable is
$prepared[profilepicurl]
which you'll need to put into an image url, along with an if condition so that nothing displays if a user doesn't have a profile pic. Here's the whole shebang:
<if condition="$prepared['profilepicurl']">
<td id="profilepic_cell" class="tborder alt2"><img src="$prepared[profilepicurl]" $prepared[profilepicsize] alt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" /></td>
</if>

TigerC10
02-14-2009, 06:04 AM
The variable is
$prepared[profilepicurl]
which you'll need to put into an image url, along with an if condition so that nothing displays if a user doesn't have a profile pic. Here's the whole shebang:
<if condition="$prepared['profilepicurl']">
<td id="profilepic_cell" class="tborder alt2"><img src="$prepared[profilepicurl]" $prepared[profilepicsize] alt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" /></td>
</if>

I think that is the code in the template memberinfo_block_profilepicture. It'd be best if he just used


$blocks[profile_picture]


To call the appropriate code from memberinfo_block_profilepicture, instead of replicating/inlining the code. That way, if there's a tempate update in the future, it doesn't break things unnecessarily upon "revert".

Spank
02-14-2009, 06:34 AM
Yeah you're right. Although the code I used was in my MEMBERINFO template. I'll update it me thinks :)

TigerC10
02-14-2009, 06:37 AM
^_^ It's probably from an older style standard, from before 3.7 was released. We didn't have the notion of "blocks" before that.

Cledus James
02-14-2009, 03:39 PM
Thanks for the responses guys.

But the problem really turned into something else. Mainly, my problem is the profile pictures are not showing up in my profiles after installing a new style. Instead of just replying here for more help I decided to make a whole new post about it that better explains my situation. Anyways, if any of you have time, please check out my new post:

https://vborg.vbsupport.ru/showthread.php?p=1743932#post1743932

Thanks for your help.