proton318 Posted July 16, 2003 Share Posted July 16, 2003 Good day all, I just installed this contribution: http://www.oscommerce.com/community/contributions,1238 I have two minor issues that I need some assistance on please. Issue 1) I'd like to remove the HOME and SITE MAP buttons from appearing by default, and 2) for some reason there are empty buttons between my parent categories that create a lot of negative space. This is a link to my site so you can see what I mean www.kitkatmoore.com. How can I get these to collapse and/or disappear? I believe that the answer to both these questions are in the code included below, but I could be wrong. That is why I included the contribution's link above (in case you need to see all the files). <?php error_reporting (E_NONE); include('includes/application_top.php'); function menu_build($parent_id) { $categories_query = tep_db_query("select cat.categories_id, categories_name from categories cat left join categories_description cat_desc ON cat_desc.categories_id = cat.categories_id where parent_id = '$parent_id' order by sort_order, categories_name"); $rows_count = tep_db_num_rows($categories_query); $i = 0; if ($rows_count > 0) { $delimeter = true; $first = true; while ($categories = tep_db_fetch_array($categories_query)) { if ($first) { if ($parent_id != 0) { print ",nt"; } $first = false; } print "t["" . $categories['categories_name'] . "", "default.php?cPath=" . $categories['categories_id'] . "&name=" .urlencode($categories['categories_name']) ."""; $i++; if (menu_build($categories['categories_id'])) { if ($i != $rows_count) { print "],n"; } else { print "]"; } } else { if ($i != $rows_count) { print "],nt"; } else { print "]nt"; } } } } else { $delimeter = false; } return $delimeter; } function menu_build_all() { print "var MENU_ITEMS =[n"; print " ["Home", "default.php"],n"; menu_build(0); print ",nt["Site Map", "allprods.php"]n"; print "];n"; } ?> <?php menu_build_all(); ?> Thanks in advance for the assistance! Quote Every passing minute is another chance to turn it all around. Delegated to web lackey - again. Link to comment Share on other sites More sharing options...
proton318 Posted July 16, 2003 Author Share Posted July 16, 2003 Okay everyone, I've found myself a partial fix. I was able to remove the HOME and SITE MAP buttons ... however, I have so far been unale to determine why it is adding two blank menu buttons before the real buttons. If you run your mouse over my "For Guys" button, you will see that a drop down list appears, but it also has two blank buttons above the category names. I'm vexed! Can anyone help shed some light on this? Again, here is a link to the site: www.kitkatmoore.com. Thanks again! :D Quote Every passing minute is another chance to turn it all around. Delegated to web lackey - again. Link to comment Share on other sites More sharing options...
Guest Posted July 17, 2003 Share Posted July 17, 2003 try removing the extra 2 languages that come preinstalled in the site. In Admin you can remove the languages. This should fix the problem. Quote Link to comment Share on other sites More sharing options...
proton318 Posted July 17, 2003 Author Share Posted July 17, 2003 Worked like a charm. Thanks for the help! Quote Every passing minute is another chance to turn it all around. Delegated to web lackey - again. 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.