caryne444 Posted October 5, 2007 Share Posted October 5, 2007 Hi all, I've created a new box and added one external link outside of osCommerce. It works. Now I added a second link and it doesn't work. Help me find the error...pretty please? ERROR MESSAGE: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/afrikal1/public_html/gaming/includes/boxes/our_albums.php on line 18 CODE <?php /* $Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <!-- my new box //--> <?php $info_box_contents = array(); //$info_box_contents[] = array('text' => BOX_HEADING_OUR_ALBUMS); //new infoBoxHeading($info_box_contents, false, false); // start of code to place link inside category box $info_box_contents[] = array('align' => 'left', 'text' => '<a href="http://www.turnovertrading.com/weddingalbum" target="_blank">Jadrix Wedding Albums</a>' '<a href="http://www.turnovertrading.com/baby" target="_blank">Jadrix Baby Albums</a>'); // end of code to place link inside category box new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> Link to comment Share on other sites More sharing options...
web-project Posted October 5, 2007 Share Posted October 5, 2007 try the following code: <?php /* $Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <!-- my new box //--> <?php $info_box_contents = array(); //$info_box_contents[] = array('text' => BOX_HEADING_OUR_ALBUMS); //new infoBoxHeading($info_box_contents, false, false); // start of code to place link inside category box $info_box_contents[] = array('align' => 'left', 'text' => '<a href="http://www.turnovertrading.com/weddingalbum" target="_blank">Jadrix Wedding Albums</a><br>' . '<a href="http://www.turnovertrading.com/baby" target="_blank">Jadrix Baby Albums</a>'); // end of code to place link inside category box new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you. Link to comment Share on other sites More sharing options...
caryne444 Posted October 6, 2007 Author Share Posted October 6, 2007 Thanks for the reply. Tried your code but still only getting the first link. here's the site at www.turnovertrading.com Any suggestions? Link to comment Share on other sites More sharing options...
caryne444 Posted October 7, 2007 Author Share Posted October 7, 2007 Thanks for the reply. Tried your code but still only getting the first link.here's the site at www.turnovertrading.com Any suggestions? bump Link to comment Share on other sites More sharing options...
web-project Posted October 7, 2007 Share Posted October 7, 2007 see my PM reply on your PM. Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you. Link to comment Share on other sites More sharing options...
ninna Posted January 3, 2008 Share Posted January 3, 2008 see my PM reply on your PM. Thank you for your code Alex. It worked for me, although there is a bit of code missing around line 10 (I lost the site structure before changing the code). I think it should read: <?php /* $Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <!-- my new box //--> <tr> <td> <?php $info_box_contents = array(); //$info_box_contents[] = array('text' => BOX_HEADING_OUR_ALBUMS); //new infoBoxHeading($info_box_contents, false, false); // start of code to place link inside category box $info_box_contents[] = array('align' => 'left', 'text' => '<a href="http://www.turnovertrading.com/weddingalbum" target="_blank">Jadrix Wedding Albums</a><br>' . '<a href="http://www.turnovertrading.com/baby" target="_blank">Jadrix Baby Albums</a>'); // end of code to place link inside category box new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.