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

Testimonial Manager Support Thread

Views: 277,984

Results 1,361 to 1,380 of 1,502
2 Apr 2012, 7:55 PM
#1361
mdo82 avatar

mdo82

New Zenner

Join Date:
Apr 2010
Posts:
39
Plugin Contributions:
0

Testimonial Manager Support Thread

I am currently busy with my site to convert to 139, but I am getting an error when installing this script.

I am currently working in Xampp for my site to get right before I go live

What am I doing wrong?

I get also this error by installing a new version of the software.
And the SQL version of Xampp is 5.5.20

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.

Please help!!

2 Apr 2012, 11:07 PM
#1362
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Testimonial Manager Support Thread

mdo82:

I am currently busy with my site to convert to 139, but I am getting an error when installing this script.

I am currently working in Xampp for my site to get right before I go live

What am I doing wrong?

I get also this error by installing a new version of the software.
And the SQL version of Xampp is 5.5.20

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.


> I am currently busy with my site to convert to 139, but I am getting an error when installing this script.So you are installing testimonials manager on zen cart v1.3.9 correct? 

The problem you are having is the engine type, TYPE=MyISAM.
in the install.sql. To correct this just remove the code
 ) TYPE=MyISAM ; to  show );

Just copy this install.sql

```php
SELECT @t4:=configuration_group_id
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();

SELECT @t4:=configuration_group_id
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)
);

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);
2 Apr 2012, 11:21 PM
#1363
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

mdo82:

I am currently busy with my site to convert to 139, but I am getting an error when installing this script.

I am currently working in Xampp for my site to get right before I go live

What am I doing wrong?

I get also this error by installing a new version of the software.
And the SQL version of Xampp is 5.5.20

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.

> 
> Please help!!

TYPE=MyISAM

use ENGINE instead

ENGINE=MyISAM

3 Apr 2012, 4:56 PM
#1364
mdo82 avatar

mdo82

New Zenner

Join Date:
Apr 2010
Posts:
39
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

gilby:

TYPE=MyISAM

> use ENGINE instead
> ```
ENGINE=MyISAM

Thank you that was the trick to solve it.
But I'm against another problem.

In my Live store, I have under tools a button for testimonial manager , I miss this in version 1.39 and I can see him even to activate the testmonial sitebox.

Do I missing something?

I have also try the code from countrycharm

6 Apr 2012, 2:47 PM
#1365
andy_c27 avatar

andy_c27

Zen Follower

Join Date:
Oct 2010
Location:
United Kingdom
Posts:
477
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

Could I ask .How difficult would it be to add the 5 star system to testimonials. As I find it so much easier than reviews

thanks

6 Apr 2012, 3:55 PM
#1366
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Testimonial Manager Support Thread

lat9:

The reason that the customer email is not being sent is this line in /includes/languages/english/YOUR_TEMPLATE/testimonials_add.php:

define('EMAIL_SUBJECT', 'Your Testimonial Submission At ' . STORE_NAME . '.' . "\n\n");

> 
> ```
define('EMAIL_SUBJECT', 'Your Testimonial Submission At ' . STORE_NAME . '.');

lat9:

I've got a multilingual site and enabled the "Display All Languages" in the Testimonial Manager admin section (TESTIMONIALS_DISPLAY_ALL_LANGUAGES is the database key). I had a couple of test testimonials in English and switched to a Spanish display ... and none were displayed. Turns out that the database key (above) isn't used at all.

Here's an updated version of /includes/modules/pages/display_all_testimonials/header_php.php that corrects the problem:

<?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.2 4-16-2010 Clyde Jones $ */ require(DIR_WS_MODULES . 'require_languages.php'); $breadcrumb->add(NAVBAR_TITLE); $which_languages = (TESTIMONIALS_DISPLAY_ALL_LANGUAGES == 'true') ? '' : (" and language_id = '" . (int)$_SESSION['languages_id'] . "'"); $testimonials_query_raw = "select * from " . TABLE_TESTIMONIALS_MANAGER . " where status = 1" . $which_languages . " order by date_added DESC, testimonials_title"; $testimonials_split = new splitPageResults($testimonials_query_raw, MAX_DISPLAY_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS); //EOF ``` > **DivaVocals:** > > and here is the full corrected script... > > ``` SELECT @t4:=configuration_group_id 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(); SELECT @t4:=configuration_group_id 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) ); 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); /* zencart 1.5 mods */ INSERT INTO admin_pages (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order) VALUES ('TestimonialsManager', 'BOX_TOOLS_TESTIMONIALS_MANAGER', 'FILENAME_TESTIMONIALS_MANAGER', '', 'tools', 'Y', 35); INSERT INTO admin_pages (page_key,language_key,main_page,page_params,menu_key,display_on_menu,sort_order) VALUES ('configTestimonialsManager','BOX_CONFIGURATION_TESTIMONIALS_MANAGER','FILENAME_CONFIGURATION',CONCAT('gID=',@t4), 'configuration', 'Y', @t4); ```Oh and if anything I've posted is wrong, I am happy to have someone MUCH wiser than I correct me.. :laugh: A new update has been submitted in the downloads for the above. Updated the new_install.sql because TYPE is deprecated for engine. Also updated and fix the Display All Languages header_php.php file to display on a multilingual site. Also fix a bug for not sending out emails after a customer submits a Testimonial. Also we are giving thanks to Diva and lat9 for there support in the updates. Thank You! :yes:
8 Apr 2012, 2:14 AM
#1367
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Testimonial Manager Support Thread

