milauskas Posted June 22, 2006 Share Posted June 22, 2006 I want to comment out the subcategory images and links that appear at the top of the page. Where are these located and how can I remove them? Is there a way to do this in Admin or should I just comment them out? Thanks. Link to comment Share on other sites More sharing options...
cballin Posted June 24, 2006 Share Posted June 24, 2006 I want to comment out the subcategory images and links that appear at the top of the page. Where are these located and how can I remove them? Is there a way to do this in Admin or should I just comment them out? Thanks. I am also interested in this subject but I see no one replied. If some one can assist us it will be greatly appreciated. Thanks Link to comment Share on other sites More sharing options...
♥14steve14 Posted June 24, 2006 Share Posted June 24, 2006 I expect the reason you do not have a reply is because like me no one knows just what images you wish to delete. The easiest way to find an image is to open your page in a web browser, and right click the image. You will see where the image comes from. All you have to do is to search for that image in the particular page you wish to remove it from. REMEMBER BACKUP, BACKUP AND BACKUP Link to comment Share on other sites More sharing options...
milauskas Posted June 24, 2006 Author Share Posted June 24, 2006 I don't think that's true. THe images I'm talking about are those associated with subcategories. They appear at the top of the page when you click on of the category links in the Categories, box. I don't know if these are contained in index.php or not. Just looking over the page code I can't locate them. That's why I'm asking. Link to comment Share on other sites More sharing options...
Guest Posted June 24, 2006 Share Posted June 24, 2006 I don't think that's true. THe images I'm talking about are those associated with subcategories. They appear at the top of the page when you click on of the category links in the Categories, box. I don't know if these are contained in index.php or not. Just looking over the page code I can't locate them. That's why I'm asking. Looks like it's true here: http://demo.oscommerce.com/index.php?cPath=1 Right click on the categories image->Properties and http://demo.oscommerce.com/images/category_hardware.gif so you know the path Link to comment Share on other sites More sharing options...
dj07 Posted June 25, 2006 Share Posted June 25, 2006 \catalog\images Link to comment Share on other sites More sharing options...
cballin Posted June 25, 2006 Share Posted June 25, 2006 Well Here is what I meant by taking out subcatagory pictures. http://2ndplaydvds.com/index.php?cPath=3&a...f4ba25767887758 I don't want a subcatagory image to display at all. Just the words action & adventure, horror, drama, etc,. As you can see I did not add an image to the subcatagory but the brackets(??? if thats what they are called) for the images, appear where the images were supposed to be displayed anyway. Thats what I meant by deleting images. Sorry for not explaining more. Would greatly appreciate the help. Link to comment Share on other sites More sharing options...
dj07 Posted June 30, 2006 Share Posted June 30, 2006 I`ll show how i did it but note that i`m not a coder and kinda new to php but i managed to get it working. Just before you do any editing BACKUP your index php as is the one you`ll be modifing. in the index.php find around line 104 find : <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n"; if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) { echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; } } // needed for the new products module shown below And delete this : <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td> That will get rid of the images and the links .Now if you just wanna get rid of the images just erase this: tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . if you your links are too close each other just erase this : tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . Even tho i solved it this way it does not means that is the right way to do it ,I just didn`t find any other solution and hope this is the right way. Good Luck Link to comment Share on other sites More sharing options...
GavinST Posted May 25, 2007 Share Posted May 25, 2007 Much easyer way, just go to images in admin under config, in there you will have subcatagory image size, just set both vertical and horiz to 0 and your images will no longer display. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.