PDA

View Full Version : Mini Mods - Colored name in Navbar


Magnumutz
23 Dec 2007, 22:21
Colored name in Navbar



Please mark as "Installed (http://www.vbulletin.org/forum/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 (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=166058)" if you use this modification, thanks !

Jase2
24 Dec 2007, 00:54
Quite a nice little hack.

Thanks,

Regards Jason :)

Derek Chai
24 Dec 2007, 01:14
nice

ChU v2
24 Dec 2007, 02:28
awesome, installed

Hornstar
24 Dec 2007, 11:49
Thanks :)

dvbusuario
26 Dec 2007, 00:28
Thx

Install!

newtsys
27 Dec 2007, 02:40
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
04 Jan 2008, 22:15
Is it me or is the part your changing the same as the part your adding???

Magnumutz
05 Jan 2008, 13:54
Almost dude...
$bbuserinfo[username] displays only the username, while $bbuserinfo[musername] displays the color that is set in the usergroup settings.

yeku
21 Jan 2008, 00:48
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
25 Jan 2008, 01:09
thanks

avsunforum
05 Feb 2008, 13:44
Hmm Thank You :))

rolandogomez
14 Feb 2008, 23:40
So where do you set the color in the user group permissions? Thanks, rg.

Magnumutz
15 Feb 2008, 16:28
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
16 Feb 2008, 13:28
some other modifications is overtaking this mod.
i could not install it.
any guide appreciated.

Magnumutz
16 Feb 2008, 17:34
Umm... search the navbar for:
<phrase 1="$bbuserinfo[username]"And replace it with:
<phrase 1="$bbuserinfo[musername]"It's just adding a letter :)

lordtopcat
16 Feb 2008, 23:49
Hi mate,

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

https://www.vbulletin.org/forum/

Cheers
LTC

rolandogomez
17 Feb 2008, 08:42
How do you do a legend so users can know what color belongs to what? thanks, rg.

lordtopcat
17 Feb 2008, 08:48
I believe you want this mod, roland: Usergroup Color Bar (http://www.vbulletin.org/forum/showthread.php?t=165980)

rolandogomez
17 Feb 2008, 09:16
I believe you want this mod, roland: Usergroup Color Bar (http://www.vbulletin.org/forum/showthread.php?t=165980)

Thanks, works like a charm, rg sends!

hrk
18 Feb 2008, 04:17
some other modifications is overtaking this mod.
i could not install it.
any guide appreciated.

Any help with this.? :o

Magnumutz
18 Feb 2008, 08:54
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
18 Feb 2008, 09:12
Hey Mag,

Any solution to my post?

Cheers
LTC

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

Magnumutz
18 Feb 2008, 10:07
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
25 Mar 2008, 19:29
Quick & Easy, Thanks!

Aclikyano
26 Mar 2008, 04:31
thanks!

Brandon Sheley
26 Mar 2008, 05:27
who would of known a little m would change colors :D

thanks mate

/me clicks install

Magnumutz
26 Mar 2008, 07:33
I know you installed it, i've seen it in action :D

Magnumutz
19 May 2008, 14:30
Added Installation Instructions file.

JetHaCkR
27 May 2008, 10:59
Quite Simple Mod..
But Useful

trilogy33
28 May 2008, 14:56
Done. Easy. Thank you :)

Charlie98902
28 May 2008, 16:17
As small as the line of code is I am surprised this isn't done with the default vBulletin.

carrlos
29 May 2008, 04:13
Thanks!!!

MadK
15 Jun 2008, 23:36
This was already done by someone else in the past:

http://www.vbulletin.org/forum/showthread.php?t=124996

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

LasT-ChaNcE
17 Jun 2008, 00:04
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
17 Jun 2008, 04:37
Well... it might have different hooks there or phrases or w/e it uses.

LasT-ChaNcE
17 Jun 2008, 08:21
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
17 Jun 2008, 11:17
Works Great! Installed and Marked!

term_
17 Jun 2008, 20:15
Thanks guy.

I installed and clicked the install button.;)

GraNdMaStEr-B
25 Jun 2008, 03:12
I cant seem to find "navbar" in my edit templates any help would be apprec please?

Magnumutz
25 Jun 2008, 09:19
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
25 Jun 2008, 14:42
Thanks ! Installed.

GraNdMaStEr-B
25 Jun 2008, 16:17
Thank you for the speedy help!
Installed!

g0dfather1984
26 Jun 2008, 21:41
Thank you.

tillcat5
29 Jun 2008, 23:02
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
02 Jul 2008, 16:48
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
02 Jul 2008, 16:53
oo, I had forgot about this one.. added it back to my forum
thanks Magnumutz :)

Magnumutz
04 Jul 2008, 07:17
I know, i've seen it :D

star88
08 Jul 2008, 02:03
nice hack, thank you !
clicked *installed*

slawkens
02 Aug 2008, 02:52
Installed this 1-letter mod :P :P

uzaklar19
09 Aug 2008, 17:35
thank you, nice...


...

BucWiLd
11 Aug 2008, 16:47
installed, thanks

shotkey
19 Aug 2008, 05:26
installed - works - thanks.

BoYagoob
03 Sep 2008, 19:14
Installed, thanks ..

students_forum
04 Sep 2008, 13:04
cool

Bio-Con
29 Sep 2008, 15:46
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
29 Sep 2008, 21:35
That's probably cuz your using a modified style ;)
On default and MOST skins, it's in the navbar.

djlotus
03 Oct 2008, 17:11
nice installed

djrapid.com
03 Oct 2008, 19:44
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
04 Oct 2008, 11:28
Yeah, that might.
What mods are you using?

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

Thank You!

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

sjb
15 Oct 2008, 05:46
thanku

denman75
23 Dec 2008, 08:15
....nvm
my mistake

yhdf
24 Dec 2008, 12:36
Thanks for this wonderful addition

crackers
28 Dec 2008, 12:35
Nice, thanks.

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

Magnumutz
28 Dec 2008, 20:21
That cannot be done without file edits yet...
And there's a product that does that for you.
You can find that here: http://www.vbulletin.org/forum/showthread.php?t=199109
However, it adds a lot of queries.

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

Magnumutz
29 Dec 2008, 08:10
I did say that in my post...

crackers
29 Dec 2008, 11:12
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
30 Dec 2008, 16:26
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 Jan 2009, 21:50
The best things are also the most simple ones!!!
Thanks. It works and it is great!!!

liselotte
21 Jan 2009, 03:07
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
21 Jan 2009, 13:09
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: http://www.vbulletin.org/forum/showthread.php?t=202552

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

Hasann
21 Jan 2009, 15:14
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
22 Jan 2009, 03:54
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
22 Jan 2009, 14:47
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
22 Jan 2009, 19:17
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
04 Feb 2009, 21:27
Thx...

Install!

kNeeLy
13 May 2009, 19:22
great little trick right here!

DrackosNGU
23 Jun 2011, 05:53
how do we do it on vB4?

DaveNGU
09 May 2012, 13:59
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
26 Jul 2012, 16:21
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
24 Aug 2012, 12:15
for 3.8.7 plisss