countrycharm:

A new update has been submitted in the downloads for the above.
Updated the new_install.sql because TYPE is deprecated for
engine. Also updated and fix the Display All Languages header_php.php file
to display on a multilingual site. Also fix a bug for not sending out emails after a customer submits a Testimonial.
Also we are giving thanks to Diva and lat9 for there support in the updates.
Thank You! :yes:

An update to Testimonial Manager that I submitted recently has been activated, and is now available in the downloads. Details of the Testimonial Manager update are as follows:

Title : Testimonial Manager
Version : 1.5.3c

8 Apr 2012, 2:47 AM
#1368
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

There is no install.txt or upgrade.txt in the 1.5.0 folder. I am upgrading--what do I do differently than a fresh install? I've edited a few files so that customers' last names don't show up on their testimonials and I don't want to lose those changes...

8 Apr 2012, 4:42 PM
#1369
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Testimonial Manager Support Thread

WebKat:

There is no install.txt or upgrade.txt in the 1.5.0 folder. I am upgrading--what do I do differently than a fresh install? I've edited a few files so that customers' last names don't show up on their testimonials and I don't want to lose those changes...
I just downloaded a copy of Testimonial Manager Version : 1.5.3c
and it has the install.txt inside the folder of zen_1.5.0. You have to open the install.txt up and read it NEW AND UPGRADING INSTALLATION:

8 Apr 2012, 4:55 PM
#1370
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Testimonial Manager Support Thread

countrycharm:

I just downloaded a copy of Testimonial Manager Version : 1.5.3c
and it has the install.txt inside the folder of zen_1.5.0. You have to open the install.txt up and read it NEW AND UPGRADING INSTALLATION:

For all of you who doesn't know how......

UPGRADING FROM PREVIOUS VERSIONS OF TESTIMONIALS MANAGER INSTALLATION:

  1. Testimonials Manager Module runs great, but if you have a TEST SERVER try it out before going live.
  2. The files in admin/includes/boxes/extra_boxes/ is obsolete and should be deleted or rename to something else until you are confident all is well.
  3. A define was added to admin/includes/extra_datafiles/testimonials_manager.php and to
    amin/includes/languages/english/extra_definitions/testimonials_manager.php to make this work on zen cart 1.5.0.
  4. Go into phpmyadmin and BACKUP THE DATABASE BEFORE INSTALLING.
  5. Ensure you have carried out step 4)!
  6. This is for v1.5.0 only. There has been a define added so you will have to re-upload the files
    admin/includes/extra_definitions/testimonials_manager.php
    admin/includes/languages/english/extra_definitions/testimonials_manager.php
  7. Run the included install_testimonials_manager 1.3.x_Upgrade.sql using the Zen-Cart Sql Patches tool
    (admin -> tools -> install sql patches) For best results, copy-and-paste the code into the query field and press 'Send'.
8 Apr 2012, 6:24 PM
#1371
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

Ok so what about the sql patch? The 139 folder has an upgrade folder with a upgrade_testimonial_manager.sql file in it... there is no upgrade sql file in the 150 folder. What do I do? Run the install patch? Run the 139 upgrade patch? I really think this would have been a much better release if it was consistent between the two ZC versions. It's very confusing when you read a file telling you to open a file that doesn't exist, for example.

