vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Style changer in custom javascript navbar (https://vborg.vbsupport.ru/showthread.php?t=227999)

vijayninel 11-15-2009 11:24 AM

Style changer in custom javascript navbar
 
Hi! I have a custom javascript navbar on my forum instead of the standard vBulletin navbar.

I want to put the quick style chooser which is at the bottom of the forum on this navbar as well.

The custom navbar follows a code like this: <a href="url">Link text</a>

However the vBulletin style chooser is something like this:

Code:

<select name="styleid" onChange="switch_id(this, 'style')">

<optgroup label="Quick Style Chooser">

<option value="1" class="" >-- Default Style</option>
<option value="10" class="" selected="selected">---- roxor</option>
<option value="4" class="" >---- Child of Default Style</option>
<option value="2" class="" >-- serene</option>
<option value="8" class="" >-- One Column Style</option>

</optgroup>
</select>

Can you please tell me how to write the style links for the navbar in the <a href="url">Link text</a> format so that the styles can be changed from the navbar.

Thanks. :)


All times are GMT. The time now is 01:30 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.01062 seconds
  • Memory Usage 1,695KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete