Guest Posted March 8, 2003 Share Posted March 8, 2003 Iwas playing around and following the guide on how to remove the languages and currencies boxes from column_right.php THis is what I removed .. if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); Now when I load my page I get... Parse error: parse error in /home/httpd/vhosts/jab-tech.com/httpdocs/includes/column_right.php on line 6 Anyway this is part of column_right.php I believe the first line here has the error ?? require(DIR_WS_BOXES . 'shopping_cart.php'); if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php'); if (isset($HTTP_GET_VARS['products_id'])) { if (tep_session_is_registered('customer_id')) { $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . $customer_id . "' and global_product_notifications = '1'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { include(DIR_WS_BOXES . 'best_sellers.php'); What did I do wrong ?? Link to comment Share on other sites More sharing options...
Guest Posted March 8, 2003 Share Posted March 8, 2003 Which boxes did you want to remove? Send me your original code (using the code tags) and i'll show you how to remove them. Criag Link to comment Share on other sites More sharing options...
toolcrazy Posted March 8, 2003 Share Posted March 8, 2003 if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { require(DIR_WS_BOXES . 'information.php'); //include(DIR_WS_BOXES . 'languages.php'); //include(DIR_WS_BOXES . 'currencies.php'); } Just copy this you will get the results you want. // is the comments tags for one line only, so I did it on two lines. Looks like the error is from not leaving a required { or } (curly brackets). If you have an opening { you must have a closing } especialy for a if statement. Steve ------------------------- Link to comment Share on other sites More sharing options...
toolcrazy Posted March 8, 2003 Share Posted March 8, 2003 Note: My code is from a loaded version of OSC, your might differ some. But the results are the same. You may not have the: require(DIR_WS_BOXES . 'information.php'); Also, it is allways a good idea to put all code in a BBCode box. If you don't sometimes it messes with the forum code. Steve ------------------------- Link to comment Share on other sites More sharing options...
Guest Posted March 9, 2003 Share Posted March 9, 2003 THANKS GOT IT Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.