PDA

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


cheat-master30
06-22-2008, 10:00 PM
As requested in this topic:

https://vborg.vbsupport.ru/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
06-24-2008, 09:14 AM
nice

thank you