8 Apr 2012, 7:20 PM
#1372
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Testimonial Manager Support Thread

WebKat:

Ok so what about the sql patch? The 139 folder has an upgrade folder with a upgrade_testimonial_manager.sql file in it... there is no upgrade sql file in the 150 folder. What do I do? Run the install patch? Run the 139 upgrade patch? I really think this would have been a much better release if it was consistent between the two ZC versions. It's very confusing when you read a file telling you to open a file that doesn't exist, for example.

This is all in the folder zen_1.5.0.
7) Run the included install_testimonials_manager 1.3.x_Upgrade.sql using the Zen-Cart Sql Patches tool
(admin -> tools -> install sql patches) For best results, copy-and-paste the code into the query field and press 'Send'.

8 Apr 2012, 7:34 PM
#1373
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

The part that made this whole thing frustrating was the readme in the main folder of the unzipped file:

INSTALLATION:

See the install text depending on what version you are installing:

install.txt
upgrade.txt
uninstall.txt

This should be made more clear, since it is NOT the correct directions for 1.5.0.

And the bit you just quoted is for upgrading ZEN CART from 1.3x to 1.5.0, right? If not it's confusingly worded. I've never used ZC 1.3.x; I started out my whole Zen Cart odyssey with ZC 1.5.0--so in my case, what file do I run? If this is the one I'm supposed to run it's badly named: install_testimonials_manager new_install.sql since this is not a new install--I already have Testimonial Manager installed. On 1.5.0.

Actually, I can't even find that file anywhere. I found a 1.3.x_Upgrade.sql (which sounds wrong since I'm not, and never have been, on 1.3.x) and new_install.sql (which sounds wrong, since it's not a new install). So the instructions are not clear at ALL about how to upggrade Testimonial Manager under a ZC 1.5.0 installation. The directions in the 1.3.9 folder may be clearer, but they don't apply to me so that doesn't matter much.

8 Apr 2012, 7:41 PM
#1374
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Testimonial Manager Support Thread

See if these install instructions help:

Notes:

  1. BACKUP THE DATABASE BEFORE INSTALLING!!!
  2. You should test this on TEST SITE before going live
  3. Two files were added to make this work on zen cart 1.5.
  • admin/includes/extra_datafiles/testimonials_manager.php
  • admin/includes/languages/english/extra_definitions/testimonials_manager.ph
    New Install Instructions
  1. Unzip the contribution.
  2. Open the New_installation folder
  3. Before uploading change the YOUR_TEMPLATE folders to match the name of your custom template.
  • includes/languages/english/extra_definitions/YOUR_TEMPLATE
  • includes/languages/english/YOUR_TEMPLATE
  • includes/languages/english/html_includes/YOUR_TEMPLATE
  • includes/modules/sideboxes/YOUR_TEMPLATE
  • includes/templates/YOUR_TEMPLATE
  • (The files are arranged in the same structure as Zen Cart so you can FTP the admin, images and includes folders to your server.)
  1. Login in to your admin panel admin -> tools -> layout boxes contoller and activate the new sidebox.

  2. Run the included new_install.sql using the Zen-Cart Sql Patches tool (admin -> tools -> install sql patches).
    Upgrading Testimonial Manager from 1.3x compatible version to v1.5.0 ready version

  3. If you are upgrading from an older Zen Cart v1.3.x compatible version of Testimonial Manager run the included 1.3.x_Upgrade.sql using the Zen-Cart Sql Patches tool (admin -> tools -> install sql patches)

For best results, copy-and-paste the code into the query field and press 'Send'.
2. Delete the files in admin/includes/boxes/extra_boxes/ (these files are now are obsolete and should be deleted in their entirety!!)

8 Apr 2012, 8:23 PM
#1375
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

Ok so the difference is that the *previous Testimonials Manager *was for 1.3.9 and the new one is for 1.5.0, and that is the upgrade they're referring to? That makes sense written out that way, but is not clear at all in the text file that came in the zip for the new version. Those instructions made it look like this is what you should do if you're upgrading ZC from 1.3.x to 1.5.0.

I hope I'm not coming across as cranky or anything (I'm not cranky, I promise!)--I am legitimately trying to help make the upgrade package more user-friendly which will lead to fewer people coming to the support thread asking questions, and less time for the developers to spend answering them. I have some suggestions for how to make this package better and confusion-proof.

