The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
JS in included $template
Hello,
I made a template called sidebar and reference it successfully using $sidebar. I successfully included it into the site and it does what I need it to do. Here's an example of the first HTML line in $template: Code:
<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"> So, I changed the first line to this: Code:
<script type="text/javascript"><!-- if (screen.availwidth>800) { document.write("<table cellpadding=\?$stylevar[outerborderwidth]\? cellspacing=\?0\? border=\?0\? class=\?tborder\? width=\?$stylevar[tablewidth]\? align=\?center\?>"); REST OF CODE HERE } else; //--></script> Any ideas? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|