giellacustoms Posted May 26, 2008 Share Posted May 26, 2008 This is the error I get in my admin section Parse error: syntax error, unexpected '<' in /home/giellacu/public_html/store/admin/includes/boxes/customers.php on line 33 According to the coupon contrib. I needed to add this line to the file '<a href="' . tep_href_link(FILENAME_COUPONS) . '" class="menuBoxContentLink">' . BOX_TOOLS_COUPONS . '</a>' . This is what my customer.php file looks like <?php/* $Id: customers.php,v 1.16 2003/07/09 01:18:53 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ ?> <!-- customers //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_CUSTOMERS, 'link' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers')); if ($selected_box == 'customers') { $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a>'); '<a href="' . tep_href_link(FILENAME_COUPONS) . '" class="menuBoxContentLink">' . BOX_TOOLS_COUPONS . '</a>' . } $box = new box; echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- customers_eof //--> Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted May 26, 2008 Share Posted May 26, 2008 Try moving it 3 lines up, after the full stop Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
giellacustoms Posted May 26, 2008 Author Share Posted May 26, 2008 Try moving it 3 lines up, after the full stop ok i went ahead and put my old files back in and i still get the same error????? Link to comment Share on other sites More sharing options...
Guest Posted May 26, 2008 Share Posted May 26, 2008 ok i went ahead and put my old files back in and i still get the same error????? '</a>'); at the end last line of the items in the menu list '</a><br>' . at the end of the previous lines in the menu list Link to comment Share on other sites More sharing options...
giellacustoms Posted May 26, 2008 Author Share Posted May 26, 2008 '</a>');at the end last line of the items in the menu list '</a><br>' . at the end of the previous lines in the menu list so it should have been a </a><br>?? Link to comment Share on other sites More sharing options...
Guest Posted May 26, 2008 Share Posted May 26, 2008 so it should have been a </a><br>?? something like '<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_COUPONS) . '" class="menuBoxContentLink">' . BOX_TOOLS_COUPONS . '</a>'); See what is at the end of both lines. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.