osCmax v2.5 User Manual
Page 1 of 2 12 LastLast
Results 1 to 10 of 18

CSS Category just like dhtml but seo friendly

This is a discussion on CSS Category just like dhtml but seo friendly within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Need help or collaboration PLEASE I took a contribution osCommerce Community Add-Ons and changed the file slightly and the changed ...

      
  1. #1
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    362
    Rep Power
    10


    Default CSS Category just like dhtml but seo friendly

    Need help or collaboration PLEASE

    I took a contribution osCommerce Community Add-Ons and changed the file slightly and the changed the css to look exactly like the dhtml one with flyouts currently on my site. The difference is dhtml does not have spiderable links which hurts in seo and this css one does show the links. It can easily change to match your site current attached is for mine.

    The problem is it causes the page loads to load more slowly than my dhtml. Can anyone with more knowledge take a and maybe change the querys so it loads more quickly?????
    Or possibly strip it out for bts if that would make it quicker. It runs fine on my current oscmax site but to slow for me. This would be great if we can get this to work quicker and help out with SEO a ton. Thanks. I put the dhtml for now back up on mine.

    I will attach the file that goes into catalog/includes/boxes file then just go to infobox admin and create a new info box called categories css turn that one on in admin and the one you are using off in info and there it is adjust the css to match your site. Hope someone can help really want to use this one.
    Attached Files Attached Files

  2. #2
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default Re: CSS Category just like dhtml but seo friendly

    Okay, I've installed it on my test site and it is making over double the queries that the dhtml menu makes so I see what you mean. I'll work with some more today and see what I can accomplish. I think you're correct that there are several advantages to it over dhmtl.

    There is a small error in the file in your zip though around line 124 here.
    Code:
    /* The main categories with sub-categories */
    //.suckerdiv .subfolderstyle{
    //background: url(images/arrow-list.gif) no-repeat center right;
    //}
    I just uncommented out for the moment.
    Last edited by JohnW; 03-13-2008 at 01:33 AM.
    John

  3. #3
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    362
    Rep Power
    10


    Default Re: CSS Category just like dhtml but seo friendly

    Oh yeah sorry about the error..my bad.. it was for the arrow gif in catalog/images when you had subcategories. I didn't like the arrow for now and eliminated it but many like it. I did not upload that gif.

  4. #4
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    362
    Rep Power
    10


    Default Re: CSS Category just like dhtml but seo friendly

    I commented out a bunch of queries dealing with products but the one the made it move quicker was line 265 I commented out this.
    // $totalitemsincategory = tep_count_products_in_category($categories['categories_id']);

    I think a couple of other lines of code need changing dealing with total items in category

    This makes it much quicker but not quick enough yet I will attach the lasted file I worked on. I am tired and have not thoroughly tested yet.
    Attached Files Attached Files

  5. #5
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default Re: CSS Category just like dhtml but seo friendly

    I did some comparisons today and I actually get a faster page load and parse time with the CSS menu versus the dhtml menu even though the CSS menu has more queries. Using Firefox/2.0.0.12 I did some test with Firebug 1.1 enabled and the CSS menu aslo makes the site throughput smaller.

    CSS menu
    Current Parse Time: 0.131 s with 245 queries - queery cache cleared
    Current Parse Time: 0.097 s with 245 queries
    Current Parse Time: 0.097 s with 245 queries
    35 requests 94 KB (84 KB from cache) 1.55s

    DHTML menu
    Current Parse Time: 0.326 s with 119 queries - queery cache cleared
    Current Parse Time: 0.326 s with 119 queries
    Current Parse Time: 0.322 s with 119 queries
    36 requests 156 KB (99 KB from cache) 1.77s

    This was using my index page but I'm getting similar results on all the pages. I haven't modified anything on either menu for queries. I've always thought the DHTML menu was kind of clunky in operation, but I never tried to change it.

    What are you getting?
    John

  6. #6
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    362
    Rep Power
    10


    Default Re: CSS Category just like dhtml but seo friendly

    That's funny mine is about the reverse of that with Dhtml being quicker How do you figure that one.

    Internet explorer css edited file .39 with 23 queries
    Dhtml .10 with 87 queries
    Last edited by bkpie; 03-16-2008 at 04:10 PM. Reason: add queries

  7. #7
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    362
    Rep Power
    10


    Default Re: CSS Category just like dhtml but seo friendly

    John I went to Firefox to do some testing and I noticed something else With the Dhtml menu in firefox the info boxes on the right remain and only the text changes which makes for a smooth transistion but the css reloads everything. So I guess we have to make it work with BTS to get a smoother transistion.

  8. #8
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default Re: CSS Category just like dhtml but seo friendly

    It's not doing that on mine with the CSS so it's something else causing that. I have Google urchin.js and Commodo cot.js running on mine so that may be an issue on mine but I don't know for sure. cot.js causes some warnings though so that might be a problem on mine. But, Firebug is showing a bunch of warnings for your coolmenus.css and I don't use that. Do you use coolmenu for anything? Maybe try taking it off.

    Your site is loading much faster on Firefox for me but is slower and quirky on IE7. If you want to see the css on my test site to compare let me know because I have it restricted with .htaccess so it doesn't get indexed by a search engine. it's tankraisedcorals but it's just a duplicate of driedflowersrus.
    John

  9. #9
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default Re: CSS Category just like dhtml but seo friendly

    Blayne,

    This menu is a better idea IMHO over the dhtml and my site runs better with it although I haven't worked on the queries at all.

    I'm now using it on my site and it's switchable from the admin panel by replacing the CoolMenu option with CssMenu in the configuration table and replacing coolmenu.css with cssmenu.css in main_page.tpl.php. Since coolmenu doesn't work for centered shops perhaps this could be a replacement.

    I'm attaching cssmenu.css, css_menu_animation.js, boxes/categories.php, and boxes/categories_css.php in case anyone wants to try it.
    Attached Files Attached Files
    John

  10. #10
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    362
    Rep Power
    10


    Default Re: CSS Category just like dhtml but seo friendly

    John:

    Thanks I downloaded it and will do a file compare with mine after I removed some un-needed queries that seemed to slow it down

    Blayne

Page 1 of 2 12 LastLast

Similar Threads

  1. Dhtml menu and SEO
    By bkpie in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 11-04-2007, 04:04 PM
  2. SEO friendly url - rewrite not working
    By muyaszed in forum osCMax v2 Features Discussion
    Replies: 6
    Last Post: 09-09-2007, 03:13 PM
  3. css and dhtml validation
    By dilladog in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 09-03-2007, 12:37 PM
  4. SEO Friendly HTML links in URL
    By librianguy in forum osCmax v2 Customization/Mods
    Replies: 10
    Last Post: 01-31-2006, 11:25 AM
  5. seo and osCMAX friendly redirects
    By humanode in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 11-16-2005, 04:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •