Maccapolo Posted November 5, 2007 Posted November 5, 2007 Hey guys, I am receiving the message about secure and non secure items being displayed because my page is wrong. Inside the table I had... <img src="http://www.amphibianking.ie/images/pic1.jpg" alt="Picture of large group of runners in road race" width="273" height="530"> I tried to replace it with... <?php echo tep_image(DIR_WS_IMAGES . 'pic1.jpg', 'Picture of large group of runners in road race', '273px', '530px'); ?> (Also copied the images to the catalog/images folder) Now I am getting the message... Parse error: parse error, unexpected T_STRING in .....................\includes\languages\english\index.php on line 24 WHAT AM I DOING WRONG PLEASE? ________________________________________________________________________________ _____________________HERE IS THE FULL CODE ________________________________________________________________________________ _____________________ <?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', '<html><body><table border="0" class="addtable" cellpadding="0" cellspacing"0"><tr> <td colspan="2" height="30" valign="middle" bgcolor="#FFDE00" class="addtdhdr"><strong>Life\'s too short to be running in the wrong shoes!</strong></td> </tr> <tr> <td height="200" valign="top"> <p align="center"><!--<font color="#FF0000"><marquee><H2>SHOP CLOSED FOR ONE DAY SAT 1st SEPTEMBER</H2></marquee><br> Amphibian King will be closed for one day on Saturday 1st September 2007 sorry for any inconvience caused but staff memeber\'s are competing in the world Triathlon championship in Hamburg.</font>--></P> <p>Results for King Of Greystones 2007 click <a href="http://www.amphibianking.ie/kog.xls">Here</a><br></p> <p>At Amphibian King we promise to put you in the perfect shoes not the most expensive shoe.</p> <p>We remove all the risk when buying sports shoes. It is a scientific fact that sports shoes play a significant role in leg and foot biomechanical function. Shoes have become so technical that different shoes are made for different foot types and activities. Wearing the wrong shoe on your feet may cause injury and may be a waste of money, but wearing the perfect shoes will be comfortable, help keep you injury free and be of great value.</p> </td> <td rowspan="4" valign="top" align="right"><div align="right"><?php echo tep_image(DIR_WS_IMAGES . 'pic1.jpg', 'Picture of large group of runners in road race', '273px', '530px'); ?></div></td> </tr> <tr> <td height="30" valign="middle" bgcolor="#FFDE00" class="addtdhdr"><strong>Explanation of foot types.</strong></td> </tr> <tr> <td height="270" valign="top"> <br> <p>Click on images below to view mpg of foot conditions.</p> <p align="left"></p> </td> </tr> </table> </body> </html> '); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Amphibian King'); 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', 'Please Choose a Sub-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', 'Amphibian King'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?>
germ Posted November 5, 2007 Posted November 5, 2007 This part: <td rowspan="4" valign="top" align="right"><div align="right"><?php echo tep_image(DIR_WS_IMAGES . 'pic1.jpg', 'Picture of large group of runners in road race', '273px', '530px'); ?></div></td> Change to: <td rowspan="4" valign="top" align="right"><div align="right">' . eval("echo tep_image(DIR_WS_IMAGES . 'pic1.jpg', 'Picture of large group of runners in road race', '273px', '530px');" ) . '</div></td> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.