PDA

View Full Version : Profile Enhancements - Default Profile Pic


BlizzardHQ
21 Dec 2007, 13:24
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
21 Dec 2007, 13:25
Enjoy :)

gator777
21 Dec 2007, 14:43
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
21 Dec 2007, 14:52
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
21 Dec 2007, 16:17
Thanks for the release!

gator777
21 Dec 2007, 21:58
Thanks for code BlizzardHQ. :D

solalopez
28 Jan 2008, 22:28
Hey BlizzardHQ,

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

Thanks

ChU v2
29 Jan 2008, 04:25
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
10 Feb 2008, 12:41
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
25 Feb 2008, 06:44
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
01 Jun 2008, 05:27
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
18 Jun 2008, 10:40
Does this show the default profile picture everywhere or just in memberinfo section?

crkgb
23 Oct 2008, 17:03
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>