Need a little PHP help

Discussion in 'PHP' started by SKULL, Jan 5, 2007.

  1. #1
    I have a site and wont to add a new box for links here is the code of the left side block where the catogorys are i would like to add a links block under it here is the code of teh catogory box and the site www.gow-solutions.net

    <?php  
    
      if ((USE_CACHE == 'true') && empty($SID)) {
        echo tep_cache_categories_box();
      } else {
        include(DIR_WS_BOXES . 'categories.php');
      }
    
    
    ?>
    
    Code (markup):
    Thanks
     
    SKULL, Jan 5, 2007 IP
  2. solidphp

    solidphp Peon

    Messages:
    46
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Does this help?

    <?php  
    
      if ((USE_CACHE == 'true') && empty($SID)) {
        echo tep_cache_categories_box();
    
    	// This appears to be a point in the code to show
    	// boxes for users that are not logged in yet.
    	// You can add the new box below if you want it to 
    	// only show to users who are not logged in.
    
    
      } else {
        include(DIR_WS_BOXES . 'categories.php');
    
    	// This point in the code shows categories when
    	// users are logged in. If you want your new box
    	// to show only to logged users, add it below.
    
    
      }
    
    	// if you want your new box to show all the time, add it below
    
    ?>
    PHP:
     
    solidphp, Jan 5, 2007 IP
  3. SKULL

    SKULL Prominent Member

    Messages:
    5,301
    Likes Received:
    303
    Best Answers:
    0
    Trophy Points:
    350
    Digital Goods:
    1
    #3
    No thats not working.
     
    SKULL, Jan 6, 2007 IP