vb.org style changer (sort of)

Hoxxy

New Member
So I went over to vb.org today and noticed they have a new style changer and so here is a working mock up version

This is not the exact style changer vb.org have!

+ this should work in all versions!!

This will add a similar style changer to your forum that vbulletin.org now have.

In footer template find:

Code:
<form action="$vboptions[forumhome].php" method="get">

<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>
		</td>
	</if>

Replace with:

Code:
<form action="$vboptions[forumhome].php" method="get">

<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>
<if condition="$show['quickchooser']">
		<td class="tfoot" style="white-space:nowrap" align="left">

<span class="smallfont">Style | </span> 
  <a href="$vboptions[forumhome].php?styleid=[color=red]STYLE ID NUMBER[/color]" rel="nofollow"><img src="[color=red]PATH/TO/YOUR_IMAGE.GIF[/color]" alt="" title="[color=red]YOUR_TITLE[/color]"  border="0" width="[color=red]IMAGE_WIDTH[/color]" height="[color=red]IMAGE_HEIGHT[/color]" class="inlineimg" /></a> 
  
  </td>
</if>

Now in my code find all the things (highlighted in red) that need to be changed and add your own details:

STYLE ID NUMBER
PATH/TO/YOUR_IMAGE.GIF you will have to make your own images I suggerst 16px x 16px
YOUR_TITLE - Set as style name
IMAGE_WIDTH
IMAGE_HEIGHT

then just add:
Code:
<a href="$vboptions[forumhome].php?styleid=STYLE ID NUMBER" rel="nofollow"><img src="PATH/TO/YOUR_IMAGE.GIF" alt="" title="YOUR_TITLE"  border="0" width="IMAGE_WIDTH" height="IMAGE_HEIGHT" class="inlineimg" /></a>

to the list everytime you add a new style remebering to change the highlighted code :)


How do I find the style id?

Goto:
admincp >> style manager >> All style options

in the top lefthand corner above the dropdown options box you will see this:

"Fonts / Colors etc.: mystylename (id: 23)" <-- your style id!
 
Thanks for share Hoxxy, but i think, this is not Uncle Paul using.

Look at:

Code:
Layout Options | <span class="smallfont">Width:</span> 
  <a href="[b][color=Red]misc.php?do=changestyle&width=wide[/color][/b]" rel="nofollow" style="text-decoration:underline">Wide</a>

Code:
<span class="smallfont">Color:</span> <a href="[color=Red][b]misc.php?do=changestyle&color=purple"[/b][/color] rel="nofollow"><img src="http://www.vbulletin.org/forum/images/cstyle/purplestyle.gif" alt="" title="Purple Rain"  border="0" width="13" height="13" class="inlineimg" /></a>
 
vietvbb said:
Thanks for share Hoxxy, but i think, this is not Uncle Paul using.

Look at:

Code:
Layout Options | <span class="smallfont">Width:</span> 
  <a href="[b][color=Red]misc.php?do=changestyle&width=wide[/color][/b]" rel="nofollow" style="text-decoration:underline">Wide</a>

Code:
<span class="smallfont">Color:</span> <a href="[color=Red][b]misc.php?do=changestyle&color=purple"[/b][/color] rel="nofollow"><img src="http://www.vbulletin.org/forum/images/cstyle/purplestyle.gif" alt="" title="Purple Rain"  border="0" width="13" height="13" class="inlineimg" /></a>

Read my post again...:)
This is not the exact style changer vb.org have!
 
i like how you can choose wide or fixed, how could i do this? when i type in misc.php?do=changestyle&width=wide it does nothing... hmm
 
Back
Top