Log in

View Full Version : Quick Style chooser


loftyasianz
08-22-2005, 02:14 AM
i just installed a skin that DOES NOT have a quick style chooser feature. and i want to add it in. i looked at some of my other skin's footers templates and found this piece of code.

<if condition="$show['quickchooser']">
<td class="tfoot">
<select name="styleid" id="ressel" onchange="switch_styleid(this)">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select>
</td>
</if>

but when i implemented this into the skin, it did not change the skins but gave me a "error on page" in the status bar of my web broswer. is there any other pieces of code that i must add to make the quick style chooser work for this skin?

thanks in advance,
warren

deathemperor
08-22-2005, 03:56 AM
which version of vbulletin are you trying to implement this to ?

loftyasianz
08-22-2005, 04:24 AM
3.0.7

sorry i forgot to include it =X

deathemperor
08-22-2005, 06:21 AM
do you have this code in the end of your footer ?

<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();

// Initialize 'Active' Table Cells
//activecells_init();
//-->
</script>

and make sure you include necessary js files in your headinclude template.

loftyasianz
08-22-2005, 04:04 PM
i moved

<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();

// Initialize 'Active' Table Cells
//activecells_init();
//-->
</script>
to the very last thing in my footer template.

these are all of the js files in my headinclude


<script type="text/javascript" src="<script type="text/javascript" src="http://www.nimpy.com/forums/clientscript/vbulletin_global.js"></script>
<if condition="$show['popups']"><script type="text/javascript" src="<script type="text/javascript" src="http://www.nimpy.com/forums/clientscript/vbulletin_menu.js"></script></if>
<script type="text/javascript" src="http://www.nimpy.com/forums/clientscript/statistic_java.js"></script>

it still does not change the style.

thanks for all of the help and quick response you've given me.

warren.

deathemperor
08-22-2005, 05:56 PM
check this line of code:

<script type="text/javascript" src="<script type="text/javascript" src="http://www.nimpy.com/forums/clientscript/vbulletin_global.js"></script>

I guess this causes the error.

loftyasianz
08-22-2005, 09:50 PM
Thank you so much! i cant believe i'm such a clutz.

Thank you so much.

epicbear
05-24-2006, 08:17 PM
I'm only getting errors in IE. I have the headinclude and footer componants in place and Firefox works. Any ideas?

I'm only getting errors in IE. I have the headinclude and footer componants in place and Firefox works. Any ideas?

<Emily Litella>
Nevermind.
</Emily Litella>