PDA

View Full Version : Forum Home Enhancements - Switch Styles Option Box


8thos
07-06-2011, 10:00 PM
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.

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


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

{vb:raw template_hook.navtab_end}

Put the option box directly after.

Taurus1
07-07-2011, 04:14 AM
Sure! Go here:

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

Search for:

{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.php?p=2224001&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.