Guest Posted December 17, 2009 Share Posted December 17, 2009 Hi everyone, I have been playing with the left_column.php trying to get it so 2 boxes are only visible when signed in. I would like the information box visible all the time, but the search and categories box only to appear once signed in. Anyone know how to do this ?? Here is my column_left.php <?php /* $Id: column_left.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { require(DIR_WS_BOXES . 'search.php'); include(DIR_WS_BOXES . 'categories.php'); } if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { // include(DIR_WS_BOXES . 'manufacturers.php'); } // require(DIR_WS_BOXES . 'whats_new.php'); require(DIR_WS_BOXES . 'information.php'); ?> Thanks for any help you can give. Chris Link to comment Share on other sites More sharing options...
♥mdtaylorlrim Posted December 17, 2009 Share Posted December 17, 2009 Try this... <?php /* $Id: column_left.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { if (tep_session_is_registered('customer_id')) require(DIR_WS_BOXES . 'search.php'); if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'categories.php'); } if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { // include(DIR_WS_BOXES . 'manufacturers.php'); } // require(DIR_WS_BOXES . 'whats_new.php'); require(DIR_WS_BOXES . 'information.php'); ?> Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...? Link to comment Share on other sites More sharing options...
Guest Posted December 17, 2009 Share Posted December 17, 2009 Thank you Mark, I don't know why I didn't think of that. I was way off track !!! Chris Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.