mazoo Posted February 13, 2007 Share Posted February 13, 2007 Hi, My next problem and hopefully my last is my catagory links dont do what they should do, if you look and my new site design http://www.mazoo.co.uk/art2/ the main catagories dont link to where they should but the sub catagories are fine. can anyone suggest a fix for this, my options are to remove hyperlinks from the main catagories leaving the sub catagories intact and thus fixing the catagories box or somehow installing the original oscommerce files over the modified ones, but which files are used for the catagory box?? I appreciate any help. Kathryn. Link to comment Share on other sites More sharing options...
Jack_mcs Posted February 13, 2007 Share Posted February 13, 2007 They seem to be linking fine to me. Where do you think they should link to? The categories listing uses the includes/boxes/categories.php file. Although your template may have altered that. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
mazoo Posted February 13, 2007 Author Share Posted February 13, 2007 They seem to be linking fine to me. Where do you think they should link to? The categories listing uses the includes/boxes/categories.php file. Although your template may have altered that. Jack Hi I tried uploading a stock includes/boxes/categories.php file. and it made no difference, compare http://www.mazoo.co.uk/art/ to http://www.mazoo.co.uk/art2/ and you will See the difference, the first site is my current site and the second is the new themed design. Any other ideas? Kathryn. Link to comment Share on other sites More sharing options...
davidinottawa Posted February 13, 2007 Share Posted February 13, 2007 Hi I tried uploading a stock includes/boxes/categories.php file. and it made no difference, compare http://www.mazoo.co.uk/art/ to http://www.mazoo.co.uk/art2/ and you will See the difference, the first site is my current site and the second is the new themed design. Hi Kathryn - I don't get it. I agree with Jack - they seem to linking to the correct pages. can you be more specific in your query ? Which word from the left hand nav on the new site is not linking where it is supposed to be ? and what *should* the URL be ? Also - if you'd like a comment on the new site - it looks very nice for sure - but there is very little to deistinguish between the Main Cataegory, and the Sub-Cateogyr. I would recommend perhaps bolding the main category name ??????? Also- what do the numbers mean ? Does Beach/Surf mean that there are 52 products in the entire Beach / Surf cateogry ? or only at the top level ? It's confusing IMHO. :-) davidinottawa Link to comment Share on other sites More sharing options...
davidinottawa Posted February 13, 2007 Share Posted February 13, 2007 but there is very little to deistinguish between the Main Cataegory, and the Sub-Cateogyr.I would recommend perhaps bolding the main category name ??????? Ah - now I see the listtle Arrow image you have. Maybe just indenting the sub-category would be good ? Is your template using the /includes/boxes/categories.php file to populate this list ? davidinottawa Link to comment Share on other sites More sharing options...
mazoo Posted February 13, 2007 Author Share Posted February 13, 2007 Hi on my original site www.mazoo.co.uk/art/when you click on the first category link "Abstract" which is a main category not a sub category it links to http://www.mazoo.co.uk/art/abstract-c-23.html but displays on the main page subcategory boxes and whats new for that category if you do the same as above but for www.mazoo.co.uk/art2/ you still get http://www.mazoo.co.uk/art2/abstract-c-23.html but it does not display subcategories or anything else ??? and yes the number next to abstract (127) is the total number of abstract paintings. It seems column left includes /includes/boxes/categories.php so i will compare the two files but i'm still stuck for ideas?? Kathryn. Link to comment Share on other sites More sharing options...
davidinottawa Posted February 13, 2007 Share Posted February 13, 2007 on my original site www.mazoo.co.uk/art/when you click on the first category link "Abstract" which is a main category not a sub category it links to http://www.mazoo.co.uk/art/abstract-c-23.html but displays on the main page subcategory boxes and whats new for that category if you do the same as above but for www.mazoo.co.uk/art2/ you still get http://www.mazoo.co.uk/art2/abstract-c-23.html but it does not display subcategories or anything else ??? It seems column left includes /includes/boxes/categories.php so i will compare the two files but i'm still stuck for ideas?? OH!!! You mean : The cateogries are not being displayed in the center column ??? http://www.mazoo.co.uk/art2/abstract-c-23.html ??? Ah - well that's diffetn. Oringially you said : "My next problem and hopefully my last is my catagory links dont do what they should do, " but they "are doing exactly" what they should do! lol. :-) Soooooooooooooo - you're problem is that you want your sub-categories to be displayed in the main content frame (center) when you've clicked on a top level category. Is this correct ? david Link to comment Share on other sites More sharing options...
mazoo Posted February 13, 2007 Author Share Posted February 13, 2007 OH!!! You mean : The cateogries are not being displayed in the center column ??? http://www.mazoo.co.uk/art2/abstract-c-23.html ??? Ah - well that's diffetn. Oringially you said : "My next problem and hopefully my last is my catagory links dont do what they should do, " but they "are doing exactly" what they should do! lol. :-) Soooooooooooooo - you're problem is that you want your sub-categories to be displayed in the main content frame (center) when you've clicked on a top level category. Is this correct ? david you got it David, any ideas?? Link to comment Share on other sites More sharing options...
davidinottawa Posted February 13, 2007 Share Posted February 13, 2007 you got it David, any ideas?? LOL. Ok - I wanted to make sure I had the issue correct first. :-) Obviously you are using a modified template ? The loop you are missing is this : if (isset($cPath) && strpos('_', $cPath)) { // check to see if there are deeper categories within the current category $category_links = array_reverse($cPath_array); for($i=0, $n=sizeof($category_links); $i<$n; $i++) { $categories_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "'"); $categories = tep_db_fetch_array($categories_query); if ($categories['total'] < 1) { // do nothing, go through the loop } else { $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name"); break; // we've found the deepest category the customer is in } } } else { $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name"); } $number_of_categories = tep_db_num_rows($categories_query); $rows = 0; while ($categories = tep_db_fetch_array($categories_query)) { $rows++; $cPath_new = tep_get_path($categories['categories_id']); $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%'; echo ' <td align="center" class="smallText" width="' . $width . '" valign="top">fffff<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"; if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) { echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; } } You could post your index.php file if you don't get it sorted. davidinottawa Link to comment Share on other sites More sharing options...
mazoo Posted February 13, 2007 Author Share Posted February 13, 2007 sent you a PM David Link to comment Share on other sites More sharing options...
davidinottawa Posted February 13, 2007 Share Posted February 13, 2007 Obviously you are using a modified template ? The sub-category loop was commented out : // echo ' <td align="center" class="smallText" 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"; // if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) { // echo ' </tr>' . "\n"; // echo ' <tr>' . "\n"; // } } davidinottawa Link to comment Share on other sites More sharing options...
mazoo Posted February 13, 2007 Author Share Posted February 13, 2007 Thanks for that David, it now working but i have a new issue with table alignment when it shows sub catagories? any more ideas? Thanks again Kathryn. Link to comment Share on other sites More sharing options...
davidinottawa Posted February 13, 2007 Share Posted February 13, 2007 Thanks for that David, it now working but i have a new issue with table alignment when it shows sub catagories? any more ideas? Thanks for that David, it now working but i have a new issue with table alignment when it shows sub catagories? any more ideas? Hi Kathryn - Well - that's a whole other kettle of fish - the file has been modified to accomodate no sub-categories being displayed - and since OSC is a complete mess of nested tables upon nested tables - the easiest way to do this would be to save the file as an HTML file, do a search on '5 Part', and start working backward through the tables. The easiet way to do this is to apply borders on your table definitions. david Link to comment Share on other sites More sharing options...
whiterider Posted February 15, 2007 Share Posted February 15, 2007 Hi, My next problem and hopefully my last is my catagory links dont do what they should do, if you look and my new site design http://www.mazoo.co.uk/art2/ the main catagories dont link to where they should but the sub catagories are fine. can anyone suggest a fix for this, my options are to remove hyperlinks from the main catagories leaving the sub catagories intact and thus fixing the catagories box or somehow installing the original oscommerce files over the modified ones, but which files are used for the catagory box?? I appreciate any help. Kathryn. Whiterider: Hi Kathryn I have 2 questions on site if you could answer that i'm very appreciate... hoping to hear your respond, thanks! Question 1: I click on your link as shown below for the lightbox effect with java: http://www.oscommerce.com/community/contributions,4383/ I could not figure out how to make a lightbox because when login to my account. They ask me to browse for the zip file. and how you install to your website hosting and where to put the java code? Also, when i login there is a title and text to add in... what is that means? Question 2: My last question on your site http://www.mazoo.co.uk/art/ is very cool... how did you do from the left hand side navigation for the text? For example, when i move the mouse over the text is hightlight in bleu as a button click. I guess you're using javascript such as mouse over? Thanks, Kevin Link to comment Share on other sites More sharing options...
davidinottawa Posted February 15, 2007 Share Posted February 15, 2007 My last question on your site http://www.mazoo.co.uk/art/is very cool... how did you do from the left hand side navigation for the text? For example, when i move the mouse over the text is hightlight in bleu as a button click. I guess you're using javascript such as mouse over? Simple a tag : A { color: #000000; text-decoration: none; } A:hover { color: #AABBDD; text-decoration: underline; } http://www.echoecho.com/csslinks.htm Link to comment Share on other sites More sharing options...
mazoo Posted February 15, 2007 Author Share Posted February 15, 2007 Hi Kathryn - Well - that's a whole other kettle of fish - the file has been modified to accomodate no sub-categories being displayed - and since OSC is a complete mess of nested tables upon nested tables - the easiest way to do this would be to save the file as an HTML file, do a search on '5 Part', and start working backward through the tables. The easiet way to do this is to apply borders on your table definitions. david Hi, I would like to publicly thank David for all his help and work done on my new site, it will be going live in a few days and i can honestly say i wouldn't have been able to have done it without his help. Many thanks again. Kathryn. Link to comment Share on other sites More sharing options...
mazoo Posted February 15, 2007 Author Share Posted February 15, 2007 Whiterider: Hi Kathryn I have 2 questions on site if you could answer that i'm very appreciate... hoping to hear your respond, thanks! Question 1: I click on your link as shown below for the lightbox effect with java: http://www.oscommerce.com/community/contributions,4383/ I could not figure out how to make a lightbox because when login to my account. They ask me to browse for the zip file. and how you install to your website hosting and where to put the java code? Also, when i login there is a title and text to add in... what is that means? Question 2: My last question on your site http://www.mazoo.co.uk/art/ is very cool... how did you do from the left hand side navigation for the text? For example, when i move the mouse over the text is hightlight in bleu as a button click. I guess you're using javascript such as mouse over? Thanks, Kevin hi, question 1: lightbox, check the readme.txt file that comes with the contribution, if you follow the steps carefully you should not have a problem. question 2: the mouse over effect on categories is another oscommerce contribution, have a search for it and im sure you can find it, i cant remember the name of it as i have now deleted it as im not using it in my new store design. Regards Kathryn. Link to comment Share on other sites More sharing options...
mazoo Posted February 15, 2007 Author Share Posted February 15, 2007 hi, question 1: lightbox, check the readme.txt file that comes with the contribution, if you follow the steps carefully you should not have a problem. question 2: the mouse over effect on categories is another oscommerce contribution, have a search for it and im sure you can find it, i cant remember the name of it as i have now deleted it as im not using it in my new store design. Regards Kathryn. this is the contribution for the menu http://www.oscommerce.com/community/contributions,885 Link to comment Share on other sites More sharing options...
whiterider Posted February 16, 2007 Share Posted February 16, 2007 Simple a tag :A { color: #000000; text-decoration: none; } A:hover { color: #AABBDD; text-decoration: underline; } http://www.echoecho.com/csslinks.htm Hi there, Thank you both of you for your help, David & Kathryn. Maybe talk to both of you next time... Regards, Kevin Whiterider Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.