Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help with hiding an infobox on index.php


Guest

Recommended Posts

Posted

Hi, I'm looking to have a few of the infoboxes in includes/column_left.php and includes/column_right.php hidden when on the homepage (index.php).

 

Can anyone guide me as to how this can be done? I'm not a php programmer, but I can follow directions.

 

Thanks.

Posted

Hi there,

 

If you open up the column_right and column_left files all you need to do is # out the boxes you dont want to be displayed, eg. to hide currencies and languages in column_right edit the file and add the #

 

   # include(DIR_WS_BOXES . 'languages.php');

# include(DIR_WS_BOXES . 'currencies.php');[code]

Posted
Hi, I'm looking to have a few of the infoboxes in includes/column_left.php and includes/column_right.php hidden when on the homepage (index.php).

 

Can anyone guide me as to how this can be done?  I'm not a php programmer, but I can follow directions.

 

Thanks.

You need to add the following code before the box you want to hide:
if (basename($PHP_SELF) != FILENAME_DEFAULT)

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Thanks jack, that's exactly what i was looking for. i thought i made myself clear that i only wanted it hidden on a certain page, so thanks for understanding. Let's see if that works.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...