Basically I recommend this:

The zen_1.3.9 folder is very well laid out:

Folder structure:


/new_installation
/admin
/images
/includes
install_testimonials_manager.sql

/upgrade
/admin
/images
/includes
upgrade_testimonial_manager.sql

install.sql
install.txt
uninstall.sql
uninstall.txt
upgrade.txt

That is so clear and unconfusing. The filenames are intuitive and it's obvious what they mean/do. There is a separate folder for install and upgrade (even though they likely have many duplicate files). This is a well put together package.

The zen_1.5.0 folder, on the other hand, is much less organized and more confusing:

Folder structure:

/admin
/images
/includes
1.3.x_Upgrade.sql
install.txt
new_install.sql
uninstall.sql
uninstall.txt

  • The upgrade instructions are buried in a rather muddy way within the install instructions file--nonintuitive.
  • The sql patch looks like it's for a different ZC version--nonintuitive.
  • There is no obvious breakdown of which files need to be uploaded for an upgrade (probably some subset of the total new install files); a separate folder like the 1.3.9 folder would solve this cleanly. Putting the upgrade sql patch in that folder would make things much clearer as well.
  • install.txt includes the instruction: "3) Run the included install_testimonials_manager new_install.sql using the Zen-Cart Sql Patches tool (admin -> tools -> install sql patches) for New Installs" yet there is no file with that name in the zipped package--erroneous text.
  • Step 4 prefix "Upgrading from 1.3x to zen cart v1.5.0" is unclear--it should be reworded to make it clear that it's referring to the module compatibility version, not to your ZC install version--unclear.
  • I'd rename "1.3.x_Upgrade.sql" to just "upgrade.sql" or "1-5-3c-upgrade.sql" or similar for clarity.

Sorry to be so long-winded, I just wanted to be extremely clear about what I am recommending be changed. If the package were set up the way I describe, I would not have needed to ask any questions in this thread, and would have been able to simply upgrade my module on my own, confident that I had done it correctly. I hope my advice is taken in the spirit in which it is offered and not as a slam of any kind.

If the package were reorganized using the 1.3.9 folder as a model for the 1.5.0 folder, and the instructions were broken down into install vs upgrade, etc--the changes I've suggested--and then upload that newly reorganized zip to the addons page, I bet you will experience many fewer support questions in this thread, and fewer frustrated users (it's always frustrating when you have to wait for your support question to be answered, in the meantime you can't proceed with your install/upgrade). Between the changes I've suggested and making the clarifications that the previous post made, this would be a much stronger release.

I apologize if this has sounded overly critical--it's just that I'm trying to be clear. When you've written instructions yourself, they always make sense to you. It's hard to gauge how a 3rd party will do with them until one tells you. You've gone 50% of the way with the well-organized 1.3.9 folder. Take it the rest of the way and organize the 1.5.0 folder just as well and you'll be golden. It's a great module--I have it installed on two different sites and really like it.

8 Apr 2012, 8:32 PM
#1376
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

By the way, I hope it isn't considered bad form, but if you don't want your customers' last names to show up on their testimonials (privacy issues) you can follow these edits that I made to my installation which makes it just show the first name:

File to edit:
/includes/modules/pages/testimonials_add/header_php.php

Replace the default code to this new code; line numbers may be approximate--make sure the one you're replacing is very similar to the replacement code:

Line 126 ```
$account_query = "select customers_firstname, customers_email_address

Line 132	 ```
$extra_info=email_collect_extra_info($name,$email_address, $account->fields['customers_firstname'] . ' ' . $account->fields[''] , $account->fields['customers_email_address'] );

Line 150 ```
$sql = "SELECT c.customers_id, c.customers_firstname, c.customers_email_address, c.customers_default_address_id, c.customers_telephone, ab.customers_id, ab.entry_street_address, ab.entry_company, ab.entry_city, ab.entry_postcode, ab.entry_zone_id, ab.entry_country_id, z.zone_id, z.zone_code, cn.countries_id, cn.countries_name FROM " . TABLE_CUSTOMERS . " c, " . TABLE_ADDRESS_BOOK . " ab, " . TABLE_ZONES . " z, " . TABLE_COUNTRIES . " cn WHERE c.customers_id = :customersID AND ab.customers_id = :customersID AND ab.entry_country_id = cn.countries_id";

Line 155	```
$testimonials_name = $check_customer->fields['customers_firstname'] . ' ' . $check_customer->fields[''];

