DarthVader Posted July 10, 2003 Share Posted July 10, 2003 Hi, I couldn't find the answer in previous postings so here goes: how do I remove the category title benetath the category image? I still want it listed in the left hand column just removed from under the image as I have included the name of the category in the image. Also the new products for (month) and what's new on the left hand column - where does oscommerce pick up these settings and how can I remove this whole section. Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2003 Share Posted July 10, 2003 Have you read http://wiki.oscommerce.com/helpHowto yet? Good luck, Matt Link to comment Share on other sites More sharing options...
Chad Posted July 11, 2003 Share Posted July 11, 2003 easy.. just put comment out this part in catalog/includes/classes/boxes/categories.php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_CATEGORIES ); new infoBoxHeading($info_box_contents, true, false); So it should look like this after your done.. /*$info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_CATEGORIES ); new infoBoxHeading($info_box_contents, true, false); */ :) Link to comment Share on other sites More sharing options...
Chad Posted July 11, 2003 Share Posted July 11, 2003 and the new products/what's new boxes can be removed in either catalog/includes/column_left.php or column_right.php depending on where they're located. Just comment out the lines.. // require(DIR_WS_BOXES . 'whats_new.php'); Do the same for any other boxes you want to remove :o Link to comment Share on other sites More sharing options...
DarthVader Posted July 11, 2003 Author Share Posted July 11, 2003 easy.. just put comment out this part in catalog/includes/classes/boxes/categories.php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_CATEGORIES ); new infoBoxHeading($info_box_contents, true, false); So it should look like this after your done.. /*$info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_CATEGORIES ); new infoBoxHeading($info_box_contents, true, false); */ :) Hi Chad, Removing 'what's new' worked but this tip to remove text titles beneath the category images did not. I think I may have confused the point - I want to remove the text underneath the category image say the 'Hardware' image and just leave the image without the text underneath and not the text above the categiry images that says 'Category'. Your help has been much appreciated. Link to comment Share on other sites More sharing options...
Chad Posted July 11, 2003 Share Posted July 11, 2003 comment this line like so.. should work. // new infoBox($info_box_contents); Link to comment Share on other sites More sharing options...
Rumble Posted July 12, 2003 Share Posted July 12, 2003 To remove the category title from below the category image you need to edit the default.php file Back this file up first! Then on or around line 100 find the following line; echo ' <td align="center" class="smallText" style="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"; .... and replace with....... echo ' <td align="center" class="smallText" style="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) . '</a></td>' . "n"; And thats it! I think you have the answer to the other part of your question from the other posts!? Reddy to Rumble Thank you osCommerce and all who Contribute to her! Link to comment Share on other sites More sharing options...
DarthVader Posted July 14, 2003 Author Share Posted July 14, 2003 Fantastic, Rumble! It works perfectly - now then, all I need is to move the welcome message: 'Welcome (Username)! Would you like to log yourself in? Or would you prefer to create an account?' from the default page to this category page. Anyone done this yet? Thanks again. Link to comment Share on other sites More sharing options...
Guest Posted July 14, 2003 Share Posted July 14, 2003 Add a loginbox contribution , go to downloads, then contirbutions on left, then find the login box , I belive it in info boxes, but I might be wrong Link to comment Share on other sites More sharing options...
Rumble Posted July 14, 2003 Share Posted July 14, 2003 Open default.php and around line 314 CUT the following lines out <tr> <td class="main"><?php echo tep_customer_greeting(); ?></td> </tr> Then PASTE the above code AFTER around line 293 and line 74 where you see the following code... <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> Then upload! Back up before you try! Reddy to Rumble Thank you osCommerce and all who Contribute to her! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.