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


All times are GMT. The time now is 09:11 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.01232 seconds
  • Memory Usage 1,739KB
  • 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
  • (6)bbcode_html_printable
  • (1)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