Log in

View Full Version : Mini Mods - [AG] Style Chooser in Navbar


syrus.xl
03-18-2009, 10:00 PM
Style Chooser in Navbar

I seen some members asking about a mod to do this simple task, so here's how. It should work on most styles that use the default vBulletin navbar coding, and requires only one template edit.

Navigate to the following template:
AdminCP -> Styles & Templates -> Default Style -> Edit Templates -> Navigation / Breadcrumb Templates > navbar

Find:
<if condition="$show['member']">
<td class="alt2" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
Before Add:
<!-- Style Chooser -->
<td class="alt2">
<div align="right">
<if condition="$show['quickchooser']">
<select name="styleid" onChange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select>
</if>
</div>
</td>
<!-- End Style Chooser -->End of template edit.

Save template and you're finished! ;)

syrus.xl
03-19-2009, 09:14 AM
*reserved*

TandyServices
03-19-2009, 11:00 AM
I like it and works great. How can I put an image above it like you have in your screen shot? Like the way that is layed out..

syrus.xl
03-19-2009, 11:30 AM
I actually added that image specifically for screenshot purposes only. But it would be simple to add to the modification with a little bit of CSS.

I'll add the extra CSS code and change the DIV layout slightly, so it will show the additional text. I'm just finishing off coding another modification, so once that is done, I'll code the extra bit for this modification. :)

TandyServices
03-19-2009, 12:05 PM
Cool thanks will look for it..

Jasem
03-19-2009, 08:20 PM
Good work, thank you!......

masterweb
03-19-2009, 09:03 PM
Thanks a lot, i'll test it later... :D

Good work, thank you!......

TandyServices
03-22-2009, 05:16 PM
I actually added that image specifically for screenshot purposes only. But it would be simple to add to the modification with a little bit of CSS.

I'll add the extra CSS code and change the DIV layout slightly, so it will show the additional text. I'm just finishing off coding another modification, so once that is done, I'll code the extra bit for this modification. :)

Nothing yet??

COL NIL SATIS
11-05-2009, 04:52 PM
cool..installed!!!

yesfans
11-05-2009, 09:44 PM
I actually added that image specifically for screenshot purposes only. But it would be simple to add to the modification with a little bit of CSS.

I'll add the extra CSS code and change the DIV layout slightly, so it will show the additional text. I'm just finishing off coding another modification, so once that is done, I'll code the extra bit for this modification. :)



Where is the code??

RomanKuluev
01-23-2011, 07:58 PM
CMS VBA not work

Gadget_Guy
01-31-2011, 09:27 PM
CMS VBA not work

Same here sadly.

Would have been a great addition.

D.

Madbatty
07-24-2011, 10:35 AM
Sweet, installed and working perfectly thanks.