Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How would I remove the What's New Box from some pages?


inalilbubble

Recommended Posts

Before the include login box code, add this code

if (basename($PHP_SELF) != FILENAME_LOGIN)

To the same for the other box but change the name.

 

Jack

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Before the include login box code, add this code
if (basename($PHP_SELF) != FILENAME_LOGIN)

To the same for the other box but change the name.

 

Jack

 

Hi Jack,

 

Thanks for the response.

 

This will remove the "whats new" box from the login.php page & the contact.php page, correct? Would I do this edit on login.php & contact.php? A little confused. Thanks again.

Link to comment
Share on other sites

No, that only removes it from the login page. The code should be

if (basename($PHP_SELF) != FILENAME_LOGIN && basename($PHP_SELF) != FILENAME_CONTACT_US)

and it goes in the includes/column_left.php (or right) file right before the line for the box you want to control.

 

Jack

Support Links:

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

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...