View Full Version : [3.5] Defualt Profile Picture in Profile


Pennylessz28
9th October 2005, 07:55 AM
Just like the defualt avatar for users who don't have one, I wanted to fill the void for users who didn't have a profile picture.

Here is an example of someone with no profile information

http://www.hr3rdgen.org/member.php?u=273

And someone with all the information filled out

http://www.hr3rdgen.org/member.php?u=1

This is very simple, just follow the directions.

ACP > Styles & Templates > Style Manager

Edit your MEMBERINFO template

Find:
<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>
</if>


Replace with

<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>



Now all you need to do is create a defualt profile picture image to use.
I made one in photoshop real quick and named it no_pic.jpg and uploaded to the images/misc directory.

Magik
7th November 2005, 03:09 PM
excellent! great work! :rolleyes:

*clicks install*...oh wait...im not on vb.org .... damn..well, thought was there.

zey
22nd December 2005, 03:49 AM
thank, this what I'm looking for

Robert
22nd December 2005, 10:03 AM
Many thanks for sharing this. Nice work. :)

Pyro
23rd December 2005, 06:19 AM
Definatly nice work. I'll have to look into this and maybe install it on my own website. Thanks for sharing this here, too! :)