chezlouise1980 Posted March 11, 2005 Share Posted March 11, 2005 I posted yesterday about having problems inserting a paypal logo onto my site. Instructions are to copy and paste html code and insert as you would text. Tried this on my home page and got parse error unexpected t string. Replaced it with back up. Tried a suggestion of using php tags to no avail. Placed it outside text_main and it shows up above my header! Can anyone help me? Maybe if i post the index.php file(as i have it on notepad) could someone point me out where i am going wrong? <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', 'This site is currently under development. Products cannot be purchased at this moment.<b> At Gorgeous-Lingerie.Biz</b> we offer a wide variety of products to suit your needs, whether you are after a pair of briefs or an expensive basque set, you can be sure that we will have something to suit your tastes. <br><br>Please feel free to browse our catalogue and if you are looking for something we do not appear to have, then please do not hesitate to e-mail us and we will see if we can find that product.<BR><BR>We only deliver to the U.K. at the moment, however we hope to deliver internationally in the near future. <!-- PayPal Logo --><table border="0" cellpadding="10" cellspacing="0" align="center"><tr><td align="center"></td></tr> <tr><td align="center"><a href="java script:window.open('https://www.paypal.com/uk/cgi-bin/webscr? cmd=xpt/popup/OLCWhatIsPayPal','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no', width='400', height='350');"><img src="https://www.paypal.com/en_GB/i/bnr/horizontal_solution_PP.gif" border="0" alt="Solution Graphics"></a></td></tr></table><!-- PayPal Logo --> '); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); define('TEXT_SHIPPING_NOTICE', '<strong>Please note that the Shirley of Hollywood Range takes 3 weeks to deliver whereas the rest of the products are 2-5 days</strong>'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', ucwords(strtolower($categories['categories_name']))); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'Welcome to Gorgeous-Lingerie.Biz'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', ucwords(strtolower($categories['categories_name']))); } ?> Thanks for any help in advance Cheryl Link to comment Share on other sites More sharing options...
OceanRanch Posted March 11, 2005 Share Posted March 11, 2005 The TEXT_MAIN define has unescaped ' within the href/javascript line. The text is pretty complex so be careful when editting. Notepad is not a really great editor as well. HTH Tom Link to comment Share on other sites More sharing options...
chezlouise1980 Posted March 11, 2005 Author Share Posted March 11, 2005 The TEXT_MAIN define has unescaped ' within the href/javascript line. The text is pretty complex so be careful when editting. Notepad is not a really great editor as well. HTH Tom <{POST_SNAPBACK}> Can't for the life of me find the unescaped ' Must be getting too late now! Cheryl Link to comment Share on other sites More sharing options...
OceanRanch Posted March 11, 2005 Share Posted March 11, 2005 href="java script:window.open('https://www.paypal.com/uk/cgi-bin/webscr? cmd=xpt/popup/OLCWhatIsPayPal','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no', width='400', height='350');"><img All the 's should be \' Tom Link to comment Share on other sites More sharing options...
RikR Posted March 11, 2005 Share Posted March 11, 2005 Look at my store: http://twowayradiodirectory.com/catalog/ I got my PayPal logo there by pasting it in the languages/english.php file. In osC, because it is PHP editing is often not done in the file you might think it should be done in. Rik Rasmussen Link to comment Share on other sites More sharing options...
OceanRanch Posted March 11, 2005 Share Posted March 11, 2005 Probably alot cleaner as well. Thanks Rik Tom Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.