Switch Avatar and Profile Picture Locations
This modification is in the archives.
As requested in this topic:
Spoiler (click to open)
Actually, the avatar isn't in my forum's MEMBERINFO template, but in memberinfo_block_ministats. In said template look for this:
Code:
<img src="$prepared[avatarurl]" alt="<phrase 1="$prepared[username]">$vbphrase[xs_avatar]</phrase>" $prepared[avatarsize] class="alt2" id="user_avatar" /> Code:
<img src="$prepared[profilepicurl]" $prepared[profilepicsize] alt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" /> --------------- Added 23 Jun 2008 at 19:42 --------------- Modification has been released here: http://www.vbulletin.org/forum/showthread.php?p=1556915 Close
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: Code:
<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> Code:
<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> Replace: Code:
<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> Code:
<if condition="$prepared['profilepicurl']"> <td><img src="$prepared[profilepicurl]" $prepared[profilepicsize] alt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" /></td> </if> Download No files for download. Screenshots |