PDA

View Full Version : Profile Enhancements - Switch Avatar and Profile Picture Locations


cheat-master30
23 Jun 2008, 16:40
As requested in this topic:

http://www.vbulletin.org/forum/showthread.php?p=1556906#post1556906

This simple mod will replace the avatar with the profile picture and vice versa in the user's avatar. It's very simple, requires only two template edits and no file edits, products/plugins or database changes for obvious reasons.

Instructions:

MEMBERINFO:

Replace:

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

with:

<if condition="$prepared['avatarurl']">
<td id="profilepic_cell" class="tborder alt2"><img src="$prepared[avatarurl]" alt="<phrase 1="$prepared[username]">$vbphrase[xs_avatar]</phrase>" $prepared[avatarsize] class="alt2" id="user_avatar" /></td>
</if>

memberinfo_block_ministats:

Replace:

<if condition="$prepared['avatarurl']">
<td><img src="$prepared[avatarurl]" alt="<phrase 1="$prepared[username]">$vbphrase[xs_avatar]</phrase>" $prepared[avatarsize] class="alt2" id="user_avatar" /></td>
</if>

with:

<if condition="$prepared['profilepicurl']">
<td><img src="$prepared[profilepicurl]" $prepared[profilepicsize] alt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" /></td>
</if>

That's it. See the attachments for a preview (note, profile style not included, and the lesser width of image 2 is because I made the template mod on the fixed width version of my forum style and not the main default used for the first image).

ali7118
24 Jun 2008, 10:14
nice

thank you