tobz Posted December 9, 2002 Share Posted December 9, 2002 This is a very simple mod to add bullet images to the categories infobox. Hope this is useful: http://www.oscommerce.com/downloads.php/co...ions,782/type,3 Quote tobz osCommerce Links osCommerce Templates osCommerce UK <-- This site is for sale! Link to comment Share on other sites More sharing options...
karcher Posted April 25, 2003 Share Posted April 25, 2003 Hi, thanks for doing the ground work. If you place it slightly lower down and add a 'border="0"' then the bullet will also be clickable. Which I think is more usable. I thought of adding a boolean to switch it on and off in the admin section, mainly just so that I can work out how to that with something simple. INSTRUCTIONS 1. Open catalog/includes/boxes/categories.php 2. Find the lines (around line 29) that read $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new); $categories_string .= '">'; 3. AFTER this line, add the lines below, making the images part of the hyperlink 4. Copy the .gif files to the catalog/images/category_arrows directory and name them as detailed in the code. // BOF: KA Add Bullet Images v1.1 - based on Toby Adams' Add Bullet Images v1.0 Contrib http://www.oscommerce.com/community/contributions,568 // possibly add in a bool to switch on or off and add as standard to ms build if (tep_has_category_subcategories($counter)) { if ( ($id) && (in_array($counter, $id)) ) { // category expanded $categories_string .= '<img src="images/category_arrows/arrow_expanded.gif" align="absmiddle" border="0"> '; } else { // category collapsed $categories_string .= '<img src="images/category_arrows/arrow_collapsed.gif" align="absmiddle" border="0"> '; } } else { // category's children $categories_string .= '<img src="images/category_arrows/arrow_bullet.gif" align="absmiddle" border="0"> '; } // EOF: KA - Add Bullet Images v1.1 Quote K ..................................................................... When the going get's tough, the tough get going. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.