vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Profile Enhancements - Profile Enchancement Layout (https://vborg.vbsupport.ru/showthread.php?t=163693)

Hex_legend 11-26-2007 10:00 PM

Profile Enchancement Layout
 
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:

Code:

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

Code:

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

Find:

Code:

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

Delete this.

Find:

Code:

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

Add below:

Code:

<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


All times are GMT. The time now is 08:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01187 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete