Results 1 to 5 of 5
  1. #1

    red flag [Done 1.4.0] meta tags not stripping HTML out of titles

    php5.2.5
    zen1.3.8a
    mysql 5.2
    My client has large product names...
    He has inserted html break tags in the prod_name field. (varchar)
    ie BIG product <br> 60mm <br> etc.
    He has done the meta tag setup for some products which include product name.
    The top bar of the browser shows the product name and the site description. The products without metatag definitions set do not show the html <br> tags.
    The products with meta tags set Do show them as text..ie
    BIG product <br> 60mm <br>.
    Can anyone help me with this.
    Ive tried changing the mime-type in the db but it makes no difference.
    Would it be that the function that is generating the top bar info is not stripping out the html??,,,...but the tags only show up as text when metatags are defined...
    Its an ugly look, ALSO the<> parts of the tags are stripped out in the navigation toolbar but the br becomes part of the address. Very messy.
    UNDEFINED EXAMPLE
    http://thebeadman.com.au/catalog/gla...ned-p-225.html
    DEFINED EXAMPLE
    http://thebeadman.com.au/catalog/gla...-ab-p-144.html
    If someone could throw some light on this I would be eternally grateful.
    Cheers
    emmdee
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: meta tags, mime-types

    Try this:
    /includes/modules/meta_tags.php
    around line 258, you'll see this:
    Code:
          define('META_TAG_TITLE', str_replace('"','',$review_on . $meta_products_name));
          define('META_TAG_DESCRIPTION', str_replace('"','',$metatags_description . ' '));
          define('META_TAG_KEYWORDS', str_replace('"','',$metatags_keywords));  // KEYWORDS and CUSTOM_KEYWORDS are added above
    make the additions shown:
    Code:
          define('META_TAG_TITLE', str_replace('"','',zen_clean_html($review_on . $meta_products_name)));
          define('META_TAG_DESCRIPTION', str_replace('"','',zen_clean_html($metatags_description . ' ')));
          define('META_TAG_KEYWORDS', str_replace('"','',zen_clean_html($metatags_keywords)));  // KEYWORDS and CUSTOM_KEYWORDS are added above
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3

    Default Re: meta tags, mime-types

    Thanks dr

    works a treat locally...will do the remote thing later
    much appreciated

    cheers emmdee
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  4. #4
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: meta tags, mime-types

    Moving to bug reports area to be addressed in future release.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5

    red flag Re: [Done 1.4.0] meta tags not stripping HTML out of titles

    Dr Byte
    I made a mistake with my version nos.
    I applied the html clean to 1.3.7 cart mods/meta_tags.
    Solved the info bar prob.
    Did the same on 1.3.8a locally and the prob is NOT solved.
    There must be some more cleaning to do.
    Regards
    emmdee
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

 

Similar Threads

  1. v139h Title Tags/Meta Tag Titles... Confused
    By traytray in forum Customization from the Admin
    Replies: 1
    Last Post: 5 Aug 2012, 08:34 PM
  2. v139h Product descriptions as Meta tags/titles
    By Serious in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 18 May 2012, 03:18 PM
  3. Titles and Meta tags on home page
    By greytail in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Mar 2010, 04:38 PM
  4. Replies: 11
    Last Post: 23 Nov 2009, 02:57 AM
  5. Confused about Meta tags & Titles
    By julieoolie in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 May 2008, 03:11 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR