![]() |
Syntax Error
Trying to put things together but it is killing me trying to understand why I get this error.
Quote:
PHP Code:
PHP Code:
|
Just go over the code and rem out one line at the time..
or remove, little blocks.. or if(){} rules... After one of them.. you will NOT get the error anymore.. Put the others back in.. and inspect the line you removed to make it working.. F. |
Forgot to put the template up:
HTML Code:
{vb:stylevar htmldoctype} HTML Code:
<script language="Javascript" type="text/javascript"> |
it seems to be related to the javascript bug... in vbulletin..
template parser doesnt like the word var inside curly brackets.. var arrInput inside a curly bracket doesnt work.. 2 solutions: either put the javascript inbetween <vb:litteral> tags or declare the var outside the curly brackets... PS its maybe not that bug.. because usually then you cannot save the template... but its worth a try |
Ok tried the litteral approach but honestly I have no idea how to mess with javascript outside of templates. Any suggestions?
|
As suggested, just put <vb:literal> tags around your javascript:
HTML Code:
<vb:literal> |
I would do it that way...
either: HTML Code:
{vb:stylevar htmldoctype} HTML Code:
<script language="Javascript" type="text/javascript"> if it works.. then you can remove the vb:literal and play around with the var dunno if you put var arrInput; or var arrInput = new array(); or or...Important is outside the curly brackets... ooooooops didnt see lynn posting while i was posting... sorry |
Quote:
|
LOL I spelled it wrong, I am having spelling issues today.
Got it though, now to fix the stupid layout. |
All times are GMT. The time now is 09:14 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|