...

View Full Version : Done, but with errors on page. Please Help



dominickm
07-06-2007, 07:00 PM
I am getting the following error


Done, but with errors on page.


Line: 552
Char: 150
Error Exected ]
Code: 0

when I replace this script...


<table cellpadding="0" cellspacing="0" style="width:100%;">
<tr>
<td width="395"><img src="images/ad/misc/highlights_edit.gif" alt="Our Forum Highlights" /></td>
<td width="100%" style="background-image:url(images/ad/misc/highlight_repeat.gif);background-repeat:repeat-x;"><img src="images/ad/misc/highlight_repeat.gif" alt="" /></td>
<td width="6"><img src="images/ad/misc/highlight_right.gif" alt="" /></td>
</tr>
</table>

with this script...


<script language="JavaScript">
<!--
function MM_popupMsg(msg) { //v1.0

//alert(msg);

}

function MM_preloadImages() { //v3.0

var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>

<body onLoad="MM_preloadImages('graphics/world2.gif','graphics/world3.gif','graphics/world4.gif','graphics/world6.gif','graphics/world7.gif','graphics/world5.gif,'graphics/world8.gif')"><table cellpadding="0" cellspacing="0" style="width:100%;">
<tr>
<td width="100%" style="background-image:url(images/ad/misc/highlight_repeat.gif);background-repeat:repeat-x;"><div align="center"><img src="images/ad/misc/highlight_repeat.gif" alt="" /><img src="graphics/world.gif" width="235" height="128" usemap="#asia" border="0" alt="Traveldoer World Map" name="Image1">
<map name="asia">
<area shape="poly" coords="61,65,75,71,73,71,79,73,65,70,73,66,82,66,80,71,77,64,76,63,77,74,72,57,72,62" href="forumdisplay.php?f=35" alt="Caribbean & The Atlantic" title="Caribbean & The Atlantic" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','graphics/world8.gif',1)">
<area shape="poly" coords="1,44" href="#">
<area shape="poly" coords="14,37,14,37,24,48,28,60,39,70,49,75,52,71,57,61,64,60,64,51,75,48,73,40,69,25,64,14,58,4,46,0,32,0,2 0,19,8,15,0,20,0,42" href="forumdisplay.php?f=167" alt="North America" title="North America" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','graphics/world2.gif',1)">
<area shape="poly" coords="48,62" href="namerica.php">
<area shape="poly" coords="83,80" href="#">
<area shape="poly" coords="55,70,45,77,58,93,62,95,60,108,62,126,67,126,67,112,82,98,87,88,87,85,68,75,61,75" href="forumdisplay.php?f=65" alt="Central & South America" title="Central & South America" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','graphics/world3.gif',1)">
<area shape="poly" coords="95,7,103,58,140,50,169,29,194,25,230,18,210,0" href="forumdisplay.php?f=87" alt="Europe" title="Europe" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','graphics/world4.gif',1)">
<area shape="poly" coords="110,42" href="europe.html">
<area shape="poly" coords="136,52,152,58,147,71,160,79,177,90,193,90,216,90,188,67,204,53,217,39,228,24,206,24,192,31,166,31,14 9,47,143,51" href="forumdisplay.php?f=1" alt="Asia" title="Asia" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','graphics/world6.gif',1)">
<area shape="poly" coords="197,89,183,98,185,108,207,115,221,118,226,109,203,90" href="forumdisplay.php?f=26" alt="Australia" title="Australia" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','graphics/world7.gif',1)">
<area shape="poly" coords="114,56,96,66,96,67,96,62,96,61,96,72,96,62,100,81,113,79,115,93,121,109,142,98,150,61,138,53,105,58" href="forumdisplay.php?f=128" alt="Middle East & Africa" title="Middle East & Africa" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','graphics/world5.gif',1)">
<area shape="poly" coords="107,63,107,63,104,59,115,56,117,59" href="africa.html">
</map>
<img src="images/ad/misc/highlight_repeat.gif" alt="" /></div></td>
<td width="6"><img src="images/ad/misc/highlight_right.gif" alt="" /></td>
</tr>
</table>

and here is everything originally before I replace it...


<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>

<br />

<!-- breadcrumb, login, pm info -->
<table border="0" width="$stylevar[outertablewidth]" cellpadding="10" cellspacing="0" align="center"><tr>
<td width="180">

<!-- welcome/login box -->

<table cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/ad/misc/memberpanel.gif" alt="" /></td>
</tr>
<tr>
<td width="100%" style="background-color:#d5dfed;border-right:1px solid #9dacc3;border-left:1px solid #9dacc3;border-bottom:1px solid #9dacc3;padding:4px;">
<table cellpadding="0" cellspacing="0">
<tr>

<if condition="$show['member']">

<td valign="top"> <div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
</div>
</td>

<else />

<td style="padding:0px">

<!-- login form -->
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont"><label for="navbar_username">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" accesskey="p" tabindex="102" /></td>
</tr><tr>
<td class="smallfont"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />Remember</label></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td></tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->

</td>

</if>

</tr>
</table>
<!-- / breadcrumb, login, pm info -->
</td>
</tr>
</table>
<br />
<if condition="THIS_SCRIPT == index">
<!-- stats table -->
<table cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/ad/misc/foruminfo.gif" alt="" /></td>
</tr>
<tr>
<td width="100%" style="background-color:#d5dfed;border-right:1px solid #9dacc3;border-left:1px solid #9dacc3;border-bottom:1px solid #9dacc3;padding:4px;">


<!-- nav buttons bar -->
<if condition="$show['loggedinusers']">
<div class="bubble">
<!-- logged-in users -->
<a href="online.php$session[sessionurl_q]" rel="nofollow" class="bubble">$vbphrase[currently_active_users]</a></div>
<div class="smallfont"><phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase></div>
<br />
<div class="bubble"><a href="online.php$session[sessionurl_q]" rel="nofollow" class="bubble">Who Is Online?</a></div>
<div class="smallfont"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase>
<br /><br /><strong>Online Now:</strong> $activeusers </div>
</if>
<!-- end logged-in users -->

<br />
<div class="bubble"><phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase></div>
<div class="smallfont">
<strong>$vbphrase[threads]:</strong> $totalthreads <br />
<strong>$vbphrase[posts]:</strong> $totalposts <br />
<strong>$vbphrase[members]:</strong> $numbermembers <br /><if condition="$show['activemembers']">
<span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>"><strong>$vbphrase[active_members]:</strong> $activemembers</span><br />
</if>
<br /><strong><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase>!</strong></div>
<if condition="$show['birthdays']">

<!-- today's birthdays -->
<br />
<div class="bubble"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1" class="bubble">$vbphrase[todays_birthdays]</a></div>
<div class="smallfont">
$birthdays</div>
<!-- end today's birthdays -->
</if>
<if condition="$show['upcomingevents']">
<br />
<div class="bubble"><a href="calendar.php$session[sessionurl_q]" class="bubble"><if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if></a>
<br />
<div class="smallfont">$upcomingevents</font>
</if>
<br />
</td>
</tr>
</table>
<!-- / nav buttons bar -->

<br />
</if>
<!-- generic content table -->
<table cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/ad/misc/heading.gif" alt="" /></td>
</tr>
<tr>
<td width="100%" style="background-color:#d5dfed;border-right:1px solid #9dacc3;border-left:1px solid #9dacc3;border-bottom:1px solid #9dacc3;padding:4px;">content</td>
</tr>
</table>

</td><td width="100%" style="padding-left:20px;">

<if condition="THIS_SCRIPT != index">
<div style="border:1px solid #8E9FBA;"><div style="background-color:#D5DFED;border:1px solid white;padding:4px;">
<!-- breadcrumb, login, pm info -->
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td>&nbsp;</td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>
</tr></table>
</div></div>
<br /></if>
<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
</if>

<if condition="THIS_SCRIPT == index">
<!-- this is the highlight table, to post features or draw extra attention to something, it can easily be removed and editted - it is designed to be fluid width, the main section is the hightlights_edit image -->
<table cellpadding="0" cellspacing="0" style="width:100%;">
<tr>
<td width="395"><img src="images/ad/misc/highlights_edit.gif" alt="Our Forum Highlights" /></td>
<td width="100%" style="background-image:url(images/ad/misc/highlight_repeat.gif);background-repeat:repeat-x;"><img src="images/ad/misc/highlight_repeat.gif" alt="" /></td>
<td width="6"><img src="images/ad/misc/highlight_right.gif" alt="" /></td>
</tr>
</table>
<br />
</if>

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<form action="search.php?do=process" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
&nbsp;
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</form>
</div>
<!-- / header quick search form -->
</if>

<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>

<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>

</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->

<!-- PAGENAV POPUP -->

<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>

<!-- / PAGENAV POPUP -->
</if>


Can someone help me as to why I get the error?
Thanks a bunch.

Arty Effem
07-06-2007, 09:30 PM
I am getting the following error

Done, but with errors on page.
Quote:
Line: 552
Char: 150
Error Exected ‘]’
Code: 0
To get any help, you need to do at least one of these:
1) Positively identify that line in the code.
2) Quote the error from the FireFox error console or anoher decent debugger.
3) Post a URL to a runnable test case.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum