PDA

View Full Version : Mini Mods - Colored name in Navbar


Magnumutz
12-22-2007, 10:00 PM
Colored name in Navbar



Please mark as "Installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=166058)" 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:
<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:
<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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=166058)" 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:
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />

replace with:

<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
Great lil hack and I modified it for 3.6.8

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

<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:
<phrase 1="$bbuserinfo[username]"And replace it with:
<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 (https://vborg.vbsupport.ru/showthread.php?t=165980)

rolandogomez
02-17-2008, 07:16 AM
I believe you want this mod, roland: Usergroup Color Bar (https://vborg.vbsupport.ru/showthread.php?t=165980)

Thanks, works like a charm, rg sends!

hrk
02-18-2008, 02:17 AM
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:
Umm... search the navbar for:
<phrase 1="$bbuserinfo[username]"And replace it with:
<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

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

* Brandon Sheley clicks install

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:

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

Magnumutz
06-25-2008, 07:19 AM
First of all, login to your AdminCP. Then, on the left menu, you'll see the "Styles & Templates" expandable menu, click on it until it expands, then select "Style Manager".
Now you will see all your installed styles. Choose the one to edit and on it's right side, there's a drop-down menu, where you have to choose "Edit Templates".
On the new page that appears, almost on the center of it, you'll find some selectable templates, scroll down to "Navigation / Breadcrumb Templates", now you'll see the same page but with new templates available for you to click on, select "navbar"... that's the one you need to edit.

Thomas Dukic
06-25-2008, 12:42 PM
Thanks ! Installed.

GraNdMaStEr-B
06-25-2008, 02:17 PM
Thank you for the speedy help!
Installed!

g0dfather1984
06-26-2008, 07:41 PM
Thank you.

tillcat5
06-29-2008, 09:02 PM
im also using the good afternoon, good evening mod and for some reason when i do what it says it take out the entire good after, username line. any suggestions?

Magnumutz
07-02-2008, 02:48 PM
I'll have to install it and see what code it uses, but i'll do this in the days to follow cuz i'm pretty busy with tomorrow's exam.

Brandon Sheley
07-02-2008, 02:53 PM
oo, I had forgot about this one.. added it back to my forum
thanks Magnumutz :)

Magnumutz
07-04-2008, 05:17 AM
I know, i've seen it :D

star88
07-08-2008, 12:03 AM
nice hack, thank you !
clicked *installed*

slawkens
08-02-2008, 12:52 AM
Installed this 1-letter mod :P :P

uzaklar19
08-09-2008, 03:35 PM
thank you, nice...

...

BucWiLd
08-11-2008, 02:47 PM
installed, thanks

shotkey
08-19-2008, 03:26 AM
installed - works - thanks.

BoYagoob
09-03-2008, 05:14 PM
Installed, thanks ..

students_forum
09-04-2008, 11:04 AM
cool

Bio-Con
09-29-2008, 01:46 PM
thanx..its a little different for vb 3.7.3....instead of it being in navbar..its in the header template..so search for the first string there and replace..

Magnumutz
09-29-2008, 07:35 PM
That's probably cuz your using a modified style ;)
On default and MOST skins, it's in the navbar.

djlotus
10-03-2008, 03:11 PM
nice installed

djrapid.com
10-03-2008, 05:44 PM
some other modifications is overtaking this mod.
Same with me, when installed it just removed the whole of the top line, i have about three other mods in that section, they must be stopping it

Magnumutz
10-04-2008, 09:28 AM
Yeah, that might.
What mods are you using?

Fynnon
10-13-2008, 08:48 PM
but the custom ranks are not colored
how to make it work VIP`s or Elite Members ?

Thank You!

Magnumutz
10-14-2008, 05:24 AM
Well, edit the desired usergroups and at the "Username HTML Markup" box, enter whatever colors and HTML you want.

sjb
10-15-2008, 03:46 AM
thanku

denman75
12-23-2008, 06:15 AM
....nvm
my mistake

yhdf
12-24-2008, 10:36 AM
Thanks for this wonderful addition

crackers
12-28-2008, 10:35 AM
Nice, thanks.

Could you write how to corolize postusernames in threads listing, please?

Magnumutz
12-28-2008, 06:21 PM
That cannot be done without file edits yet...
And there's a product that does that for you.
You can find that here: https://vborg.vbsupport.ru/showthread.php?t=199109
However, it adds a lot of queries.

crackers
12-28-2008, 09:16 PM
Unfortunately linked by you mod generates big load (as most of Hasann's mods...).

Magnumutz
12-29-2008, 06:10 AM
I did say that in my post...

crackers
12-29-2008, 09:12 AM
You say that this mod adds a lot of queries but you didn't say that this mod can overload every server ;) Maybe someone optimize this mod by deleting unnecessary queries?

Magnumutz
12-30-2008, 02:26 PM
Well, adding a lot of queries MAY lead to server overloading...
For example, i've got my forum on a VPS, it can handle all the queries.
But a shared host for example, might not.
Hasann said he will try and optimize it.

algor65
01-01-2009, 07:50 PM
The best things are also the most simple ones!!!
Thanks. It works and it is great!!!

liselotte
01-21-2009, 01:07 AM
cant make it work on vb8. im using extremepixels template (Cobalt).
I already do the html markup via usergroup editing but works only on post and such but never work on nav

Magnumutz
01-21-2009, 11:09 AM
cant make it work on vb8. im using extremepixels template (Cobalt).
I already do the html markup via usergroup editing but works only on post and such but never work on nav
Though there's no change between 3.7 and 3.8, please ask for support in the following thread: https://vborg.vbsupport.ru/showthread.php?t=202552

The default template may differ from a style designer to another.

Hasann
01-21-2009, 01:14 PM
Unfortunately linked by you mod generates big load (as most of Hasann's mods...).

If you think so then just easy you DON'T NEED INSTALL my mods.

crackers
01-22-2009, 01:54 AM
Hasann, ok.
BTW Someone should describe you how to read a pms and how to reply for them becuase I see that you don't know how to do it .

Hasann
01-22-2009, 12:47 PM
Hasann, ok.
BTW Someone should describe you how to read a pms and how to reply for them becuase I see that you don't know how to do it .

I know it how to read a pms and reply them BUT..
I don't get paid to help you, so be nice to me. :)
Do not Private/Instant Message me for help! :mad:

crackers
01-22-2009, 05:17 PM
I didn't write to you for help, I only informed you about problems with your mods. LONG TIME AGO and I didn't receive any response. Eot.

elbais
02-04-2009, 07:27 PM
Thx...

Install!

kNeeLy
05-13-2009, 05:22 PM
great little trick right here!

DrackosNGU
06-23-2011, 03:53 AM
how do we do it on vB4?

DaveNGU
05-09-2012, 11:59 AM
how do we do it on vB4?

Hahaha, all you have to do is change username to musername.

It just looks shit on our header. :p

sparbzllc
07-26-2012, 02:21 PM
to do this in vB4...

find:
<li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>

replace with:
<li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.musername}, {vb:link member, {vb:raw bbuserinfo}}}</li>

zonaenlinea
08-24-2012, 10:15 AM
for 3.8.7 plisss