Results 1 to 4 of 4

Incorporating column left and right together.

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 ...

      
  1. #1
    New Member
    Join Date
    Feb 2004
    Posts
    5
    Rep Power
    0


    Default Incorporating column left and right together.

    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.

  2. #2
    Member
    Join Date
    Jan 2004
    Location
    Netherlands
    Posts
    71
    Rep Power
    0


    Default

    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');
    ?>
    There are at least two closing "}" missing

    the way you wrote the code, it is very difficult to see this

    hth,
    paul

  3. #3
    New Member
    Join Date
    Feb 2004
    Posts
    5
    Rep Power
    0


    Default

    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. #4
    Active Member
    Join Date
    May 2004
    Location
    worcester ma
    Posts
    162
    Rep Power
    0


    Default

    Cant you simply move the includes out of the leftcolumn.php file and add it to the rightcolumn.php file.?

Similar Threads

  1. Move Left Column Down
    By torweb in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 05-01-2006, 04:15 PM
  2. How To: have different right and left column widths
    By Kristine in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 08-03-2005, 10:53 PM
  3. Left column to large
    By gamefreak7 in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 07-27-2005, 10:47 AM
  4. Move all in rh column to left and remove RH column
    By jloyzaga in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 03-24-2004, 04:24 PM
  5. left column unstable
    By JohnW in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 11-27-2002, 07:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •