Helpful Information
 
 
Category: vBulletin 3.7
Profile Enhancements - Default Profile Pic

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>

Enjoy :)

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

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.

Thanks for the release!

Thanks for code BlizzardHQ. :D

Hey BlizzardHQ,

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

Thanks

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.

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?

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.

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.

Does this show the default profile picture everywhere or just in memberinfo section?

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>










privacy (GDPR)