PDA

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


syrus.xl
19 Mar 2009, 10:13
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
19 Mar 2009, 10:14
*reserved*

TandyServices
19 Mar 2009, 12:00
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
19 Mar 2009, 12:30
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
19 Mar 2009, 13:05
Cool thanks will look for it..

Jasem
19 Mar 2009, 21:20
Good work, thank you!......

masterweb
19 Mar 2009, 22:03
Thanks a lot, i'll test it later... :D

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

TandyServices
22 Mar 2009, 18:16
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
05 Nov 2009, 17:52
cool..installed!!!

yesfans
05 Nov 2009, 22:44
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
23 Jan 2011, 20:58
CMS VBA not work

Gadget_Guy
31 Jan 2011, 22:27
CMS VBA not work

Same here sadly.

Would have been a great addition.

D.

Madbatty
24 Jul 2011, 11:35
Sweet, installed and working perfectly thanks.