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

Topaz71 02-06-2007 03:04 PM

I didnt use this hack on my site... Thats why I didnt click install... But I think this hack is useful, and going to check it out this week... Your message was about username colors so I decided to ask if you knew about how to make lady's usernames be shown in pink lets say... and men's usernames with a standard color as normal users do...
Anyways thanks for help...

Distance 02-06-2007 03:27 PM

There is an article i just submitted: https://vborg.vbsupport.ru/showthrea...72#post1175972

Mr_Snob 02-06-2007 10:58 PM

wow very creative idea from you Josh!
thats what i need for me Thank you bro.

rjmjr69 02-08-2007 01:39 PM

Nice thank you can you do some other areas of the forums as well? Like the welcome block user screen home page

Ziki 02-08-2007 05:00 PM

Oh now I understand the difference between username and musername.I never knew what the difference was :p

Distance 02-08-2007 05:00 PM

hehe :)

deezelpope 03-12-2007 10:12 PM

Very nice!!! *Clicks installed! Thank you very much!

Distance 03-13-2007 12:53 AM

No problem :)

Im glad such a simple solution can be so helpful to some

HMBeaty 03-13-2007 01:55 AM

Quote:

Originally Posted by rjmjr69 (Post 1177551)
Nice thank you can you do some other areas of the forums as well? Like the welcome block user screen home page

I believe this is what you're looking for?

deezelpope 03-13-2007 10:25 AM

Quote:

Originally Posted by Distance (Post 1202136)
No problem :)

Im glad such a simple solution can be so helpful to some

I'm all for improving the look of my place, so I'll do whatever I need to!

This was a bit tedious (I have 5 skins), but well worth it!:up: :D Keep up the great work!;)

deezelpope 03-13-2007 10:25 AM

Quote:

Originally Posted by Redlinemotorsports (Post 1202179)
I believe this is what you're looking for?

Ooooh!! :D :up:

dbirosel 03-16-2007 08:25 PM

Works great! It would be great if we can get a username color on forumhome. :D

HMBeaty 03-16-2007 10:57 PM

Quote:

Originally Posted by dbirosel (Post 1205111)
Works great! It would be great if we can get a username color on forumhome. :D

https://vborg.vbsupport.ru/showthread.php?t=105683

anywares 03-16-2007 11:00 PM

hmmm nice mod but

too many template edits if you take into mind that most users have like 4-5 skinz wich means you have to multiply all the edits with the amount of skinz and i suck in maths but it would be allot of hard work :p

dbirosel 03-16-2007 11:01 PM

Quote:

Originally Posted by Redlinemotorsports (Post 1205210)

I already have that installed. I'm talking about the usernames in LAST POST BY

Losha 03-17-2007 11:19 AM

thanks a lot BoYagoob

Distance 03-26-2007 10:17 PM

Its not tedious or hard.

If you simply search for username and then choose them in the relevant template.. and then paste musername in its place you will have this done in no time :)

LouiseDM 04-05-2007 10:30 PM

thanks simple with abit of patience

itorrents 04-07-2007 01:30 AM

Installed, nice work :)

Distance 05-03-2007 06:38 AM

I think he is asking for the username markup to be on the forumhome where it says Last post by XXXX


I looked into this a while back and there is no easy solution such as this.

franzjuve 02-04-2008 01:21 AM

thanks Distance , nice mod cliked installed ;)

where i can change the colour for Find all thanked posts by xxx ?

regards
franz


All times are GMT. The time now is 05:22 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.01768 seconds
  • Memory Usage 1,868KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)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