PDA

View Full Version : Profile Enhancements - Default Profile Pic


BlizzardHQ
12-20-2007, 10:00 PM
I saw this requested in a thread, so here goes :)

In MEMBERINFO find:



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



Change to:



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


<else />

<img src="http://www.your-domain.com/images/no-profile-pic.gif">
</td></if>

BlizzardHQ
12-21-2007, 11:25 AM
Enjoy :)

gator777
12-21-2007, 12:43 PM
I like this idea, but it causes the user name to be aligned at the bottom vs. the right side. Could you help me? :D

BlizzardHQ
12-21-2007, 12:52 PM
I like this idea, but it causes the user name to be aligned at the bottom vs. the right side. Could you help me? :D

Sorry, my fault as my table has other coded stuff in it. Change before the <else /> to:



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



Corrected in 1st post also.

Snake
12-21-2007, 02:17 PM
Thanks for the release!

gator777
12-21-2007, 07:58 PM
Thanks for code BlizzardHQ. :D

solalopez
01-28-2008, 08:28 PM
Hey BlizzardHQ,

I cant find where I am meant to make this modification (Memberinfo???).

Thanks

ChU v2
01-29-2008, 02:25 AM
Hey BlizzardHQ,

I cant find where I am meant to make this modification (Memberinfo???).

Thanks

Admin CP >> Styles & Templates >> Style Manager >> Select your style >> From drop down box click edit templates >> Click the arrows "<<" to display all your templates >> Scroll down to the MEMBERINFO template and edit.

chris1979
02-10-2008, 10:41 AM
It would be great to find something that like this that works in all the other places that the avatar usually shows up too. Like the friends list, visitor message list... etc.

Is that possible?

Thug
02-25-2008, 04:44 AM
I like this idea, but it causes the user name to be aligned at the bottom vs. the right side. Could you help me? :D


same issue did what u said still the same.

shlomot
06-01-2008, 03:27 AM
Thank you for this improvement.

Can you please devise this solution so we can assign different pictures to different genders, I.E. one for the boys and one for the girls?

I guess that in order to do that, you'll need to provide an option set in AdminCP that tells you what field is the gender field and what values does it store for each gender.

Thank you in advance.

Captain Tycoon
06-18-2008, 08:40 AM
Does this show the default profile picture everywhere or just in memberinfo section?

crkgb
10-23-2008, 03:03 PM
same issue did what u said still the same.

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

<else />
<td id="profilepic_cell" class="tborder alt2">
<img src="images/no-profile-pic.gif">
</td></if>