This is a discussion on Incorporating column left and right together. within the osCMax v1.7 General Mods Discussion forums, part of the osCMax v1.7 Forums category; I have very little experience with PHP, but I'm game for a laugh.. What I have been trying to do ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I have very little experience with PHP, but I'm game for a laugh.. What I have been trying to do is to incorporate some of the items in the column_left file so that they appear in the column_right box. The site I am designing started out as just a basic html/css site with a bit of javascript. Now it needs to show 200+ products and decided the most efficient way to do this was to use dynamic data. What I havw done so far is modify the main_page template to show my clients logo and all the css to match the site look. I have tried to copy and paste the relevant pieces of code from one box into the other, however though I try to follow the syntax diligently I keep getting a parse error in the right box I have setup. Could it be that there is some other file that interferes with what I am doing? I realise I should debug "my" code but I have tried, and basically I haven't a clue. Please help, this is getting urgent. Parse error: parse error in /homepages/38/d91389000/htdocs/catalog/includes/column_right.php on line 24 and this is the relevant code <?php require(DIR_WS_BOXES . 'shopping_cart.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 = '" . (int)$customer_id . "' and global_product_notifications = '1'"); $check = tep_db_fetch_array($check_query); if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } require(DIR_WS_BOXES . 'whats_new.php'); require(DIR_WS_BOXES . 'search.php'); require(DIR_WS_BOXES . 'information.php'); require(DIR_WS_BOXES . 'whats_new.php'); require(DIR_WS_BOXES . 'search.php'); require(DIR_WS_BOXES . 'information.php'); ?> Line 24 is the closing tag!! I reckon the error must be earlier. |
| Sponsored Links | ||
| ||
| |
|
#2
| |||
| |||
| trying to find the error i added some indents or tabs (or wahtever the correct English name is) Code: <?php
require(DIR_WS_BOXES . 'shopping_cart.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 = '" . (int)$customer_id . "' and global_product_notifications = '1'");
$check = tep_db_fetch_array($check_query);
if ((USE_CACHE == 'true') && empty($SID))
{
echo tep_cache_categories_box();
}
else
{
include(DIR_WS_BOXES . 'categories.php');
}
require(DIR_WS_BOXES . 'whats_new.php');
require(DIR_WS_BOXES . 'search.php');
require(DIR_WS_BOXES . 'information.php');
require(DIR_WS_BOXES . 'whats_new.php');
require(DIR_WS_BOXES . 'search.php');
require(DIR_WS_BOXES . 'information.php');
?>
the way you wrote the code, it is very difficult to see this hth, paul |
|
#3
| |||
| |||
| Right, I will examine this again, and actually write the code not copy and paste. I had the same problem with my CSS for a while, I kept forgetting the ; veel danke tot straaks (sorry my dutch is 20 years out of use.) |
|
#4
| |||
| |||
| Cant you simply move the includes out of the leftcolumn.php file and add it to the rightcolumn.php file.? |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Move Left Column Down | torweb | osCMax v2 Customization/Mods | 1 | 05-01-2006 03:15 PM |
| How To: have different right and left column widths | Kristine | osCMax v1.7 Discussion | 1 | 08-03-2005 09:53 PM |
| Left column to large | gamefreak7 | osCMax v2 Features Discussion | 1 | 07-27-2005 09:47 AM |
| Move all in rh column to left and remove RH column | jloyzaga | osCMax v1.7 Discussion | 0 | 03-24-2004 03:24 PM |
| left column unstable | JohnW | osCommerce 2.2 Modification Help | 3 | 11-27-2002 06:52 PM |