The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Template Parser Acting Stupid...
I posted this on vb.com but realized I should probably be asking here.
Anyone know why I would be getting this error: Code:
Parse error: syntax error, unexpected '[' in /home/XXXXXXXXXXXX/includes/adminfunctions_template.php(4597) : eval()'d code on line 72 Code:
function removeElement (e) { var li = e.parentNode; li.parentNode.removeChild(li); } Code:
var li = e.parentNode; Thanks for your help! |
#2
|
||||
|
||||
I already answered on your thread at vb.com. You should put <vb:literal> tags around javascript until they fix the issue regarding the { and var in the script.
|
#3
|
|||
|
|||
Yup, got it Lynne. Works good, thank you as always!
|
#4
|
|||
|
|||
I found escaping them works too..
Code:
function removeElement (e) \{ |
#5
|
|||
|
|||
Quote:
I feel safer with lynne's solution F. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|