vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Mini Mods - [AG] Style Chooser in Navbar (https://vborg.vbsupport.ru/showthread.php?t=208785)

syrus.xl 03-18-2009 10:00 PM

[AG] Style Chooser in Navbar
 
1 Attachment(s)
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:
Code:

<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:
Code:

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

Quote:

Originally Posted by Jasem (Post 1772109)
Good work, thank you!......


TandyServices 03-22-2009 05:16 PM

Quote:

Originally Posted by syrus.xl (Post 1771774)
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

Quote:

Originally Posted by syrus.xl (Post 1771774)
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??


All times are GMT. The time now is 06:57 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.01089 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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