Results 1 to 10 of 89

Hybrid View

  1. #1
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: mmmm...Meta Tags - help/guidance needed

    It will use that ... unless of course you have "the bug" and not "the bug fix" ...

    Now to remember where I put that fix ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: mmmm...Meta Tags - help/guidance needed

    Try editing the /includes/functions/functions_general.php and replace this whole function:

    Code:
    ////
    // return truncated paragraph
      function zen_truncate_paragraph($paragraph, $size = 100, $word = ' ') {
        $zv_paragraph = "";
        $word = explode(" ", $paragraph);
        $zv_total = count($word);
        if ($zv_total > $size) {
          for ($x=0; $x < $size; $x++) {
            $zv_paragraph = $zv_paragraph . $word[$x] . " ";
          }
          $zv_paragraph = trim($zv_paragraph);
        } else {
          $zv_paragraph = trim($paragraph);
        }
        return $zv_paragraph;
      }
    Let me know if that fixes you up ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: mmmm...Meta Tags - help/guidance needed

    Quote Originally Posted by Ajeh
    Try editing the /includes/functions/functions_general.php and replace this whole function:

    Code:
    ////
    // return truncated paragraph
      function zen_truncate_paragraph($paragraph, $size = 100, $word = ' ') {
        $zv_paragraph = "";
        $word = explode(" ", $paragraph);
        $zv_total = count($word);
        if ($zv_total > $size) {
          for ($x=0; $x < $size; $x++) {
            $zv_paragraph = $zv_paragraph . $word[$x] . " ";
          }
          $zv_paragraph = trim($zv_paragraph);
        } else {
          $zv_paragraph = trim($paragraph);
        }
        return $zv_paragraph;
      }
    Let me know if that fixes you up ...
    Unfortunately, that fix did not fix my problem. Please diagnose this as it's practically impossible to add meta tag to thousands of products one at a time nor do I want to revert back to 1.2.7

    Thanks!

  4. #4
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: mmmm...Meta Tags - help/guidance needed

    Ajeh, I just want to report back that I tested the issue on a clean install of 1.3.0.1 and Zen Cart is still not picking up description if meta tag doesn't exist for products.

    Upon further review I compared the change you proposed with the original file from 1.3.0.1 and there is absolutely no difference between the changes you suggested and the clean file downloaded for 1.3.0.1. Is that the problem that the bug fix you gave is actually not a bug fix?

    Thanks!

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: mmmm...Meta Tags - help/guidance needed

    Odd ... this is what is in v1.3.0.1 ...

    Code:
    ////
    // return truncated paragraph
      function zen_truncate_paragraph($paragraph, $size = 100, $word = ' ') {
        $zv_paragraph = "";
        $word = explode(" ", $paragraph);
        $zv_total = count($word);
        if ($zv_total > $size) {
          for ($x=0; $x < $size; $x++) {
            $zv_paragraph = $zv_paragraph . $word[$x] . " ";
          }
          $zv_paragraph = trim($zv_paragraph);
        }
        return $zv_paragraph;
      }

    This is the new code:
    Code:
    // return truncated paragraph
      function zen_truncate_paragraph($paragraph, $size = 100, $word = ' ') {
        $zv_paragraph = "";
        $word = explode(" ", $paragraph);
        $zv_total = count($word);
        if ($zv_total > $size) {
          for ($x=0; $x < $size; $x++) {
            $zv_paragraph = $zv_paragraph . $word[$x] . " ";
          }
          $zv_paragraph = trim($zv_paragraph);
        } else {
          $zv_paragraph = trim($paragraph);
        }
        return $zv_paragraph;
      }
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: mmmm...Meta Tags - help/guidance needed

    Ajeh,

    Thanks for the reply. I downloaded a new copy of the Zen Cart 1.3.0.1 full set pack, applied the change, deleted the one on the server and copied the new one there. There problem is still not solved.

    I went to the site review section to see if others are experiencing the problem and I have pasted a few sites that have descriptions but there are not being auto populated for meta tag description. Is this a bug or we are all missing something, missing a configuration setting or have hosting/server issues?

    This obviously cannot be a good thing for shop owners.

    Here are some samples sites that have the same problem but may not know it :)

    http://shopjackiesjewels.com/index.p...products_id=16
    http://racemode.ca/index.php?main_pa...products_id=48
    http://www.edgewatergifts.com/lift-t...nson-p-79.html

    If you need more information please let me know.

    Thanks for looking into this.

    BTW, Are you able to get the default clean install to auto-generate the description for products? I was not able to make that work either and a few site I visited that have the clean install with sample products do not have it working either.

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: mmmm...Meta Tags - help/guidance needed

    I donwnload a clean v1.3.0.1 from our link to SourceForge ...

    Meta Tags are broken on the auto generated code for description ... I applied the same change I have asked you to try and it fixed it ...

    Make one change to the file:
    /includes/functions/functions_general.php

    New Code to replace the function zen_truncate_paragraph by adding the else statement:
    Code:
    ////
    // return truncated paragraph
      function zen_truncate_paragraph($paragraph, $size = 100, $word = ' ') {
        $zv_paragraph = "";
        $word = explode(" ", $paragraph);
        $zv_total = count($word);
        if ($zv_total > $size) {
          for ($x=0; $x < $size; $x++) {
            $zv_paragraph = $zv_paragraph . $word[$x] . " ";
          }
          $zv_paragraph = trim($zv_paragraph);
        } else {
          $zv_paragraph = trim($paragraph);
        }
        return $zv_paragraph;
      }
    You may wish to check your site with something like Beyond Compare and see what it is that is not allowing this fix to work for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Advice/Guidance Needed
    By BigNath in forum Upgrading from 1.3.x to 1.3.9
    Replies: 6
    Last Post: 17 Mar 2009, 03:26 PM
  2. guidance needed
    By humbll in forum General Questions
    Replies: 1
    Last Post: 8 Feb 2007, 11:56 PM

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