Results 1 to 10 of 1501

Hybrid View

  1. #1
    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)

  2. #2
    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.

  3. #3
    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

  4. #4
    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.

  5. #5
    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.

  6. #6
    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...

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

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by ultimate_zc View Post
    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...
    Thanks for the reply,

    I managed to add the relevant link to the sitemap so thanks for that usefull link. However Im still struggling with the sidebox question. Heres my /modules/sideboxes/my_template/testimonials_manager.php file as is:

    <?php
    /**
    * Testimonials Manager
    *
    * @package Template System
    * @copyright 2007 Clyde Jones
    * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: Testimonials_Manager.php v1.5.0 1-9-2009 Clyde Jones $
    */
    // test if box should display
    $page_query = $db->Execute("select testimonials_id, testimonials_image, testimonials_title, testimonials_html_text, date_added from " . TABLE_TESTIMONIALS_MANAGER . " where status = 1 and language_id = " . (int)$_SESSION['languages_id'] . " order by rand(), testimonials_title limit " . MAX_DISPLAY_TESTIMONIALS_MANAGER_TITLES ."");
    if ($page_query->RecordCount()>0) {
    $title = BOX_HEADING_TESTIMONIALS_MANAGER;
    $box_id = testimonials_manager;
    $rows = 0;
    while (!$page_query->EOF) {
    $rows++;
    $page_query_list[$rows]['id'] = $page_query->fields['testimonials_id'];
    $page_query_list[$rows]['name'] = $page_query->fields['testimonials_title'];
    $page_query_list[$rows]['story'] = $page_query->fields['testimonials_html_text'];
    $page_query_list[$rows]['image'] = $page_query->fields['testimonials_image'];

    $page_query->MoveNext();
    }
    $left_corner = false;
    $right_corner = false;
    $right_arrow = false;
    $title_link = false;
    require($template->get_template_dir('tpl_testimonials_manager.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_testimonials_manager.php');
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    }
    //EOF



    Im not sure how, what or where to add the relevant code mentioned here: https://www.zen-cart.com/tutorials/i...hp?article=270

    Any helps much appreciated

 

 

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