Page 123 of 151 FirstFirst ... 2373113121122123124125133 ... LastLast
Results 1,221 to 1,230 of 1501
  1. #1221
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by clonlala View Post
    I'm facing the same problem with this. I am using zc1.38a and it doesn't show up in chinese version of my site. Please help.
    my site: http://www.exoreptiles.com/my/
    have you added any testimonials in chinese?

  2. #1222
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: Testimonial Manager Support Thread

    Hi Clyde,

    I've had a dig around this thread and can't find an answer so here goes.

    Title tag and meta description: is it possible for each testimonial (index.php?main_page=testimonials_manager&testimonials_id=XX) to have it's own unique title tag and meta description generated, the same way that Zen Cart generates a unique title tag and meta description for each product based on it's name/description etc.

    Thanks

  3. #1223
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by gaffettape View Post
    Hi Clyde,

    I've had a dig around this thread and can't find an answer so here goes.

    Title tag and meta description: is it possible for each testimonial (index.php?main_page=testimonials_manager&testimonials_id=XX) to have it's own unique title tag and meta description generated, the same way that Zen Cart generates a unique title tag and meta description for each product based on it's name/description etc.

    Thanks
    Hmmmmmm! did you check this post

  4. #1224
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by clydejones View Post
    Nope! Thanks! Sorry!

  5. #1225
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by gaffettape View Post
    Nope! Thanks! Sorry!
    Ok so I've had a go, and have experienced the same problems as a few other people on this thread.

    I've done this, then this and finally this.

    The result is:

    "META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER_ALL_TESTIMONIALSTestimonial, Titles, Here" as the title on the display_all_testimonials page.

    And:

    "Testimonial - (blank)" as the title on the testimonials_manager&testimonials_id=XX pages.



    What I was thinking I might try was to define description, title and keywords for the display_all_testimonials page via the built in Zen Cart Per-Page meta-tags function in the includes\languages\english\my_template\meta_tags.php file and use only the "testimonials_manager" part of your method to display auto-generated titles/description/keyword tags on the testimonials_id=XX pages - only problem is that I don't know which parts to leave and which parts to delete..

  6. #1226
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by gaffettape View Post
    Ok so I've had a go, and have experienced the same problems as a few other people on this thread.

    I've done this, then this and finally this.

    The result is:

    "META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER_ALL_TESTIMONIALSTestimonial, Titles, Here" as the title on the display_all_testimonials page.

    And:

    "Testimonial - (blank)" as the title on the testimonials_manager&testimonials_id=XX pages.



    What I was thinking I might try was to define description, title and keywords for the display_all_testimonials page via the built in Zen Cart Per-Page meta-tags function in the includes\languages\english\my_template\meta_tags.php file and use only the "testimonials_manager" part of your method to display auto-generated titles/description/keyword tags on the testimonials_id=XX pages - only problem is that I don't know which parts to leave and which parts to delete..
    Remove the highlighted portions from the following code:

    break;
    //TESTIMONIALS:
    case 'display_all_testimonials':

    $sql = "select * from " . TABLE_TESTIMONIALS_MANAGER . " where status = 1 and language_id = '" . (int)$_SESSION['languages_id'] . "' order by date_added DESC, testimonials_title";
    $testimonials = $db->Execute($sql);
    while (!$testimonials->EOF) {
    $testimonial_string_metatags .= zen_clean_html($testimonials->fields['testimonials_title']) . METATAGS_DIVIDER;

    $testimonials->MoveNext();

    } //EOF
    define('META_TAG_TITLE', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS . $testimonial_string_metatags);
    define('META_TAG_DESCRIPTION', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS . $testimonial_string_metatags);
    define('META_TAG_KEYWORDS', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS . $testimonial_string_metatags);
    break;

    case 'testimonials_manager':
    define('META_TAG_TITLE', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER . $page_check->fields['testimonials_title']);
    define('META_TAG_DESCRIPTION', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER . zen_trunc_string($page_check->fields['testimonials_html_text'],TESTIMONIALS_MANAGER_DESCRIPTION_LENGTH));
    define('META_TAG_KEYWORDS', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER . $page_check->fields['testimonials_title']);

  7. #1227
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by clydejones View Post
    Remove the highlighted portions from the following code:

    break;
    //TESTIMONIALS:
    case 'display_all_testimonials':

    $sql = "select * from " . TABLE_TESTIMONIALS_MANAGER . " where status = 1 and language_id = '" . (int)$_SESSION['languages_id'] . "' order by date_added DESC, testimonials_title";
    $testimonials = $db->Execute($sql);
    while (!$testimonials->EOF) {
    $testimonial_string_metatags .= zen_clean_html($testimonials->fields['testimonials_title']) . METATAGS_DIVIDER;

    $testimonials->MoveNext();

    } //EOF
    define('META_TAG_TITLE', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS . $testimonial_string_metatags);
    define('META_TAG_DESCRIPTION', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS . $testimonial_string_metatags);
    define('META_TAG_KEYWORDS', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS . $testimonial_string_metatags);
    break;

    case 'testimonials_manager':
    define('META_TAG_TITLE', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER . $page_check->fields['testimonials_title']);
    define('META_TAG_DESCRIPTION', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER . zen_trunc_string($page_check->fields['testimonials_html_text'],TESTIMONIALS_MANAGER_DESCRIPTION_LENGTH));
    define('META_TAG_KEYWORDS', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER . $page_check->fields['testimonials_title']);
    Ok, so I tried that and unfortunately it didn't seem to work. I poked around a bit and tried this which seems to work ok:

    I found the following line in /includes/modules/my_template/meta_tags.php
    Code:
    // NO "break" here. Allow defaults if not overridden at the per-page level
    And added your following code directly above it (all I did was remove the "display_all_testimonials" page releveant code)
    Code:
    // Testimonials:
      case 'testimonials_manager':
      define('META_TAG_TITLE', $page_check->fields['testimonials_title']);
      define('META_TAG_DESCRIPTION', zen_trunc_string($page_check->fields['testimonials_html_text'],TESTIMONIALS_MANAGER_DESCRIPTION_LENGTH));
      define('META_TAG_KEYWORDS', $page_check->fields['testimonials_title']);
      break;
    I have very little knowledge of php and would appreciate if you could check that the above looks ok.

    Then all I had to do was to define description, title and keywords for the display_all_testimonials page, I did that via the built in Zen Cart Per-Page meta-tags function in the includes/languages/english/my_template/meta_tags.php file like so:
    Code:
    // Per-Page meta-tags.
    // Page: DISPLAY_ALL_TESTIMONIALS
      define('META_TAG_DESCRIPTION_DISPLAY_ALL_TESTIMONIALS','A description here');
      define('META_TAG_KEYWORDS_page_name','keywords, go, here');
      define('META_TAG_TITLE_page_name', 'Page title here');
    Testing on my local site seems to look ok so far..

  8. #1228
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Testimonial Manager Support Thread

    Looks fine.

  9. #1229
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: Testimonial Manager Support Thread

    Sorry to string this out over soooo many posts Clyde, but I have just one more very quick question.

    Is it possible to add my sites title & tagline after the testimonials title in the following code:
    Code:
    // Testimonials:
      case 'testimonials_manager':
      define('META_TAG_TITLE', $page_check->fields['testimonials_title']);
      define('META_TAG_DESCRIPTION', zen_trunc_string($page_check->fields['testimonials_html_text'],TESTIMONIALS_MANAGER_DESCRIPTION_LENGTH));
      define('META_TAG_KEYWORDS', $page_check->fields['testimonials_title']);
      break;
    Thanks.

  10. #1230
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by gaffettape View Post
    Sorry to string this out over soooo many posts Clyde, but I have just one more very quick question.

    Is it possible to add my sites title & tagline after the testimonials title in the following code:
    Code:
    // Testimonials:
      case 'testimonials_manager':
      define('META_TAG_TITLE', $page_check->fields['testimonials_title']);
      define('META_TAG_DESCRIPTION', zen_trunc_string($page_check->fields['testimonials_html_text'],TESTIMONIALS_MANAGER_DESCRIPTION_LENGTH));
      define('META_TAG_KEYWORDS', $page_check->fields['testimonials_title']);
      break;
    Thanks.
    You should be able to add them as indicated by the highlight.

    Code:
    // Testimonials:
      case 'testimonials_manager':
      define('META_TAG_TITLE', $page_check->fields['testimonials_title'] . TITLE . TAGLINE);
      define('META_TAG_DESCRIPTION', zen_trunc_string($page_check->fields['testimonials_html_text'],TESTIMONIALS_MANAGER_DESCRIPTION_LENGTH));
      define('META_TAG_KEYWORDS', $page_check->fields['testimonials_title']);
      break;

 

 

Similar Threads

  1. v150 Testimonial Manager Support Thread (for ZC v1.5.x)
    By countrycharm in forum All Other Contributions/Addons
    Replies: 261
    Last Post: 13 Jan 2025, 11:14 PM
  2. Link Manager 3.0 Support Thread
    By clydejones in forum Addon Sideboxes
    Replies: 1987
    Last Post: 6 Aug 2021, 02:56 PM
  3. Poll Manager Support Thread
    By boudewijn in forum Addon Sideboxes
    Replies: 148
    Last Post: 27 Jan 2016, 09:53 AM
  4. Empty Cart Manager [support thread]
    By Steven300 in forum All Other Contributions/Addons
    Replies: 49
    Last Post: 26 May 2010, 10:26 AM
  5. [Support Thread] Simple Video Manager
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 1 Nov 2008, 02:44 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR