brandoneilers Posted July 2, 2006 Posted July 2, 2006 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???
mwstinson Posted July 3, 2006 Posted July 3, 2006 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!!!!
mtechama Posted July 3, 2006 Posted July 3, 2006 Well actually this is what you are looking for http://www.oscommerce.info/kb/osCommerce/C...g_Area/Boxes/49 Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP!
mwstinson Posted July 3, 2006 Posted July 3, 2006 Well actually this is what you are looking for http://www.oscommerce.info/kb/osCommerce/C...g_Area/Boxes/49 will the contrib allow you to add info boxes to the index only? I thought this stuff was gonna be easy!! BACK IT UP BEFORE YOU JACK IT UP!!!!
mtechama Posted July 3, 2006 Posted July 3, 2006 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!
mwstinson Posted July 3, 2006 Posted July 3, 2006 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!!!!
Guest Posted July 3, 2006 Posted July 3, 2006 Hi. I had the same sort of query recently, and cudd1es was good enough to sort it out for me. To get a full gist of the fix, have a look at the thread at http://www.oscommerce.com/forums/index.php?act...=1&t=206096 Hope this helps.
Silverado05 Posted July 3, 2006 Posted July 3, 2006 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.
brandoneilers Posted July 3, 2006 Author Posted July 3, 2006 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....
mwstinson Posted July 4, 2006 Posted July 4, 2006 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!!!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.