yusuf84 Posted March 6, 2007 Posted March 6, 2007 i want categories with <ul> tag . I made the changes for separate boxes for each top category. But i couldnt find the code which produces table, tr,td tags because i want to change them for ul listing. I have no clue where i will start. <ul> <h3>categories1</h3> <li>sub cat.</li> <li>sub cat.</li> ... <ul/> <ul> <h3>categories2</h3> <li>sub cat.</li> <li>sub cat.</li> ... </ul> . . .
ErollorD Posted March 6, 2007 Posted March 6, 2007 you edit categories.php.. if I'll have time I'll post some instructions otherwise search contribution section for menus..
yusuf84 Posted March 6, 2007 Author Posted March 6, 2007 you edit categories.php.. if I'll have time I'll post some instructions otherwise search contribution section for menus.. I'll be waiting your instructions...
ErollorD Posted March 6, 2007 Posted March 6, 2007 here we go, open categories.php in includes/boxes and do next: 1. find global $tree, $categories_string, $cPath_array; and add $categories_string .= '<li>'; under it. Remove or comment out for ($i=0; $i<$tree[$counter]['level']; $i++) { $categories_string .= " "; } 2. find $categories_string .= '<br>'; and replace with $categories_string .= '</li>'; 3. find new infoBoxHeading($info_box_contents, true, false); and under this you should see $categories_string = '';, replace $categories_string = ''; with $categories_string .= '<ul>'; 4. find tep_show_category($first_element); and under this add $categories_string .= '</ul>'; and you should have nice listing. now google it for more help with optimization...
yusuf84 Posted March 6, 2007 Author Posted March 6, 2007 thank you for your reply :) i am working on it just now...
Guest Posted March 6, 2007 Posted March 6, 2007 why not checking the contributions. It's been done few times http://www.oscommerce.com/community/contributions,4201
Recommended Posts
Archived
This topic is now archived and is closed to further replies.