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)
-   -   Username Colour on Member Profile (https://vborg.vbsupport.ru/showthread.php?t=138509)

Distance 02-04-2007 10:00 PM

Username Colour on Member Profile
 
First official Template Modification by Distance


What does it do?

This makes the username show up as the default colour set for that usergroup..

Eg.

https://vborg.vbsupport.ru/external/2007/02/27.jpg







Note: All template edits are in the MEMBERINFO template


Installation



https://vborg.vbsupport.ru/external/2007/02/28.jpg


Find:

PHP Code:

<td class="tcat">$vbphrase[view_profile]<span class="normal">: $userinfo[username]</span></td

Replace with:

PHP Code:

<td class="tcat">$vbphrase[view_profile]<span class="normal">: $userinfo[musername]</span></td

##############


https://vborg.vbsupport.ru/external/2007/02/29.jpg


Find:

PHP Code:

<a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_buddy_list]</phrase></a

Replace with:

PHP Code:

<a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$userinfo[userid]"><phrase 1="$userinfo[musername]">$vbphrase[add_x_to_buddy_list]</phrase></a

Find:

PHP Code:

<a href="profile.php?$session[sessionurl]do=removelist&userlist=buddy&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_buddylist]</phrase></a

Replace with:

PHP Code:

<a href="profile.php?$session[sessionurl]do=removelist&userlist=buddy&u=$userinfo[userid]"><phrase 1="$userinfo[musername]">$vbphrase[remove_x_from_your_buddylist]</phrase></a

Find:

PHP Code:

<a href="profile.php?$session[sessionurl]do=addlist&userlist=ignore&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_ignore_list]</phrase></a

Replace with:

PHP Code:

<a href="profile.php?$session[sessionurl]do=addlist&userlist=ignore&u=$userinfo[userid]"><phrase 1="$userinfo[musername]">$vbphrase[add_x_to_ignore_list]</phrase></a

Find:

PHP Code:

<a href="profile.php?$session[sessionurl]do=removelist&userlist=ignore&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_ignorelist]</phrase></a

Replace with:

PHP Code:

<a href="profile.php?$session[sessionurl]do=removelist&userlist=ignore&u=$userinfo[userid]"><phrase 1="$userinfo[musername]">$vbphrase[remove_x_from_your_ignorelist]</phrase></a

###############


https://vborg.vbsupport.ru/external/2007/02/30.jpg




Find:
PHP Code:

<a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_posts_by_x]</phrase></a


Replace with:

PHP Code:

<a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]rel="nofollow"><phrase 1="$userinfo[musername]">$vbphrase[find_all_posts_by_x]</phrase></a



Find:
PHP Code:

<a href="search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;exactname=1&amp;searchuser=$userinfo[urlusername]rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a


Replace with:
PHP Code:

<a href="search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;exactname=1&amp;searchuser=$userinfo[urlusername]rel="nofollow"><phrase 1="$userinfo[musername]">$vbphrase[find_all_threads_started_by_x]</phrase></a


#####################


https://vborg.vbsupport.ru/external/2007/02/31.jpg


Find:

PHP Code:

<a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$userinfo[userid]rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[send_message_via_email_to_x]</phrase></a

Replace with:
PHP Code:

<a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$userinfo[userid]rel="nofollow"><phrase 1="$userinfo[musername]">$vbphrase[send_message_via_email_to_x]</phrase></a


Find:

PHP Code:

<a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a


Replace with:

PHP Code:

<a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]rel="nofollow"><phrase 1="$userinfo[musername]">$vbphrase[send_private_message_to_x]</phrase></a


#########################



https://vborg.vbsupport.ru/external/2007/02/32.jpg

Find:

PHP Code:

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

Replace with:

PHP Code:

<phrase 1="$userinfo[musername]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase




** Please Click Install **



I hope you have fun with this simple but effective mod!!


Enjoy!

Shazz 02-05-2007 11:26 AM

Creative Idea :)

Distance 02-05-2007 12:22 PM

Yeah inspired by the one on the navbar :)

Playa82 02-05-2007 06:47 PM

nice one, thanks

abramelin 02-05-2007 07:45 PM

Distance can you make this for forumhome and forumdisplay last post area?

Distance 02-05-2007 08:01 PM

Quote:

Originally Posted by abramelin (Post 1175433)
Distance can you make this for forumhome and forumdisplay last post area?

Your reply will be ignored unless you click installed

Distance

abramelin 02-05-2007 08:03 PM

thanks very much :)

clicked, installed

Distance 02-05-2007 08:25 PM

;)

I will look into this

Topaz71 02-06-2007 01:07 PM

Can someone help me? I saw on few forums that ladies usernames were having a different color... How can I do that? I would like lady's usernames of my forum to be in pink color...
Can someone help?

Distance 02-06-2007 01:13 PM

Quote:

Originally Posted by Topaz71 (Post 1175945)
Can someone help me? I saw on few forums that ladies usernames were having a different color... How can I do that? I would like lady's usernames of my forum to be in pink color...
Can someone help?


1. You havent clicked installed
2. This has no relevance to the thread whatsoever, however i will post an article on how to change usergroup colors.
3. Repored
4. grrr!!


All times are GMT. The time now is 01:08 AM.

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.01241 seconds
  • Memory Usage 1,809KB
  • 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
  • (20)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete