vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Home Enhancements - Switch Styles Option Box (https://vborg.vbsupport.ru/showthread.php?t=266397)

8thos 07-06-2011 10:00 PM

Switch Styles Option Box
 
1 Attachment(s)
This is a box I put in the header of my site to change forum skins.

You can use it anywhere though.

https://vborg.vbsupport.ru/external/2011/07/104.jpg



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>


bskr84 07-07-2011 01:40 AM

thanks

8thos 07-07-2011 02:11 AM

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

smh

Taurus1 07-07-2011 02:31 AM

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!

8thos 07-07-2011 03:11 AM

Quote:

Originally Posted by Taurus1 (Post 2217623)
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.

Taurus1 07-07-2011 04:14 AM

Quote:

Originally Posted by Octavius. (Post 2217635)
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.

Taurus1 07-07-2011 05:22 AM

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!

8thos 07-23-2011 09:22 PM

I dunno^

Style Switcher like vb.org

https://vborg.vbsupport.ru/external/2011/07/45.jpg

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.

FReeSTER 07-27-2011 07:08 PM

this will be nice for multiple languages. Can that be done just by changing the phrases?

8thos 07-27-2011 09:39 PM

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


All times are GMT. The time now is 09:37 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.01021 seconds
  • Memory Usage 1,736KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete