PDA

View Full Version : Quick Style Chooser at top of Forums


brvheart
12-03-2006, 10:00 PM
This is my first mod release so be gentle ;) and please be sure to click *install* :)

I am not sure if you have multiple styles as I do, but I found that a lot of members had no idea that they could change the style in which they viewed the site in. I added this simple mod and everyone loved it so thought I would share :)

What it does: This will add the quickstyle chooser to the top of the forum for easy access and letting others know that they have the option to change the style in which they view

Live Demo Here: www.mmaworld.org

Add the following to the top of the header template:

<!-- Start Quick Style Chooser -->
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>
<if condition="$show['quickchooser']">
<td class="tfoot">
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select>
<b><i>Quick Style Chooser</b></i>
</td>
</if>
<!-- End Quick Style Chooser -->

sunnycher
12-04-2006, 03:05 PM
add to the top of the header?
Thanks MM!

sunnycher
12-04-2006, 03:09 PM
Cool! installed :) Anyway for it not to put a background color behind it?

aveon
12-04-2006, 03:26 PM
ill definetely use this one

brvheart
12-04-2006, 04:37 PM
add to the top of the header?
Thanks MM!

Yes this will allow it to show up on all pages throughout your forum

Cool! installed :) Anyway for it not to put a background color behind it?

hmm....not sure I will check into it...give me a link so that I can see what you mean please, but if it is what I think this a cell all the way across the top of the forum.

sunnycher
12-04-2006, 11:10 PM
<a href="http://www.lgpphotographers.com/forum" target="_blank">http://www.lgpphotographers.com/forum</a>
you'll see it at the top left but the background color goes all the way across.

Thanks!

brvheart
12-05-2006, 01:06 PM
added screenshot and demo to first post

sunnycher
12-06-2006, 02:54 PM
any ideas yet?

brvheart
12-06-2006, 03:52 PM
any ideas yet?

in the code remove the following:

<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>

:)

sunnycher
12-06-2006, 04:01 PM
thank you :)

brvheart
12-06-2006, 04:06 PM
First post updated to add the txt "Quick Style Chooser" next to box

Devil Woman
12-18-2006, 12:50 AM
Thanks for this been looking for something like this, made it so it was below my logo instead of above, looks great

*installed*

brvheart
12-18-2006, 01:17 AM
Thanks for this been looking for something like this, made it so it was below my logo instead of above, looks great

*installed*

My pleasure :)

sunnycher
12-18-2006, 01:21 AM
If I wanted to relocate this option, how would I do that? Like, what if I wanted it in my navigation box? or in the navbar?

DW, how did you do yours? And can you post a link to your site to see it?
TIA!

Devil Woman
12-18-2006, 01:27 AM
Here is how I added it just below my logo

IN HEADER FIND:

<!-- /logo -->

ADD BELOW

<!-- Start Quick Style Chooser -->
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>
<if condition="$show['quickchooser']">
<td class="tfoot">
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select>
<b><i>Quick Style Chooser</b></i>
</td>
</if>
<!-- End Quick Style Chooser -->

If you wanted it with the same background colour as your forum like mine just do the following

FIND IN HEADER

<!-- /logo -->

ADD BELOW

<!-- Start Quick Style Chooser -->
<if condition="$show['quickchooser']">
<td class="tfoot">
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select>
<b><i>Quick Style Chooser</b></i>
</td>
</if>
<!-- End Quick Style Chooser -->

VIEW HERE (http://www.share-central.org/forum)

hope that helps

brvheart
12-18-2006, 01:36 AM
If I wanted to relocate this option, how would I do that? Like, what if I wanted it in my navigation box? or in the navbar?

DW, how did you do yours? And can you post a link to your site to see it?
TIA!

To put this in the navbar...I would either not suggest. If you want this option in the navbar, I would suggest using a drop down menu and then adding this as a link:

http://www.yoursite.com/forum/?styleid=1

Note that you would need to fill in the "mysite" with your site, maybe take out the "forum" (depending on your setup) and change the "styleid=1 for each style that you have you installed.

To put it under the logo, use the directions from DW :)

and if you wanted to put it in the navigation box...just find where in the template you want to add it. I have not done this, but I will as soon as I get a chance and I will post back here for to give exact directions ok?

gothicuser
12-18-2006, 03:50 AM
If I wanted to relocate this option, how would I do that? Like, what if I wanted it in my navigation box? or in the navbar?

DW, how did you do yours? And can you post a link to your site to see it?
TIA!
Had mine in the navbar for a while now, and the way we did it was to do this:
find
<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>and replace with
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" width="100%" height="30px" align="center"><a href="#" onmouseover="ajax_showTooltip('headergen.php',this);return false" onmouseout="ajax_hideTooltip()"><strong> Welcome to the Cornish Server Forums </strong></a> <if condition="$show['quickchooser']">

<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select>
</if></td>
</tr>
Have a butchers HERE (http://www.cornishserver.com)

TheBlackPoet
08-06-2007, 03:47 PM
I had this a while back and lost track of it as i made changes... glad i found it again!!!

brvheart
08-30-2007, 02:47 AM
I had this a while back and lost track of it as i made changes... glad i found it again!!!

Me too :) - Glad you found that is ;)

I am thinking of making it a product....

GuaRRand
02-13-2008, 01:36 PM
i'll wait a bit before installing this... i have several skins with different layouts so i'd like to be able to put it in specific places on the different skins...

Looks promising though

brvheart
10-13-2008, 03:56 PM
i'll wait a bit before installing this... i have several skins with different layouts so i'd like to be able to put it in specific places on the different skins...

Looks promising though

IT can be placed where you would like in custom skins, just find the template, and add the code :)

Still trying to make it a product - I stink at that part of it sorry about that guys and gals :(