Guest Posted December 22, 2005 Share Posted December 22, 2005 Hi! I've introduced 2 scripts in infobox, first for news, which is ok, and second for weather, which gives me errors. This is what I get: Parse error: parse error, unexpected ';', expecting ')' in /home/muccelmi/public_html/muccelmic/includes/boxes_content/information.php on line 143 And if I modify that line I get errors for another line and so on. This is the code from information.php: <?php /* $Id: product_notification.php,v 1.6 2002/11/22 18:56:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION); new infoBoxHeading($info_box_contents, false, false); // Retrieve information from Info table $informationString = ""; $sql=mysql_query('SELECT information_id, info_title FROM ' . TABLE_INFORMATION .' ORDER BY v_order') or die(mysql_error()); while($row=mysql_fetch_array($sql)): $informationString .= '<a href="' . tep_href_link(FILENAME_INFORMATION) . '?info_id=' . $row['information_id'] . '">' . $row['info_title'] . '</a><br>'; endwhile; $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRINT_CATALOG, '', 'NONSSL') . '" target="_BLANK">' . BOX_INFORMATION_PRINT_CATALOG .'</a><br>' . $informationString . '<a href="' . tep_href_link(FILENAME_DYNAMIC_SITEMAP) . '">' . BOX_INFORMATION_DYNAMIC_SITEMAP . '</a><br>' . '<a href="' . tep_href_link(FILENAME_LINKS) . '">' . LINKS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_MY_POINTS_HELP) . '">' . BOX_INFORMATION_MY_POINTS_HELP . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<br><!-- Continut gratuit oferit de My-Press.com --> <!-- http://content.my-press.com/ --> <script language="JavaScript"> /****************************************** # Autor: Szilard-Erwin Szogyenyi # # Copywright: http://www.my-press.com/ # # Alte contenturi, gasiti la adresa: # # http://content.my-press.com/ # ******************************************* # In schimbul acestui content, va rog # # introduceti un link catre My-Press.com # # # # Multumesc! # ******************************************/ <!-- var tablewidth = "150"; // setare latime tabel var tableheight = "200"; // setare inaltime tabel var tablebordrwidth = "1px"; // setare latime bordura var tablebordercolor = "#000000"; // setare culoare bordura var tableborderstyle = "solid"; // setare stil bordura, poate fi: none, solid, dashed, dotted, double, groove, hidden, inherit, inset, outset, ridge var tablebgcolor = "#FFFFFF"; // setare culoarea de fond a tabelului var tablebackground = ""; // setare adresa imagine pentru fundal (adresa completa: http://www.....) var titlu_td_height = "20"; // setare inaltime pentru celula titlu (Revista Presei) var titlu_td_bgcolor = "#cc99ff"; // setare culoarea de fond a celulei titlului (Revista Presei) var titlu_td_background = ""; // setare adresa imagine pentru fundalul celulei titlului (Revista Presei) (adresa completa: http://www.....) var tfont_family = "Kristen ITC, Hobo, Arial"; // setare tipul fontului pentru titlu (Revista Presei) var tfont_size = "11px"; // setare dimensiune font pentru titlu (Revista Presei) var tlink_color = "#ffffff"; // setare culoarea fontului pentru pentru titlu (Revista Presei) var thover_link_color = "#cc99ff"; // setare culoarea fontului pentru titlu (Revista Presei) var tlink_text_decoration = "none"; // setare decorare font pentru titlu (Revista Presei): underline sau none var thover_link_text_decoration = "underline"; // setare decorare font pentru titlu (Revista Presei) mouse over: underline sau none var tlink_font_weight = "bold"; // setare ingrosare font pentru titlu (Revista Presei): bold sau normal var thover_link_font_weight = "bold"; // setare ingrosare font pentru titlu (Revista Presei) mouse over: bold sau normal var font_family = "Arial"; // setare tipul fontului (titluri articole) var font_size = "11px"; // setare dimensiune font (titluri articole) var link_color = "#000000"; // setare culoarea fontului pentru link (titluri articole) var hover_link_color = "#cc99ff"; // setare culoarea fontului pentru link-uri (titluri articole) var link_text_decoration = "none"; // setare decorare font link (titluri articole): underline sau none var hover_link_text_decoration = "underline"; // setare decorare font link (titluri articole) mouse over: underline sau none var link_font_weight = "none"; // setare ingrosare font link (titluri articole): bold sau normal var hover_link_font_weight = "none"; // setare ingrosare font link mouse over (titluri articole): bold sau normal // nu modificati sub aceasta linie var loc = location.href; document.writeln("<script language=\"JavaScript\" SRC=\"http://www.my-press.com/export/revista_presei.php?partener="+loc+"\"></script\>"); //--> </script> <noscript><a target="_blank" href="http://www.my-press.com/">My-Press.com</a></noscript>'.'>http://www.my-press.com/">My-Press.com</a></noscript>'. '<!-- Continut gratuit oferit de My-Press.com --> <!-- http://content.my-press.com/ --> <script language="JavaScript"> /****************************************** # Autor: Szilard-Erwin Szogyenyi # # Copywright: http://www.my-press.com/ # # Alte contenturi, gasiti la adresa: # # http://content.my-press.com/ # ******************************************* # In schimbul acestui content, va rog # # introduceti un link catre My-Press.com # # # # Multumesc! # ******************************************/ <!-- var homelocation = "bucuresti"; // setare localitatea de baza, alegeti din dreapta: arad, bacau, botosani, braila, brasov, bucuresti, buzau, calarasi, campina, caransebes, ceahlau, cluj-napoca, constanta, craiova, drobeta-turnu severin, focsani, galati, gheorgheni, giurgiu, giurgius, iasi, oradea, petrosani, pitesti, ploiesti, prundu, ramnicu valcea, rosiori de vede, satu mare, sibiu, sighetu marmatiei, slatina, slobozia, sulina, talmaciu, timisoara, tirgoviste, vf. omu var tablewidth = "145"; // setare latime tabel var tablebordrwidth = "1px"; // setare latime bordura var tablebordercolor = "#000000"; // setare culoare bordura var popuptablebordrwidth = "1px"; // setare latime bordura pentru fereastra popup var popuptablebordercolor = "#000000"; // setare culoare bordura pentru fereastra popup var tablebgcolor = "#FFFFFF"; // setare culoarea de fond a tabelului var popupbgcolor = "#FFFFFF"; // setare culoarea de fond pentru fereastra popup var tablebackground = ""; // setare adresa imagine pentru fundal var font_family = "Arial"; // setare tipul fontului var font_size = "11px"; // setare dimensiune font var font_color = "#000000"; // setare culoare font var bold_title = "bold"; // setare ingrosare font var link_font_color = "#000000"; // setare culoarea fontului pentru link-uri var bold_link = ""; // setare ingrosare font pentru link // nu modificati sub aceasta linie var loc = location.href; function CheckCookieMeteo(CookieName){ var lf = "\n"; var CookieString = document.cookie; var CookieSet = CookieString.split (';'); var SetSize = CookieSet.length; var CookiePieces var ReturnValue = ""; var x = 0; for (x = 0; ((x < SetSize) && (ReturnValue == "")); x++) { CookiePieces = CookieSet[x].split ('='); if (CookiePieces[0].substring (0,1) == ' ') { CookiePieces[0] = CookiePieces[0].substring (1, CookiePieces[0].length); } if (CookiePieces[0] == CookieName) { ReturnValue = CookiePieces[1]; } } return ReturnValue; } var localiatea = CheckCookieMeteo('locatia'); if(!localiatea){localiatea = homelocation;} document.writeln("<script language=\"JavaScript\" SRC=\"http://www.my-press.com/export/q_weather.php?partener="+loc+"&localiatea="+localiatea+"\"></script\>"); //--> </script> <noscript><a target="_blank" href="http://www.my-press.com/">My-Press.com</a></noscript>' ); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> Could some one take a look and tell me what's wrong? Thank you so much! Link to comment Share on other sites More sharing options...
kgt Posted December 22, 2005 Share Posted December 22, 2005 On line 143, change var CookieSet = CookieString.split (';'); to var CookieSet = CookieString.split (";"); Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
Guest Posted December 23, 2005 Share Posted December 23, 2005 Thank you. I did that, and now I get another error: Parse error: parse error, unexpected '=', expecting ')' in /home/muccelmi/public_html/muccelmic/includes/boxes_content/information.php on line 149 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.