Zen Cart Logo
Forums / All Other Contributions/Addons / Testimonial Manager Support Thread

Testimonial Manager Support Thread

Views: 277,986

Results 1,221 to 1,240 of 1,502
18 Mar 2011, 3:11 AM
#1221
clonlala avatar

clonlala

New Zenner

Join Date:
Jul 2008
Posts:
4
Plugin Contributions:
0

Testimonial Manager Support Thread

displaymannequin:

Hi Clyde or another genius,

I'm installing TM 1.5.2 at zc139h, but have problems with the side-boxes in other languages than English.

I copied (from new_installation) all includes/english languages files to dutch and german (after changing all YOUR_TEMPLATE directories to classic). I believe I triple checked everything but the side-boxes wont show up in Dutch and German. In English everything works perfect. In the admin it works perfect in all 3 languages. Do you have any idea?

Shop under construction: http://www.displaymannequin.nl/zc139h/

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/

18 Mar 2011, 4:07 AM
#1222
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

clonlala:

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?

25 Mar 2011, 1:41 PM
#1223
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

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 :smile:

25 Mar 2011, 2:15 PM
#1224
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

gaffettape:

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 :smile:

Hmmmmmm! did you check this post

25 Mar 2011, 2:27 PM
#1225
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

clydejones:

Hmmmmmm! did you check this post

Nope! Thanks! Sorry! :blush:

25 Mar 2011, 4:12 PM
#1226
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

gaffettape:

Nope! Thanks! Sorry! :blush:

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.

:blink:

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

25 Mar 2011, 5:41 PM
#1227
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

gaffettape:

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.

:blink:

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']);

25 Mar 2011, 6:40 PM
#1228
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

clydejones:

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```
// 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)```
// 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:

// 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..

25 Mar 2011, 7:20 PM
#1229
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

Looks fine.

25 Mar 2011, 7:37 PM
#1230
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

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:

// 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.

25 Mar 2011, 8:58 PM
#1231
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

gaffettape:

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:

// 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.

// 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;

25 Mar 2011, 9:42 PM
#1232
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

clydejones:

You should be able to add them as indicated by the highlight.

// 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;


Perfect, thanks for your help Clyde :smile:
8 Apr 2011, 7:10 AM
#1233
cherylam1103 avatar

cherylam1103

New Zenner

Join Date:
Sep 2009
Posts:
29
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

