Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
Switch Styles Option Box Details »»
Switch Styles Option Box
Version: 1.00, by 8thos 8thos is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.1.4 Rating:
Released: 07-06-2011 Last Update: Never Installs: 7
Template Edits
Re-useable Code Translations  
No support by the author.

This is a box I put in the header of my site to change forum skins.

You can use it anywhere though.





Get HTML color codes from this site: http://html-color-codes.info/


This is my regular forum link:

http://the8thlegion.com/forum.php

This is my forum link after switching to the next style:

http://the8thlegion.com/forum.php?styleid=185

For this line of the code, make the style ID number match your skin.


Code:
<option value="185">Black</option>
The code in green is the name of your style.

Write the style name where it is in blue.

The code in red is where you change the color inside the box.



Code:
<form action="forum.php" method="get" id="footer_select"><select style="background-color:#e9e9e9;" name="styleid" onchange="switch_id(this, 'style')"><optgroup>
<option value="" select="selected">Choose A Theme</option>
<option value="198">Steel</option>
<option value="185">Black</option>
<option value="191">Pink</option>
</optgroup>
</select>
</form>

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-07-2011, 01:40 AM
bskr84 bskr84 is offline
 
Join Date: Aug 2010
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #3  
Old 07-07-2011, 02:11 AM
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Location: Pensacola, FL
Posts: 772
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your welcome. Funny thing is, it's right there at the top and most members still don't see it.

smh
Reply With Quote
  #4  
Old 07-07-2011, 02:31 AM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great! Thank you so much.

Can it perhaps be put to the left of the search field? (On navbar) Will it work there, by just inserting your code there? Or would I need to do something else to get it working there?

Thanks for the help!
Reply With Quote
  #5  
Old 07-07-2011, 03:11 AM
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Location: Pensacola, FL
Posts: 772
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Taurus1 View Post
This is great! Thank you so much.

Can it perhaps be put to the left of the search field? (On navbar) Will it work there, by just inserting your code there? Or would I need to do something else to get it working there?

Thanks for the help!
Sure! Go here:

AdminCP/Styles and Templates/ Style Manager / Edit Templates / Navigation and Breadcrumb Templates / navbar

Search for:

Code:
{vb:raw template_hook.navtab_end}
Put the option box directly after.
Reply With Quote
  #6  
Old 07-07-2011, 04:14 AM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Octavius. View Post
Sure! Go here:

AdminCP/Styles and Templates/ Style Manager / Edit Templates / Navigation and Breadcrumb Templates / navbar

Search for:

Code:
{vb:raw template_hook.navtab_end}
Put the option box directly after.
I tried that, but then it places the box right next to the last entry on my navbar. I would like to have it right to the left of the search box. Thanks.
Reply With Quote
  #7  
Old 07-07-2011, 05:22 AM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One more question please. How can I add a field, like a category in the list? I want to add 2 categories. One saying 'Dark Skins' followed by all my dark skins, and 1 saying 'Light Skins' followed by all my light skins. Is that perhaps possible?

Thanks for the help!
Reply With Quote
  #8  
Old 07-23-2011, 09:22 PM
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Location: Pensacola, FL
Posts: 772
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dunno^

Style Switcher like vb.org



https://vborg.vbsupport.ru/showthread.php?t=249919

Put this code at the bottom of your headinclude: https://vborg.vbsupport.ru/showpost....1&postcount=15

Then use the HTML code provided in MoMan's first post.

Just copy-n-paste the whole code and put it underneath to add more styles.
Reply With Quote
  #9  
Old 07-27-2011, 07:08 PM
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Location: Rome
Posts: 730
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this will be nice for multiple languages. Can that be done just by changing the phrases?
Reply With Quote
  #10  
Old 07-27-2011, 09:39 PM
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Location: Pensacola, FL
Posts: 772
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dunno bout that. I will show you how to change the size of the option box when I'm not busy.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:28 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.05230 seconds
  • Memory Usage 2,302KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete