vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Mini Mods - Colored name in Navbar (https://vborg.vbsupport.ru/showthread.php?t=165989)

Magnumutz 12-22-2007 10:00 PM

Colored name in Navbar
 
Colored name in Navbar



Please mark as "Installed" if you use this modification, thanks !


This is my first "release" here, and it's pretty much simple :p

This is based on the usergroup's Username HTML Markup, so you MUST have something set, for this to display anything.

How to do it:

Ok, go to your Style Manager -> Edit Templates -> Navbar
Find:
HTML Code:

<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
And replace it with:
HTML Code:

<strong><phrase 1="$bbuserinfo[musername]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
Enjoy :)

Please mark as "Installed" if you use this modification, thanks !

Jase2 12-23-2007 10:54 PM

Quite a nice little hack.

Thanks,

Regards Jason :)

Derek Chai 12-23-2007 11:14 PM

nice

ChU v2 12-24-2007 12:28 AM

awesome, installed

Hornstar 12-24-2007 09:49 AM

Thanks :)

dvbusuario 12-25-2007 10:28 PM

Thx

Install!

newtsys 12-27-2007 12:40 AM

Great lil hack and I modified it for 3.6.8

Find:
HTML Code:

<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
replace with:

HTML Code:

<strong><phrase 1="$bbuserinfo[musername]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x]</phrase></strong><br />
just removed the link_y and used a diffrent find for the navbar.

HuggyCT2 01-04-2008 08:15 PM

Is it me or is the part your changing the same as the part your adding???

Magnumutz 01-05-2008 11:54 AM

Almost dude...
$bbuserinfo[username] displays only the username, while $bbuserinfo[musername] displays the color that is set in the usergroup settings.

yeku 01-20-2008 10:48 PM

Quote:

Originally Posted by newtsys (Post 1409827)
Great lil hack and I modified it for 3.6.8

Find:
HTML Code:

<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
replace with:

HTML Code:

<strong><phrase 1="$bbuserinfo[musername]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x]</phrase></strong><br />
just removed the link_y and used a diffrent find for the navbar.

Installed and work perfectly at 3.6.7 with this modification.

thanks

ARB4HOSTING.COM 01-24-2008 11:09 PM

thanks

avsunforum 02-05-2008 11:44 AM

Hmm Thank You :))

rolandogomez 02-14-2008 09:40 PM

So where do you set the color in the user group permissions? Thanks, rg.

Magnumutz 02-15-2008 02:28 PM

AdminCP -> Usergroups -> Usergroup Manager -> Select the desired usergroup -> Edit usergroup. And you'll find the "Username HTML Markup" field... click the small "?" button for more help.

hrk 02-16-2008 11:28 AM

some other modifications is overtaking this mod.
i could not install it.
any guide appreciated.

Magnumutz 02-16-2008 03:34 PM

Umm... search the navbar for:
HTML Code:

<phrase 1="$bbuserinfo[username]"
And replace it with:
HTML Code:

<phrase 1="$bbuserinfo[musername]"
It's just adding a letter :)

lordtopcat 02-16-2008 09:49 PM

Hi mate,

Are you able to color the username in the 'Last Post' field too?

https://vborg.vbsupport.ru/

Cheers
LTC

rolandogomez 02-17-2008 06:42 AM

How do you do a legend so users can know what color belongs to what? thanks, rg.

lordtopcat 02-17-2008 06:48 AM

I believe you want this mod, roland: Usergroup Color Bar

rolandogomez 02-17-2008 07:16 AM

Quote:

Originally Posted by lordtopcat (Post 1444972)
I believe you want this mod, roland: Usergroup Color Bar

Thanks, works like a charm, rg sends!

hrk 02-18-2008 02:17 AM

Quote:

Originally Posted by hrk (Post 1444382)
some other modifications is overtaking this mod.
i could not install it.
any guide appreciated.

Any help with this.? :o

Magnumutz 02-18-2008 06:54 AM

Yes, i already answered to your question, right under your post:
Quote:

Originally Posted by Magnumutz (Post 1444507)
Umm... search the navbar for:
HTML Code:

<phrase 1="$bbuserinfo[username]"
And replace it with:
HTML Code:

<phrase 1="$bbuserinfo[musername]"
It's just adding a letter :)


lordtopcat 02-18-2008 07:12 AM

Hey Mag,

Any solution to my post?

Cheers
LTC

Quote:

Are you able to color the username in the 'Last Post' field too?

Magnumutz 02-18-2008 08:07 AM

Yeah, that can be done, but it'll take SOME modification to templates...
Though i'll try and make my first product for that.

Tolas 03-25-2008 05:29 PM

Quick & Easy, Thanks!

Aclikyano 03-26-2008 02:31 AM

thanks!

Brandon Sheley 03-26-2008 03:27 AM

who would of known a little m would change colors :D

thanks mate

[high]* Brandon Sheley clicks install[/high]

Magnumutz 03-26-2008 05:33 AM

I know you installed it, i've seen it in action :D

Magnumutz 05-19-2008 12:30 PM

Added Installation Instructions file.

JetHaCkR 05-27-2008 08:59 AM

Quite Simple Mod..
But Useful

trilogy33 05-28-2008 12:56 PM

Done. Easy. Thank you :)

Charlie98902 05-28-2008 02:17 PM

As small as the line of code is I am surprised this isn't done with the default vBulletin.

carrlos 05-29-2008 02:13 AM

Thanks!!!

MadK 06-15-2008 09:36 PM

This was already done by someone else in the past:

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

But... nice re-release nevertheless. :)

LasT-ChaNcE 06-16-2008 10:04 PM

Would it be possible to do something like this with the "Today's Birthdays" box? The same trick doesn't seem to work, does anyone know another way?

Magnumutz 06-17-2008 02:37 AM

Well... it might have different hooks there or phrases or w/e it uses.

LasT-ChaNcE 06-17-2008 06:21 AM

Yeah, it's a bit different:

HTML Code:

<!--rlm--><a href="member.php?$session[sessionurl]u=$birthday[userid]">$birthday[username]</a>
<if condition="$birthday[age]"><!--rlm-->($birthday[age])</if>

Anyone have any ideas how to connect this to the usergroup colors?

Captain Tycoon 06-17-2008 09:17 AM

Works Great! Installed and Marked!

term_ 06-17-2008 06:15 PM

Thanks guy.

I installed and clicked the install button.;)

GraNdMaStEr-B 06-25-2008 01:12 AM

I cant seem to find "navbar" in my edit templates any help would be apprec please?


All times are GMT. The time now is 04:54 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.02712 seconds
  • Memory Usage 1,791KB
  • 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
  • (11)bbcode_html_printable
  • (5)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
  • (40)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