That should do it. It should never call their last name in the first place, so you don't need to "hide" it in the displayed testimonial, since that bit of information isn't there to begin with.

8 Apr 2012, 9:12 PM
#1377
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Testimonial Manager Support Thread

And if you look JUST ABOVE your post I re-wrote the instructions to help make it clear what to do.. DO THEY make more sense to you?? (that would help the current author who is doing this in their FREE TIME)

or

Since you seem to have some very good and strong ideas here, how about contributing to the community by making the very changes you suggest including re-writing the readme instructions.. My first Zen Cart contributions were more about a reorganization of the files and a re-write of the readme files and less about upgrades and improvements.. why not make these changes you suggest and re-submit this add-on??

WebKat:

Ok so the difference is that the *previous Testimonials Manager *was for 1.3.9 and the new one is for 1.5.0, and that is the upgrade they're referring to? That makes sense written out that way, but is not clear at all in the text file that came in the zip for the new version. Those instructions made it look like this is what you should do if you're upgrading ZC from 1.3.x to 1.5.0.

I hope I'm not coming across as cranky or anything (I'm not cranky, I promise!)--I am legitimately trying to help make the upgrade package more user-friendly which will lead to fewer people coming to the support thread asking questions, and less time for the developers to spend answering them. I have some suggestions for how to make this package better and confusion-proof.

Basically I recommend this:

The zen_1.3.9 folder is very well laid out:

That is so clear and unconfusing. The filenames are intuitive and it's obvious what they mean/do. There is a separate folder for install and upgrade (even though they likely have many duplicate files). This is a well put together package.

The zen_1.5.0 folder, on the other hand, is much less organized and more confusing:

  • The upgrade instructions are buried in a rather muddy way within the install instructions file--nonintuitive.
  • The sql patch looks like it's for a different ZC version--nonintuitive.
  • There is no obvious breakdown of which files need to be uploaded for an upgrade (probably some subset of the total new install files); a separate folder like the 1.3.9 folder would solve this cleanly. Putting the upgrade sql patch in that folder would make things much clearer as well.
  • install.txt includes the instruction: "3) Run the included install_testimonials_manager new_install.sql using the Zen-Cart Sql Patches tool (admin -> tools -> install sql patches) for New Installs" yet there is no file with that name in the zipped package--erroneous text.
  • Step 4 prefix "Upgrading from 1.3x to zen cart v1.5.0" is unclear--it should be reworded to make it clear that it's referring to the module compatibility version, not to your ZC install version--unclear.
  • I'd rename "1.3.x_Upgrade.sql" to just "upgrade.sql" or "1-5-3c-upgrade.sql" or similar for clarity.

Sorry to be so long-winded, I just wanted to be extremely clear about what I am recommending be changed. If the package were set up the way I describe, I would not have needed to ask any questions in this thread, and would have been able to simply upgrade my module on my own, confident that I had done it correctly. I hope my advice is taken in the spirit in which it is offered and not as a slam of any kind.

If the package were reorganized using the 1.3.9 folder as a model for the 1.5.0 folder, and the instructions were broken down into install vs upgrade, etc--the changes I've suggested--and then upload that newly reorganized zip to the addons page, I bet you will experience many fewer support questions in this thread, and fewer frustrated users (it's always frustrating when you have to wait for your support question to be answered, in the meantime you can't proceed with your install/upgrade). Between the changes I've suggested and making the clarifications that the previous post made, this would be a much stronger release.

I apologize if this has sounded overly critical--it's just that I'm trying to be clear. When you've written instructions yourself, they always make sense to you. It's hard to gauge how a 3rd party will do with them until one tells you. You've gone 50% of the way with the well-organized 1.3.9 folder. Take it the rest of the way and organize the 1.5.0 folder just as well and you'll be golden. It's a great module--I have it installed on two different sites and really like it.

8 Apr 2012, 9:55 PM
#1378
webkat avatar

webkat

Zen Follower

Join Date:
Jan 2012
Location:
New England
Posts:
238
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

DivaVocals:

And if you look JUST ABOVE your post I re-wrote the instructions to help make it clear what to do.. DO THEY make more sense to you?? (that would help the current author who is doing this in their FREE TIME)
Yes, I know--I acknowledged that and pointed out that your instructions were far easier to follow, and suggested that they change the instructions to be more like yours. Don't know why you're getting all worked up. I specifically said that with those instructions and better folder structure I'd have had no questions at all about the upgrade.
DivaVocals:

or

Since you seem to have some very good and strong ideas here, how about contributing to the community by making the very changes you suggest including re-writing the readme instructions.. My first Zen Cart contributions were more about a reorganization of the files and a re-write of the readme files and less about upgrades and improvements.. why not make these changes you suggest and re-submit this add-on??
...is that kosher? I mean that seems like it could be stepping on some toes. Also, I don't have enough information. For example, I don't know which files need to be uploaded for upgrading and which can be left as the old versions.

8 Apr 2012, 10:12 PM
#1379
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Testimonial Manager Support Thread

WebKat:

Yes, I know--I acknowledged that and pointed out that your instructions were far easier to follow, and suggested that they change the instructions to be more like yours. Don't know why you're getting all worked up. I specifically said that with those instructions and better folder structure I'd have had no questions at all about the upgrade.Worked up?? Really?? that's what you got out of my post??? I always FAIL to understand how folks read emotions and sentiments into posts that JUST AREN'T there..:no: I just asked you a question because honestly in that long post you wrote I didn't see anything that looked like you had seen what I wrote.. (which is why I asked the question..) But okay.. thanks for the response..

WebKat:

...is that kosher? I mean that seems like it could be stepping on some toes.
It's open source.. which means it's OPEN to anyone who wants to volunteer to contribute.. Now if you want to make sure you're not stepping on anyone's toes you can approach it one of two ways..

  1. Contact the author and offer to help by implementing the suggestions you made. You guys can coordinate how you will work together..

**OR

**
2. post a message to the current author in the support thread of your desire/intent to make the changes you suggest.. Then again you guys can coordinate and decide how you will work together..

This is PRECISELY how I got started submitting updates to add-ons.. I offered publicly to help the person who was re-writing IH2 to be PHP 5.3 compatible. I offered to take on re-writing the user documents and reorganizing the installation files. It's how the current "team" of folks working on IH4 got together..

So YES you sure can do this! :yes:

WebKat:

Also, I don't have enough information. For example, I don't know which files need to be uploaded for upgrading and which can be left as the old versions.I thought this was made clear in the sample instructions I posted.. Are you saying it's NOT??

Either way if you decide to contact the current author, you can work on this TOGETHER..

8 Apr 2012, 10:33 PM
#1380
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Testimonial Manager Support Thread

DivaVocals:

Worked up?? Really?? that's what you got out of my post??? I always FAIL to understand how folks read emotions and sentiments into posts that JUST AREN'T there..:no: I just asked you a question because honestly in that long post you wrote I didn't see anything that looked like you had seen what I wrote.. (which is why I asked the question..) But okay.. thanks for the response..

It's open source.. which means it's OPEN to anyone who wants to volunteer to contribute.. Now if you want to make sure you're not stepping on anyone's toes you can approach it one of two ways..

  1. Contact the author and offer to help by implementing the suggestions you made. You guys can coordinate how you will work together..

**OR

**

  1. post a message to the current author in the support thread of your desire/intent to make the changes you suggest.. Then again you guys can coordinate and decide how you will work together..

This is PRECISELY how I got started submitting updates to add-ons.. I offered publicly to help the person who was re-writing IH2 to be PHP 5.3 compatible. I offered to take on re-writing the user documents and reorganizing the installation files. It's how the current "team" of folks working on IH4 got together..

So YES you sure can do this! :yes:

I thought this was made clear in the sample instructions I posted.. Are you saying it's NOT??

Either way if you decide to contact the current author, you can work on this TOGETHER..

I will take what WebKat said into consideration. The install.txt could be bettered outline. to a upgrade.txt. Thanks Diva for that.

I've never used ZC 1.3.x; I started out my whole Zen Cart odyssey with ZC 1.5.0--so in my case, what file do I run? If this is the one I'm supposed to run it's badly named: install_testimonials_manager new_install.sql since this is not a new install--I already have Testimonial Manager installed. On 1.5.0.If you where already on a zen cart v1.5.0 and had Testimonials Manager installed why are you trying to install it again? That is what doesn't make since.