Guest Posted March 9, 2004 Share Posted March 9, 2004 (edited) I've searched the forums for hours and cannot find a fix to my problem. I installed the contribution Main Categories. However, I am unable to line up the images with the links. Which you can view here, My Webpage. This is a live store. Any ideas on how to line them up. Do I need to remove the subcategory call as I don't have any sub categories, if so how do I do that. Also is it possible to add a background image or color to just the categories box and how would you do that? Thanks in advance for your help Edited March 9, 2004 by vizibrite Quote Link to comment Share on other sites More sharing options...
gbarreto Posted March 10, 2004 Share Posted March 10, 2004 try the following... find this text on main_categories.php: $info_box_contents[$row][$col] = array('align' => 'left', 'params' => 'class="smallText" width="33%" valign="top"', 'text' => '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '</a><big> <a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '"><b>' . $categories['categories_name'] . '</b></a></big><br>' . $text_subcategories ); $col ++; and add a <br> tage before the <big> tag. This will add a carriage return to the line and will show the category name on the bottom of the category piture. The code will look like this. $info_box_contents[$row][$col] = array('align' => 'left', 'params' => 'class="smallText" width="33%" valign="top"', 'text' => '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '</a><br><big> <a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '"><b>' . $categories['categories_name'] . '</b></a></big><br>' . $text_subcategories ); $col ++; Hope this helps ;) Quote Link to comment Share on other sites More sharing options...
Guest Posted March 10, 2004 Share Posted March 10, 2004 Thank you soooo much :D. Worked perfect! Quote Link to comment Share on other sites More sharing options...
Guest Posted March 26, 2004 Share Posted March 26, 2004 Hi Gustavo! Your Main Categories Mod is great!!! Listen?.I have the enable/disable categories mod installed. http://www.oscommerce.com/community/contributions,326 The mod will disable / enable categories in the default left categories menu?.but not the Main Categories mod. Can you help? Let me know if you need a file, etc. Also...can you make it so the subcategories will use a "..." when it goes so many categories or characters...so that "all" of the subcategories aren't listed? The box can get pretty big...and if the customer wants to go that deep...they can use the menu. I know it sounds redundant to have both...but I was trying to achieve a "portal" look. See what I mean: http://www.shopabundle.com Thanks! Rick???... Quote Link to comment Share on other sites More sharing options...
jugarte Posted June 23, 2004 Share Posted June 23, 2004 Hello Gustavo, first of all sorry about my english, I haven?t practice it for a while... I installed your mod Main Categories V 1.0c and it works great, but I need to show the amount of products in each category, just as the original Categories Box... I hope you can help me. Thank You, Juan Ugarte Quote Truth? You can?t handle the truth!! 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.
Note: Your post will require moderator approval before it will be visible.