Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Display an infobox in right colum on first page only???


brandoneilers

Recommended Posts

Posted

I want to create a new infobox for the right column, but I only want it to display on the first page (index). How would I do this???

Posted
I want to create a new infobox for the right column, but I only want it to display on the first page (index). How would I do this???

 

enter the following code into catalog/includes/colum_right.php where you want the box to appear.

change forum.php to the name of your infobox. Make sure the infobox is in the catalog/includes/boxes directory!!

 

  if (isset($HTTP_GET_VARS['products_id'])) {
  } else {
 if (isset($cPath) && tep_not_null($cPath)) {
  } else {
	include(DIR_WS_BOXES . 'forum.php');
  }
  }

 

Basically this code says

 

  if (page is viewing a product) {
  (do nothing)} else {
 if (page is viewing a category) {
  (do nothing)}  else {
 (display index box)} 
  }
  }

I thought this stuff was gonna be easy!!

BACK IT UP BEFORE YOU JACK IT UP!!!!

Posted
will the contrib allow you to add info boxes to the index only?

 

 

yes but read what he said in his/or her post "needs to create an infobox in the right colum"

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Posted
yes but read what he said in his/or her post "needs to create an infobox in the right colum"

 

I did read it

 

I want to create a new infobox for the right column, but I only want it to display on the first page (index). How would I do this???

I thought this stuff was gonna be easy!!

BACK IT UP BEFORE YOU JACK IT UP!!!!

Posted

The code Matthew posted is what you are looking for. Just add it to the column_right.php file and you should be good to go.

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Posted
The code Matthew posted is what you are looking for. Just add it to the column_right.php file and you should be good to go.

 

Thanks Matt. That is exactly what I was looking for. Just a simple box being displayed on index page is all I needed.

 

Thanks again....

Posted
Thanks Matt. That is exactly what I was looking for. Just a simple box being displayed on index page is all I needed.

 

Thanks again....

 

no problem. I am glad I could help.

I thought this stuff was gonna be easy!!

BACK IT UP BEFORE YOU JACK IT UP!!!!

Archived

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

×
×
  • Create New...