Back to vBulletin 3.7 Template Modifications

Switch Avatar and Profile Picture Locations
Mod Version: 1.00, by cheat-master30

This modification is in the archives.
vB Version: 3.7.x Rating: (1 vote - 5.00 average) Installs: 5
Released: 23 Jun 2008 Last Update: Never Downloads: 6
Not Supported Template Edits Re-usable Code Translations  

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" />
And replace with:
Code:
<img src="$prepared[profilepicurl]" $prepared[profilepicsize] alt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" />
and vice versa in the MEMBERINFO template.

--------------- 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>
with:
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>
memberinfo_block_ministats:

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

Code:
<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).

Download

No files for download.

Screenshots

Click image for larger version
Name:	ProfileBefore.jpg
Views:	327
Size:	59.8 KB
ID:	82828   Click image for larger version
Name:	ProfileAfter.jpg
Views:	376
Size:	83.1 KB
ID:	82829  


vblts.ru supports vBulletin®, 2022-2024