PDA

View Full Version : Quick Style Chooser at top of Forums


brvheart
04 Dec 2006, 14:01
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
04 Dec 2006, 16:05
add to the top of the header?
Thanks MM!

sunnycher
04 Dec 2006, 16:09
Cool! installed :) Anyway for it not to put a background color behind it?

aveon
04 Dec 2006, 16:26
ill definetely use this one

brvheart
04 Dec 2006, 17:37
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
05 Dec 2006, 00:10
http://www.lgpphotographers.com/forum
you'll see it at the top left but the background color goes all the way across.

Thanks!

brvheart
05 Dec 2006, 14:06
added screenshot and demo to first post

sunnycher
06 Dec 2006, 15:54
any ideas yet?

brvheart
06 Dec 2006, 16:52
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
06 Dec 2006, 17:01
thank you :)

brvheart
06 Dec 2006, 17:06
First post updated to add the txt "Quick Style Chooser" next to box

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

*installed*

brvheart
18 Dec 2006, 02:17
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
18 Dec 2006, 02:21
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
18 Dec 2006, 02:27
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
18 Dec 2006, 02:36
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
18 Dec 2006, 04:50
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
06 Aug 2007, 16:47
I had this a while back and lost track of it as i made changes... glad i found it again!!!

brvheart
30 Aug 2007, 03:47
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
13 Feb 2008, 14:36
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
13 Oct 2008, 16:56
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 :(