Hello,
I have tried to install this module on my test offline site which is running Zen v1.3.9h, php version 5.3.5, database MySQL 5.5.8 and I am getting the following error in Zen when I run the install sql for the testimonial addon, can you please advise what issue is and let me know if you need any additional information. (I have changed YOUR_TEMPLATE folders to match mine which is CUSTOM.

:dontgetit
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 1
in:
[CREATE TABLE testimonials_manager ( testimonials_id int(11) NOT NULL auto_increment, language_id int(11) NOT NULL default '1', testimonials_title varchar(64) NOT NULL default '', testimonials_url VARCHAR( 255 ) NULL DEFAULT NULL, testimonials_name text NOT NULL, testimonials_image varchar(254) NOT NULL default '', testimonials_html_text text, testimonials_mail text NOT NULL, testimonials_company VARCHAR( 255 ) NULL DEFAULT NULL, testimonials_city VARCHAR( 255 ) NULL DEFAULT NULL, testimonials_country VARCHAR( 255 ) NULL DEFAULT NULL, testimonials_show_email char(1) default '0', status int(1) NOT NULL default '0', date_added datetime NOT NULL default '0000-00-00 00:00:00', last_update datetime NULL default NULL, PRIMARY KEY (testimonials_id) ) TYPE=MyISAM ;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Look forward to receiving assistance as this sound like a good addition to Zen.
Regards Cheryl.

8 Apr 2011, 7:36 AM
#1234
cherylam1103 avatar

cherylam1103

New Zenner

Join Date:
Sep 2009
Posts:
29
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

cherylam1103:

Hello,
I have tried to install this module on my test offline site which is running Zen v1.3.9h, php version 5.3.5, database MySQL 5.5.8 and I am getting the following error in Zen when I run the install sql for the testimonial addon, can you please advise what issue is and let me know if you need any additional information. (I have changed YOUR_TEMPLATE folders to match mine which is CUSTOM.

Look forward to receiving assistance as this sound like a good addition to Zen.
Regards Cheryl.

Ok I have since looked in Zen Configuration menu and Testimonials Manager is there however when I go to my test site I don't see it, do I need to setup anything else? I have added install part to my style sheet.

Regards Cheryl.

8 Apr 2011, 7:54 AM
#1235
cherylam1103 avatar

cherylam1103

New Zenner

Join Date:
Sep 2009
Posts:
29
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

cherylam1103:

Ok I have since looked in Zen Configuration menu and Testimonials Manager is there however when I go to my test site I don't see it, do I need to setup anything else? I have added install part to my style sheet.

Regards Cheryl.

Ok silly me didn't upload files. I have added install part to my style sheet and uploaded files, activated sidebox and am now getting below error on site where sideboxes should appear.

1146 Table 'aescrapb.testimonials_manager' doesn't exist
in:
[select testimonials_id, testimonials_image, testimonials_title, testimonials_html_text, date_added from testimonials_manager where status = 1 and language_id = 1 order by rand(), testimonials_title limit 5].

Any suggestions?
Regards Cheryl.

8 Apr 2011, 11:16 AM
#1236
cherylam1103 avatar

cherylam1103

New Zenner

Join Date:
Sep 2009
Posts:
29
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

cherylam1103:

Ok silly me didn't upload files. I have added install part to my style sheet and uploaded files, activated sidebox and am now getting below error on site where sideboxes should appear.

1146 Table 'aescrapb.testimonials_manager' doesn't exist
in:
[select testimonials_id, testimonials_image, testimonials_title, testimonials_html_text, date_added from testimonials_manager where status = 1 and language_id = 1 order by rand(), testimonials_title limit 5].

Any suggestions?
Regards Cheryl.

Sorry, me again :smile: This now goes back to original problem I think. I ran the install sql in my phpMyAdmin on my data base and got the same error as before; #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 18

As I don't know to much about syntax I cannot workout what is not right in sql. The end of the install script has the following;
... last_update datetime NULL default NULL,
PRIMARY KEY (testimonials_id)
) TYPE=MyISAM ;

INSERT INTO testimonials_manager VALUES (1, 1, 'Great', '', 'Clyde Designs', '', 'This is just a test submission to show you how it looks, great, eh?', '[email protected]', NULL, NULL, NULL, 0, 1, now(), NULL);

Can you please advise what issue is with syntax in install script, thanks.
Cheryl.

8 Apr 2011, 12:18 PM
#1237
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

cherylam1103:

Sorry, me again :smile: This now goes back to original problem I think. I ran the install sql in my phpMyAdmin on my data base and got the same error as before; #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 18

As I don't know to much about syntax I cannot workout what is not right in sql. The end of the install script has the following;
... last_update datetime NULL default NULL,
PRIMARY KEY (testimonials_id)
) TYPE=MyISAM ;

INSERT INTO testimonials_manager VALUES (1, 1, 'Great', '', 'Clyde Designs', '', 'This is just a test submission to show you how it looks, great, eh?', '[email protected]', NULL, NULL, NULL, 0, 1, now(), NULL);

Can you please advise what issue is with syntax in install script, thanks.
Cheryl.

Try this: run this sql patch using the Zen-Cart Sql Patches tool
(admin -> tools -> install sql patches) copy-and-paste the code into the query field and press 'Send' instead.

SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Testimonials Manager';
DELETE FROM configuration WHERE configuration_group_id = @t4;
DELETE FROM configuration_group WHERE configuration_group_id = @t4;
DELETE FROM configuration WHERE configuration_key = 'DEFINE_TESTIMONIAL_STATUS';

INSERT INTO configuration_group VALUES (NULL, 'Testimonials Manager', 'Testimonials Manager Display Settings', '1', '1');
UPDATE configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();

SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Testimonials Manager';

INSERT INTO configuration VALUES (NULL, 'Number Of Testimonials to display in Testimonials Sidebox', 'MAX_DISPLAY_TESTIMONIALS_MANAGER_TITLES', '5', 'Set the number of testimonials to display in the Latest Testimonials box.', @t4, 1, NULL, now(), NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Testimonial Title Minimum Length', 'ENTRY_TESTIMONIALS_TITLE_MIN_LENGTH', '2', 'Minimum length of link title.', @t4, 2, NULL, now(), NULL, NULL), (NULL, 'Testimonial Text Minimum Length', 'ENTRY_TESTIMONIALS_TEXT_MIN_LENGTH', '10', 'Minimum length of Testimonial description.', @t4, 3, NULL, now(), NULL, NULL), (NULL, 'Testimonial Text Maximum Length', 'ENTRY_TESTIMONIALS_TEXT_MAX_LENGTH', '1000', 'Maximum length of Testimonial description.', @t4, 3, NULL, now(), NULL, NULL), (NULL, 'Testimonial Contact Name Minimum Length', 'ENTRY_TESTIMONIALS_CONTACT_NAME_MIN_LENGTH', '2', 'Minimum length of link contact name.', @t4, 4, NULL, now(), NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Display Truncated Testimonials in Sidebox', 'DISPLAY_TESTIMONIALS_MANAGER_TRUNCATED_TEXT', 'true', 'Display truncated text in sidebox', @t4, 5, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Length of truncated testimonials to display', 'TESTIMONIALS_MANAGER_DESCRIPTION_LENGTH', '150', 'If Display Truncated Testimonials in Sidebox is true - set the amount of characters to display from the Testimonials in the Testimonials Manager sidebox.', @t4, 6, NULL, now(), NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Number Of Testimonials to display on all testimonials page', 'MAX_DISPLAY_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS', '5', 'Set the number of testimonials to display on the all testimonials page.', @t4, 7, NULL, now(), NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Display Date Published on Testimonials page', 'DISPLAY_TESTIMONIALS_DATE_PUBLISHED', 'true', 'Display date published on testimonials page', @t4, 8, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Display View All Testimonials Link In Sidebox', 'DISPLAY_ALL_TESTIMONIALS_TESTIMONIALS_MANAGER_LINK', 'true', 'Display View All Testimonials Link In Sidebox', @t4, 9, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Display Add New Testimonial Link In Sidebox', 'DISPLAY_ADD_TESTIMONIAL_LINK', 'true', 'Display Add New Testimonial Link In Sidebox', @t4, 10, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Testimonial Image Width', 'TESTIMONIAL_IMAGE_WIDTH', '80', 'Set the Width of the Testimonial Image', @t4, 11, NULL, '2007-08-21 12:04:10', NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Testimonial Image Height', 'TESTIMONIAL_IMAGE_HEIGHT', '80', 'Set the Height of the Testimonial Image', @t4, 12, NULL, '2007-08-21 12:04:10', NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Testimonial Image Directory', 'TESTIMONIAL_IMAGE_DIRECTORY', 'testimonials/', 'Set the Directory for the Testimonial Image', @t4, 13, NULL, '2007-08-21 12:04:10', NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Display Company Name field', 'TESTIMONIALS_COMPANY', 'true', 'Display Company Name field', @t4, 14, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Display City field', 'TESTIMONIALS_CITY', 'true', 'Display City field', @t4, 15, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Display Country field', 'TESTIMONIALS_COUNTRY', 'true', 'Display Country field', @t4, 16, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Only registered customers may submit a testimonial', 'REGISTERED_TESTIMONIAL', 'true', 'Only registered customers may submit a testimonial', @t4, 17, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Display All Languages', 'TESTIMONIALS_DISPLAY_ALL_LANGUAGES', 'true', 'Display All Languages', @t4, 18, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Testimonial - Show Store Name and Address', 'TESTIMONIAL_STORE_NAME_ADDRESS', 'true', 'Include Store Name and Address', @t4, 19, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Define Testimonial Status', 'DEFINE_TESTIMONIAL_STATUS', '1', 'Enable the Defined Testimonial Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', @t4, 20, NULL, now(), NULL, 'zen_cfg_select_option(array(''0'', ''1'', ''2'', ''3''),');
INSERT INTO configuration VALUES (NULL, 'Testimonial Manager Version', 'TM_VERSION', '1.5.2', 'Testimonial Manager version', @t4, 21, NULL, now(), NULL, NULL);

DROP TABLE IF EXISTS testimonials_manager;
CREATE TABLE testimonials_manager (
testimonials_id int(11) NOT NULL auto_increment,
language_id int(11) NOT NULL default '1',
testimonials_title varchar(64) NOT NULL default '',
testimonials_url VARCHAR( 255 ) NULL DEFAULT NULL,
testimonials_name text NOT NULL,
testimonials_image varchar(254) NOT NULL default '',
testimonials_html_text text,
testimonials_mail text NOT NULL,
testimonials_company VARCHAR( 255 ) NULL DEFAULT NULL,
testimonials_city VARCHAR( 255 ) NULL DEFAULT NULL,
testimonials_country VARCHAR( 255 ) NULL DEFAULT NULL,
testimonials_show_email char(1) default '0',
status int(1) NOT NULL default '0',
date_added datetime NOT NULL default '0000-00-00 00:00:00',
last_update datetime NULL default NULL,
PRIMARY KEY (testimonials_id)
) ENGINE=MyISAM;

INSERT INTO testimonials_manager VALUES (1, 1, 'Great', '', 'Clyde Designs', '', 'This is just a test submission to show you how it looks, great, eh?', '[email protected]', NULL, NULL, NULL, 0, 1, now(), NULL);

9 Apr 2011, 1:01 AM
#1238
cherylam1103 avatar

cherylam1103

New Zenner

Join Date:
Sep 2009
Posts:
29
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

clydejones:

Try this: run this sql patch using the Zen-Cart Sql Patches tool
(admin -> tools -> install sql patches) copy-and-paste the code into the query field and press 'Send' instead.

SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Testimonials Manager';
DELETE FROM configuration WHERE configuration_group_id = @t4;
DELETE FROM configuration_group WHERE configuration_group_id = @t4;
DELETE FROM configuration WHERE configuration_key = 'DEFINE_TESTIMONIAL_STATUS';

INSERT INTO configuration_group VALUES (NULL, 'Testimonials Manager', 'Testimonials Manager Display Settings', '1', '1');
UPDATE configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();

SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Testimonials Manager';

INSERT INTO configuration VALUES (NULL, 'Number Of Testimonials to display in Testimonials Sidebox', 'MAX_DISPLAY_TESTIMONIALS_MANAGER_TITLES', '5', 'Set the number of testimonials to display in the Latest Testimonials box.', @t4, 1, NULL, now(), NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Testimonial Title Minimum Length', 'ENTRY_TESTIMONIALS_TITLE_MIN_LENGTH', '2', 'Minimum length of link title.', @t4, 2, NULL, now(), NULL, NULL), (NULL, 'Testimonial Text Minimum Length', 'ENTRY_TESTIMONIALS_TEXT_MIN_LENGTH', '10', 'Minimum length of Testimonial description.', @t4, 3, NULL, now(), NULL, NULL), (NULL, 'Testimonial Text Maximum Length', 'ENTRY_TESTIMONIALS_TEXT_MAX_LENGTH', '1000', 'Maximum length of Testimonial description.', @t4, 3, NULL, now(), NULL, NULL), (NULL, 'Testimonial Contact Name Minimum Length', 'ENTRY_TESTIMONIALS_CONTACT_NAME_MIN_LENGTH', '2', 'Minimum length of link contact name.', @t4, 4, NULL, now(), NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Display Truncated Testimonials in Sidebox', 'DISPLAY_TESTIMONIALS_MANAGER_TRUNCATED_TEXT', 'true', 'Display truncated text in sidebox', @t4, 5, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Length of truncated testimonials to display', 'TESTIMONIALS_MANAGER_DESCRIPTION_LENGTH', '150', 'If Display Truncated Testimonials in Sidebox is true - set the amount of characters to display from the Testimonials in the Testimonials Manager sidebox.', @t4, 6, NULL, now(), NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Number Of Testimonials to display on all testimonials page', 'MAX_DISPLAY_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS', '5', 'Set the number of testimonials to display on the all testimonials page.', @t4, 7, NULL, now(), NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Display Date Published on Testimonials page', 'DISPLAY_TESTIMONIALS_DATE_PUBLISHED', 'true', 'Display date published on testimonials page', @t4, 8, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Display View All Testimonials Link In Sidebox', 'DISPLAY_ALL_TESTIMONIALS_TESTIMONIALS_MANAGER_LINK', 'true', 'Display View All Testimonials Link In Sidebox', @t4, 9, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Display Add New Testimonial Link In Sidebox', 'DISPLAY_ADD_TESTIMONIAL_LINK', 'true', 'Display Add New Testimonial Link In Sidebox', @t4, 10, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Testimonial Image Width', 'TESTIMONIAL_IMAGE_WIDTH', '80', 'Set the Width of the Testimonial Image', @t4, 11, NULL, '2007-08-21 12:04:10', NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Testimonial Image Height', 'TESTIMONIAL_IMAGE_HEIGHT', '80', 'Set the Height of the Testimonial Image', @t4, 12, NULL, '2007-08-21 12:04:10', NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Testimonial Image Directory', 'TESTIMONIAL_IMAGE_DIRECTORY', 'testimonials/', 'Set the Directory for the Testimonial Image', @t4, 13, NULL, '2007-08-21 12:04:10', NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Display Company Name field', 'TESTIMONIALS_COMPANY', 'true', 'Display Company Name field', @t4, 14, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Display City field', 'TESTIMONIALS_CITY', 'true', 'Display City field', @t4, 15, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Display Country field', 'TESTIMONIALS_COUNTRY', 'true', 'Display Country field', @t4, 16, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Only registered customers may submit a testimonial', 'REGISTERED_TESTIMONIAL', 'true', 'Only registered customers may submit a testimonial', @t4, 17, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Display All Languages', 'TESTIMONIALS_DISPLAY_ALL_LANGUAGES', 'true', 'Display All Languages', @t4, 18, NULL, NOW(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Testimonial - Show Store Name and Address', 'TESTIMONIAL_STORE_NAME_ADDRESS', 'true', 'Include Store Name and Address', @t4, 19, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO configuration VALUES (NULL, 'Define Testimonial Status', 'DEFINE_TESTIMONIAL_STATUS', '1', 'Enable the Defined Testimonial Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', @t4, 20, NULL, now(), NULL, 'zen_cfg_select_option(array(''0'', ''1'', ''2'', ''3''),');
INSERT INTO configuration VALUES (NULL, 'Testimonial Manager Version', 'TM_VERSION', '1.5.2', 'Testimonial Manager version', @t4, 21, NULL, now(), NULL, NULL);

DROP TABLE IF EXISTS testimonials_manager;
CREATE TABLE testimonials_manager (
testimonials_id int(11) NOT NULL auto_increment,
language_id int(11) NOT NULL default '1',
testimonials_title varchar(64) NOT NULL default '',
testimonials_url VARCHAR( 255 ) NULL DEFAULT NULL,
testimonials_name text NOT NULL,
testimonials_image varchar(254) NOT NULL default '',
testimonials_html_text text,
testimonials_mail text NOT NULL,
testimonials_company VARCHAR( 255 ) NULL DEFAULT NULL,
testimonials_city VARCHAR( 255 ) NULL DEFAULT NULL,
testimonials_country VARCHAR( 255 ) NULL DEFAULT NULL,
testimonials_show_email char(1) default '0',
status int(1) NOT NULL default '0',
date_added datetime NOT NULL default '0000-00-00 00:00:00',
last_update datetime NULL default NULL,
PRIMARY KEY (testimonials_id)
) ENGINE=MyISAM;

INSERT INTO testimonials_manager VALUES (1, 1, 'Great', '', 'Clyde Designs', '', 'This is just a test submission to show you how it looks, great, eh?', '[email protected]', NULL, NULL, NULL, 0, 1, now(), NULL);

Hi Clyde, thanks heaps that worked and it does look great. Obviously didn't like ) TYPE=MyISAM as it worked with ) ENGINE=MyISAM.
Very please and will put onto live site now :clap:

10 Apr 2011, 10:20 PM
#1239
auctionsbay avatar

auctionsbay

New Zenner

Join Date:
Mar 2011
Posts:
15
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

Hi there.
Installed Testemonials manager but for some reason it does't display images neither links to the sites.
When I tray to upload image it always says Image Doesn't Exist.
Please help.
https://www.auction-bay.com (site in russian language)

10 Apr 2011, 11:47 PM
#1240
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

auctionsbay:

Hi there.
Installed Testemonials manager but for some reason it does't display images neither links to the sites.
When I tray to upload image it always says Image Doesn't Exist.
Please help.
https://www.auction-bay.com (site in russian language)

From the readme.file
( Administrators may optionally add an image as well as a link to the author's site. )

admin -> tools -> testimonial manager

Either edit an existing testimonial or create a new one.