daveritchie Posted May 3, 2007 Share Posted May 3, 2007 i get this error on this page Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING line 24 <?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 */ ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array() '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</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>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> Link to comment Share on other sites More sharing options...
spax Posted May 3, 2007 Share Posted May 3, 2007 You've deleted a couple of things. Use this instead: <?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 (c) 2003 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); $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</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>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> Link to comment Share on other sites More sharing options...
daveritchie Posted May 3, 2007 Author Share Posted May 3, 2007 spot on,,,,,thanx Link to comment Share on other sites More sharing options...
daveritchie Posted May 3, 2007 Author Share Posted May 3, 2007 hey how can i add this seal IN the bottom of the info box.... <!-- © 2006. Authorize.Net is a registered trademark of Lightbridge, Inc. --> <div class="AuthorizeNetSeal"> <script type="text/javascript" language="javascript">var ANS_customer_id="4bd2dc1a-019e-4c67-af5c-e965d2b759b6";</script> <script type="text/javascript" language="javascript" src="//VERIFY.AUTHORIZE.NET/anetseal/seal.js" ></script> <a href="http://www.authorize.net/" id="AuthorizeNetText" target="_blank">Online Payment Service</a> </div> Link to comment Share on other sites More sharing options...
spax Posted May 3, 2007 Share Posted May 3, 2007 Try this but test it out: <?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 (c) 2003 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); $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</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>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br><br>' . '<!-- © 2006. Authorize.Net is a registered trademark of Lightbridge, Inc. --> <div class="AuthorizeNetSeal"> <script type="text/javascript" language="javascript">var ANS_customer_id="4bd2dc1a-019e-4c67-af5c-e965d2b759b6";</script> <script type="text/javascript" language="javascript" src="//VERIFY.AUTHORIZE.NET/anetseal/seal.js" ></script> <a href="http://www.authorize.net/" id="AuthorizeNetText" target="_blank">Online Payment Service</a> </div>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> Link to comment Share on other sites More sharing options...
daveritchie Posted May 3, 2007 Author Share Posted May 3, 2007 nope something is off.... Link to comment Share on other sites More sharing options...
spax Posted May 3, 2007 Share Posted May 3, 2007 Just looking at that code, notice it has <script instead of the less than character <script In a couple of places Link to comment Share on other sites More sharing options...
daveritchie Posted May 4, 2007 Author Share Posted May 4, 2007 yep that worked....hey spax you know how to insert "the latest news " box..... example http://www.thepricksupply.com Link to comment Share on other sites More sharing options...
spax Posted May 4, 2007 Share Posted May 4, 2007 Use this: http://www.oscommerce.com/community/contributions,1451 It's an easy enough install, though you will need to play with the CSS to get it to display as the example you linked to. Link to comment Share on other sites More sharing options...
daveritchie Posted May 7, 2007 Author Share Posted May 7, 2007 thats more of a side box type,,,,,doesnt show the full post ,, i need it more like this "the latest news " box..... example http://www.thepricksupply.com it shows the full post and is edited by the admin in the site Link to comment Share on other sites More sharing options...
spax Posted May 7, 2007 Share Posted May 7, 2007 thats more of a side box type,,,,,doesnt show the full post Yes it does, you need to play with it a bit more. There are two views and two types of boxes. You can have a box in the column or you can have a box in the middle of the page - like the New Products box. Then you can decide whether to have a one line News Heading type of thing, that links to the News page for the full story or you can have the full story in the box - like on the tatoo site. If you want it to display in big bold text like that, you'll need to play with the CSS - like I said. The news articles are controlled from admin and you can use HTML. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.