PDA

View Full Version : Profile Enhancements - Profile Enchancement Layout


Hex_legend
11-26-2007, 10:00 PM
This should work on all versions of 3.6.x but has only been tested on 3.6.8

What does it do?

This moves the "User Type, Avatar and Group Memberships" into an arranged order and grouped together.

How easy is it to install?

Very easy, 1-3 minutes

Files to upload: 0
Template Edits: 1
Products to import: 0
Additional Files: 0

Screenshots?

Attached :)

Notes

Please be fair with me, this is my first modification, so for this reason it's not very advanced and many people would be able to do it. If anyone has any changes to my code, please let me know.

Even with this mentioned, please do not redistribute this file as your own work, if you really want to redistribute this, please give credit to me :)

Edits:


In template MEMBERINFO

Find:

<if condition="$show['avatar']">
<img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">
$vbphrase[xs_avatar]</phrase>"
border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" />
<else />

Delete this.

Next, find:

<if condition="$userinfo['usertitle']">$userinfo[usertitle]</if>

Delete this.

Find:

<phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase>
</if>
$template_hook[memberinfo_groups]

Delete this.

Find:

<if condition="$show['membergroups']">
<dl id="membergroups_list" class="smallfont">
$membergroupbits
</dl>
<else />

Add below:


<b>Groups:</b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
<phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase>
</if>
$template_hook[memberinfo_groups]
<br><br>
<b>Member Type:</b>&nbsp <if condition="$userinfo['usertitle']">$userinfo[usertitle]</if>
<br><br>
<b>Avatar:</b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
<if condition="$show['avatar']">
<img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">
$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor];
border-top:none" />
<else />

$userinfo[username] has no avatar defined, define one
<a href="profile.php?do=editavatar">here</a>
</if>


Save and you're done :)

The 2 screens below show a user with and without an avatar set to show the differences between.

Please click "Install"

Hex_legend
11-27-2007, 01:58 AM
*RESERVED* 1st post

zmmmzz
11-28-2007, 10:56 PM
thanks! so cool

Hex_legend
11-28-2007, 11:04 PM
Thanks :)

I know it doesn't contend with anything else but this is the very first time I've done anything with vb

Snake
12-03-2007, 05:46 AM
Thanks! Looks good so far.

import-houston
12-03-2007, 07:20 AM
looks like a good mod

5th post :D