Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-01-2012, 04:44 PM
Michael.A's Avatar
Michael.A Michael.A is offline
 
Join Date: Dec 2008
Location: L.A
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default javascript in a template help

getting an error when saving this in a template !!

PHP Code:
<script type="text/javascript">

var brb = new Object();
brb.ad_url = escape "{vb:raw 4teck.url}";
brb.small_path = "{vb:raw vboptions.bburl}.'/brb_sm.swf'";
brb.small_image = escape "{vb:raw 4teck.s_i_path}";
brb.big_path = "{vb:raw vboptions.bburl}.'/brb_big.swf'";
brb.big_image = escape "{vb:raw 4teck.b_i_path}";

</script> 
error is:
Code:
Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3555
Warning Message!
Code:
The following error occurred when attempting to evaluate this template:
%1$s
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
do you guys know why am getting this does the code look ok?

--------------- Added [DATE]1335898411[/DATE] at [TIME]1335898411[/TIME] ---------------

i got it do not start an array with a number

exp:-
{vb:raw 4teck.url} ----
{vb:raw teck.url} ------
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:19 PM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.