Results 1 to 10 of 1501

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: Testimonial Manager Support Thread

    I downloaded this mod from the free software section and installed it. I added the below code to /includes/modules/mytemplatename/meta_tags.php


    //TESTIMONIALS:
    case 'testimonials_manager_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']);
    break;
    Did this code need to be added to the meta_tags.php file or was that supplied for upgrades?

    After adding it to the file, this string is showing up in the top/title of the browser window bar along with the title of the comment.


    META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER

  2. #2
    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 MyDigitalFixation View Post
    I downloaded this mod from the free software section and installed it. I added the below code to /includes/modules/mytemplatename/meta_tags.php




    Did this code need to be added to the meta_tags.php file or was that supplied for upgrades?

    After adding it to the file, this string is showing up in the top/title of the browser window bar along with the title of the comment.


    META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER
    Adding this code is entirely optional

    There is a post located in this thread on how to implement the code (I just don't remember where)

  3. #3
    Join Date
    Nov 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by clydejones View Post
    Adding this code is entirely optional
    There is a post located in this thread on how to implement the code (I just don't remember where)

    Oh, ok. I removed it for now. I'll get back to it when I have some more time to go through the threads again. Thank you and thanks for the mod too. I really like this one.

  4. #4
    Join Date
    Jun 2008
    Location
    Osprey, Florida
    Posts
    151
    Plugin Contributions
    14

    Default Re: Testimonial Manager Support Thread

    Clyde, first of all, thanks for all your contributions. I wanted to verify whether this was the proper way to add the code to the metatags.php.

    When adding:
    PHP Code:
        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']); 
    I get the following on my metatags:
    HTML Code:
    <title>META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGERGreat</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta name="keywords" content="META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGERGreat" />
    <meta name="description" content="META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGERThis is just a test submission to show you how it looks, great, eh?" />
    When deleting "META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER"

    as in
    PHP Code:
        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']); 
    my meta tags show as they should...
    HTML Code:
    <title>Great</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta name="keywords" content="Great" />
    <meta name="description" content="This is just a test submission to show you how it looks, great, eh?" />
    Will doing so will create any problems with other pages? I ask because I assume the original code worked for you and you added it for a reason...

    Thanks

  5. #5
    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 ultimate_zc View Post
    Clyde, first of all, thanks for all your contributions. I wanted to verify whether this was the proper way to add the code to the metatags.php.

    When adding:
    PHP Code:
        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']); 
    I get the following on my metatags:
    HTML Code:
    <title>META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGERGreat</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta name="keywords" content="META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGERGreat" />
    <meta name="description" content="META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGERThis is just a test submission to show you how it looks, great, eh?" />
    When deleting "META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER"

    as in
    PHP Code:
        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']); 
    my meta tags show as they should...
    HTML Code:
    <title>Great</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta name="keywords" content="Great" />
    <meta name="description" content="This is just a test submission to show you how it looks, great, eh?" />
    Will doing so will create any problems with other pages? I ask because I assume the original code worked for you and you added it for a reason...

    Thanks
    Shouldn't have any effect on other pages.

  6. #6
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: Testimonial Manager Support Thread

    Hello,

    Firstly thanks Clyde (again!) for a superb add on

    Two questions:
    (I have searched this thread but to no avail.)

    1: Would it be possible to display the Testimonials sidebox only on the Home page?

    2: Can I add the 'index.php?main_page=display_all_testimonials' page to the site map?

    Thanks.

  7. #7
    Join Date
    Jun 2008
    Location
    Osprey, Florida
    Posts
    151
    Plugin Contributions
    14

    Default Re: Testimonial Manager Support Thread

    To answer question #1 visit this page on the zencart tutorial.

    To answer #2 visit this page "How to edit SiteMap links in ZenCart".

    Hope that helps...

 

 

Similar Threads

  1. v150 Testimonial Manager Support Thread (for ZC v1.5.x)
    By countrycharm in forum All Other Contributions/Addons
    Replies: 262
    Last Post: 26 Jun 2025, 10:42 AM
  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

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