burakbarr Posted March 14, 2008 Posted March 14, 2008 Hi, I've changed some code (i am a newbie) to change some images according to languages.I also did same thing for other images in header.php and it worked great, but new_products.php is giving a parse error. Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/content/d/o/o/doortr/html/includes/modules/new_products.php on line 108 Here is the default code: echo ' <tr><td height="3"></td></tr> <tr> <td><a href='.tep_href_link('index.php','cPath=36').'><img border="0" width="254" height="77" src="images/m09.jpg"></a></td> <td width="1"></td> <td><a href='.tep_href_link('index.php','cPath=43').'><img border="0" width="254" height="77" src="images/m10.jpg"></a></td> </tr> </table> '; ?> <!-- new_products_eof //--> and I changed this code to: echo ' <tr><td height="3"></td></tr> <tr> <td><a href='.tep_href_link('index.php','cPath=36').'><?=tep_image(DIR_WS_LANGUAGES . $language.'/images/m09.jpg','','','','style="margin:0px 0px 0px 0px;"')?></a></td> <td width="1"></td> <td><a href='.tep_href_link('login.php').'><?=tep_image(DIR_WS_LANGUAGES . $language.'/images/m10.jpg','','','','style="margin:0px 0px 0px 0px;"')?></a></td> </tr> </table> '; ?> Please help!
germ Posted March 14, 2008 Posted March 14, 2008 echo ' <tr><td height="3"></td></tr> <tr> <td><a href='.tep_href_link('index.php','cPath=36').'>' . tep_image(DIR_WS_LANGUAGES . $language.'/images/m09.jpg','','','','style="margin:0px 0px 0px 0px;"') . '</a></td> <td width="1"></td> <td><a href='.tep_href_link('login.php').'>' . tep_image(DIR_WS_LANGUAGES . $language.'/images/m10.jpg','','','','style="margin:0px 0px 0px 0px;"') . '</a></td> </tr> </table> '; ?> 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.