I apologize. I should have looked at the thread title, but I'm following the link listed in your attachments.
**runs to find the right thread**:lamo:
Thanks,
Jen
Printable View
I apologize. I should have looked at the thread title, but I'm following the link listed in your attachments.
**runs to find the right thread**:lamo:
Thanks,
Jen
Clyde,
Is it possible to provide support for "Restrict testimonial submissions to registered customers only" in future release? This is another option to restrict bogus testimonials without using capcha.
Thanks for the great mod.
The testimonial manager from Nicholas (zencartbuilder.com) supports this feature but he's no longer around. I do have a copy of it that we purchased in 2006 if that will help.
Somehow, I am missing that configuration options. Is it safe to run this upgrade SQL again (or is going to wipe out all testimonials already in the database)?
Code:#Testimonials Manager upgrade SQL
# For Zen-Cart 1.3.8
# Last Updated: 3/26/2008
# For best results, run this sql patch using the Zen-Cart Sql Patches tool
# (admin -> tools -> install sql patches)
# Cut-and-paste the code into the query field and press 'Send.
# New configuration options are added to the zen_configuration table.
SET @configuration_group_id=0;
SELECT @configuration_group_id:=configuration_group_id
FROM configuration_group
WHERE configuration_group_title= 'Testimonials Manager'
LIMIT 1;
DELETE FROM configuration WHERE configuration_group_id = @configuration_group_id;
DELETE FROM configuration WHERE configuration_key = 'DEFINE_TESTIMONIAL_STATUS';
DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id;
INSERT INTO configuration_group VALUES (NULL, 'Testimonials Manager', 'Testimonials Manager Display Settings', '1', '1');
SET @configuration_group_id=last_insert_id();
UPDATE configuration_group SET sort_order = @configuration_group_id WHERE configuration_group_id = @configuration_group_id;
INSERT INTO configuration VALUES (NULL, 'Number Of Testimonials to display in Latest Testimonials box', 'MAX_DISPLAY_TESTIMONIALS_MANAGER_TITLES', '5', 'Set the number of testimonials to display in the Latest Testimonials box.', @configuration_group_id, 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.', @configuration_group_id, 2, NULL, now(), NULL, NULL), (NULL, 'Testimonial Text Minimum Length', 'ENTRY_TESTIMONIALS_TEXT_MIN_LENGTH', '10', 'Minimum length of link description.', @configuration_group_id, 3, NULL, now(), NULL, NULL), (NULL, 'Testimonial Contact Name Minimum Length', 'ENTRY_TESTIMONIALS_CONTACT_NAME_MIN_LENGTH', '2', 'Minimum length of link contact name.', @configuration_group_id, 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', @configuration_group_id, 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.', @configuration_group_id, 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.', @configuration_group_id, 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', @configuration_group_id, 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', @configuration_group_id, 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', @configuration_group_id, 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', @configuration_group_id, 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', @configuration_group_id, 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', @configuration_group_id, 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', @configuration_group_id, 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', @configuration_group_id, 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', @configuration_group_id, 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', @configuration_group_id, 17, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO `configuration` VALUES (NULL, 'Define Testimonial', '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', 25, 999, NULL, now(), NULL, 'zen_cfg_select_option(array(''0'', ''1'', ''2'', ''3''),');
INSERT INTO `configuration` VALUES (NULL, 'Product option type Select', 'PRODUCTS_OPTIONS_TYPE_SELECT', '0', 'The number representing the Select type of product option.', 0, NULL, NULL, now(), NULL, NULL);
INSERT INTO `configuration` VALUES (NULL, 'Upload prefix', 'UPLOAD_PREFIX', 'upload_', 'Prefix used to differentiate between upload options and other options', 0, NULL, NULL, now(), NULL, NULL);
INSERT INTO `configuration` VALUES (NULL, 'Text prefix', 'TEXT_PREFIX', 'txt_', 'Prefix used to differentiate between text option values and other option values', 0, NULL, NULL, now(), NULL, NULL);
INSERT INTO `configuration` VALUES (NULL, 'Image Handler Version', 'IH_VERSION', '2.0', 'This is used by image handler to check if the database is up to date with uploaded image handler files.', 0, 100, NULL, now(), NULL, 'zen_cfg_textarea_small(');
ALTER TABLE `testimonials_manager` ADD `language_id` INT( 11 ) NOT NULL DEFAULT '0' AFTER `testimonials_id` ;
UPDATE `testimonials_manager` SET `language_id` = '1' WHERE `language_id` =0 ;
Version 1.5.0 of Testimonial Manager is now available in the downloads section
Updated to provide better accessibility for those who use assistive devices or text-only browsers.
Testimonial Manager admin options:
NEW * Testimonial Text Maximum Length
NEW * Testimonial - Show Store Name and Address
And for those using captcha here's the 1.5 fix.
Please note: this will work only with version 1.5.0 of Testimonial Manager.
Make sure you have the captcha Mod Installed
Upgrade to the 1.5.0 version of Testimonial Manager.
Unzip the file, Rename the YOUR_TEMPLATE folder to match the name of your custom template, upload the entire includes folder to your server.
Attachment 5155
Hello Clyde,
I have just upgraded smoothly, cheers.
Only 2 things i don't get:
- on error, there is no $testimonials_title or $testimonials_html_text in the tpl_testimonials_add_default.php defined so if an error occurs those fields need to be retyped.
Is there a specific reason to choose so? (i found adding those works out just fine?)
- in the testimonials_add.css there are entries to background url *.png but those do not exist. Did i miss something in the primary install or are those entries in error?
Thanks,
Jeroen
I just downloaded and installed Testimonials Manager today - works like a charm but i found an error in the "install_testimonials_manager.txt" instructional file.
Under the Metatags section, there appears to be a missing line that was generating an error for me. I found the missing line which was in an earlier post in the forum. The above mentioned file was missing this:
Please click here for the correct and complete metatag code.PHP Code:
$testimonial_title = 'Testimonial - ';
For version 1.5.0 (the most recent)
1. Here's the section from tpl_testimonials_add_default.php for those two section (lines 94 - 111)
2. This is the css for testimonials_add.css see no references to background url *.png'sPHP Code:
<li>
<label class="inputLabel" for="testimonials_title"><?php echo (($error == true && $entry_title_error == true) ? TEXT_TESTIMONIALS_TITLE . zen_image($template->get_template_dir(RETURN_WARNING_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_WARNING_IMAGE, RETURN_WARNING_IMAGE_ALT, RETURN_WARNING_IMAGE_WIDTH, RETURN_WARNING_IMAGE_HEIGHT) : TEXT_TESTIMONIALS_TITLE . zen_image($template->get_template_dir(RETURN_REQUIRED_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_REQUIRED_IMAGE, RETURN_REQUIRED_IMAGE_ALT, RETURN_REQUIRED_IMAGE_WIDTH, RETURN_REQUIRED_IMAGE_HEIGHT)); ?></label>
<?php echo (($error == true && $entry_title_error == true) ? zen_draw_input_field('testimonials_title', '', 'size="25" id="testimonials_title"') . ERROR_TESTIMONIALS_TITLE_REQUIRED : zen_draw_input_field('testimonials_title', '', 'size="25" id="testimonials_title"')); ?>
</li>
<?php echo TEXT_TESTIMONIALS_DESCRIPTION_INFO ; ?>
<?php if ($error == true && $entry_description_error == true) { ?>
<li>
<label class="inputLabel" for="testimonials_html_text"><?php echo TEXT_TESTIMONIALS_DESCRIPTION . zen_image($template->get_template_dir(RETURN_WARNING_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_WARNING_IMAGE, RETURN_WARNING_IMAGE_ALT, RETURN_WARNING_IMAGE_WIDTH, RETURN_WARNING_IMAGE_HEIGHT); ?></label>
<?php echo zen_draw_textarea_field('testimonials_html_text', '30', '7', '', 'id="testimonials_html_text"') . ERROR_TESTIMONIALS_DESCRIPTION_REQUIRED; ?>
</li>
<?php } else { ?>
<?php if ($error == true && $entry_description_big_error == true) { ?>
<li>
<label class="inputLabel" for="testimonials_html_text"><?php echo TEXT_TESTIMONIALS_DESCRIPTION . zen_image($template->get_template_dir(RETURN_WARNING_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_WARNING_IMAGE, RETURN_WARNING_IMAGE_ALT, RETURN_WARNING_IMAGE_WIDTH, RETURN_WARNING_IMAGE_HEIGHT); ?></label>
<?php echo zen_draw_textarea_field('testimonials_html_text', '30', '7', '', 'id="testimonials_html_text"') . ERROR_TESTIMONIALS_TEXT_MAX_LENGTH; ?>
</li>
<?php } else { ?>
<li>
<label class="inputLabel" for="testimonials_html_text"><?php echo TEXT_TESTIMONIALS_DESCRIPTION . zen_image($template->get_template_dir(RETURN_REQUIRED_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_REQUIRED_IMAGE, RETURN_REQUIRED_IMAGE_ALT, RETURN_REQUIRED_IMAGE_WIDTH, RETURN_REQUIRED_IMAGE_HEIGHT); ?></label>
<?php echo zen_draw_textarea_field('testimonials_html_text', '30', '7', '', 'id="testimonials_html_text"'); ?>
</li>
<?php }
}
?>
Code:fieldset {
padding: 0.5em;
margin: 0.5em 0;
display:block;
border:1px solid #000;
}
fieldset ol {
padding: .5em .5em 0 .5em;
list-style: none;
}
fieldset li {
padding-bottom: .5em;
}
fieldset #personal, fieldset #order, fieldset #write{
padding:0;
border:1px solid #000;
border-width: 1px 0 1px 0;
}
legend {
padding: 0.3em;
font-size: 1.1em;
color: #000;
font-weight:bold;
}
select {
margin: 0.1em;
}
textarea {
margin: auto;
padding:0.5em;
display: inline;
width: 40%;
border:1px solid #B6ABD5;
overflow:auto;
}
label.inputLabel {
width: 11em;
float: left;
color: #000;
}
yes, so i changed the php to this:1. Is there a particular reason not to do so? (ie, did i introduce drawbacks?)PHP Code:
<li>
<label class="inputLabel" for="testimonials_title"><?php echo (($error == true && $entry_title_error == true) ? TEXT_TESTIMONIALS_TITLE . zen_image($template->get_template_dir(RETURN_WARNING_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_WARNING_IMAGE, RETURN_WARNING_IMAGE_ALT, RETURN_WARNING_IMAGE_WIDTH, RETURN_WARNING_IMAGE_HEIGHT) : TEXT_TESTIMONIALS_TITLE . zen_image($template->get_template_dir(RETURN_REQUIRED_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_REQUIRED_IMAGE, RETURN_REQUIRED_IMAGE_ALT, RETURN_REQUIRED_IMAGE_WIDTH, RETURN_REQUIRED_IMAGE_HEIGHT)); ?></label>
<?php echo (($error == true && $entry_title_error == true) ? zen_draw_input_field('testimonials_title', '$testimonials_title', 'size="25" id="testimonials_title"') . ERROR_TESTIMONIALS_TITLE_REQUIRED : zen_draw_input_field('testimonials_title', '$testimonials_title', 'size="25" id="testimonials_title"')); ?>
</li>
<?php echo TEXT_TESTIMONIALS_DESCRIPTION_INFO ; ?>
<?php if ($error == true && $entry_description_error == true) { ?>
<li>
<label class="inputLabel" for="testimonials_html_text"><?php echo TEXT_TESTIMONIALS_DESCRIPTION . zen_image($template->get_template_dir(RETURN_WARNING_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_WARNING_IMAGE, RETURN_WARNING_IMAGE_ALT, RETURN_WARNING_IMAGE_WIDTH, RETURN_WARNING_IMAGE_HEIGHT); ?></label>
<?php echo zen_draw_textarea_field('testimonials_html_text', '30', '7', '$testimonials_html_text', 'id="testimonials_html_text"') . ERROR_TESTIMONIALS_DESCRIPTION_REQUIRED; ?>
</li>
<?php } else { ?>
<?php if ($error == true && $entry_description_big_error == true) { ?>
<li>
<label class="inputLabel" for="testimonials_html_text"><?php echo TEXT_TESTIMONIALS_DESCRIPTION . zen_image($template->get_template_dir(RETURN_WARNING_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_WARNING_IMAGE, RETURN_WARNING_IMAGE_ALT, RETURN_WARNING_IMAGE_WIDTH, RETURN_WARNING_IMAGE_HEIGHT); ?></label>
<?php echo zen_draw_textarea_field('testimonials_html_text', '30', '7', '$testimonials_html_text', 'id="testimonials_html_text"') . ERROR_TESTIMONIALS_TEXT_MAX_LENGTH; ?>
</li>
<?php } else { ?>
<li>
<label class="inputLabel" for="testimonials_html_text"><?php echo TEXT_TESTIMONIALS_DESCRIPTION . zen_image($template->get_template_dir(RETURN_REQUIRED_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_REQUIRED_IMAGE, RETURN_REQUIRED_IMAGE_ALT, RETURN_REQUIRED_IMAGE_WIDTH, RETURN_REQUIRED_IMAGE_HEIGHT); ?></label>
<?php echo zen_draw_textarea_field('testimonials_html_text', '30', '7', '$testimonials_html_text', 'id="testimonials_html_text"'); ?>
</li>
<?php }
}
?>
2. ehrm, now i am really puzzled :)
i am sure i never put it in there so it is probably a left over from an initial version, and i obviously didn't overwrite it with the current one. Anyway, forget, move on...:blush:
thanks,
Jeroen
1. no, no drawbacks, but you can replace that section with the following: I've added some code to re-display a truncated testimonial if it exceeds the maximum length you've set.
You should use the css I included since the formatting for the form has changed and the new css takes care of that.PHP Code:
<li>
<label for="testimonials_title"><?php echo (($error == true && $entry_title_error == true) ? TEXT_TESTIMONIALS_TITLE . zen_image($template->get_template_dir(RETURN_WARNING_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_WARNING_IMAGE, RETURN_WARNING_IMAGE_ALT, RETURN_WARNING_IMAGE_WIDTH, RETURN_WARNING_IMAGE_HEIGHT) : TEXT_TESTIMONIALS_TITLE . zen_image($template->get_template_dir(RETURN_REQUIRED_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_REQUIRED_IMAGE, RETURN_REQUIRED_IMAGE_ALT, RETURN_REQUIRED_IMAGE_WIDTH, RETURN_REQUIRED_IMAGE_HEIGHT)); ?></label>
<?php echo (($error == true && $entry_title_error == true) ? zen_draw_input_field('testimonials_title', $testimonials_title, 'size="25" id="testimonials_title"') . ERROR_TESTIMONIALS_TITLE_REQUIRED : zen_draw_input_field('testimonials_title', $testimonials_title, 'size="25" id="testimonials_title"')); ?>
</li>
<?php echo TEXT_TESTIMONIALS_DESCRIPTION_INFO ; ?>
<?php if ($error == true && $entry_description_error == true) { ?>
<?php $testimonials_html_text = zen_trunc_string($testimonials_html_text,ENTRY_TESTIMONIALS_TEXT_MIN_LENGTH); ?>
<li>
<label for="testimonials_html_text"><?php echo TEXT_TESTIMONIALS_DESCRIPTION . zen_image($template->get_template_dir(RETURN_WARNING_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_WARNING_IMAGE, RETURN_WARNING_IMAGE_ALT, RETURN_WARNING_IMAGE_WIDTH, RETURN_WARNING_IMAGE_HEIGHT); ?></label>
<?php echo zen_draw_textarea_field('testimonials_html_text', '30', '7', $testimonials_html_text, 'id="testimonials_html_text"') . ERROR_TESTIMONIALS_DESCRIPTION_REQUIRED; ?>
</li>
<?php } else { ?>
<?php if ($error == true && $entry_description_big_error == true) { ?>
<?php $testimonials_html_text = zen_trunc_string($testimonials_html_text,ENTRY_TESTIMONIALS_TEXT_MAX_LENGTH); ?>
<li>
<label for="testimonials_html_text"><?php echo TEXT_TESTIMONIALS_DESCRIPTION . zen_image($template->get_template_dir(RETURN_WARNING_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_WARNING_IMAGE, RETURN_WARNING_IMAGE_ALT, RETURN_WARNING_IMAGE_WIDTH, RETURN_WARNING_IMAGE_HEIGHT); ?></label>
<?php echo zen_draw_textarea_field('testimonials_html_text', '30', '7', $testimonials_html_text, 'id="testimonials_html_text"') . ERROR_TESTIMONIALS_TEXT_MAX_LENGTH; ?>
</li>
<?php } else { ?>
<li>
<label for="testimonials_html_text"><?php echo TEXT_TESTIMONIALS_DESCRIPTION . zen_image($template->get_template_dir(RETURN_REQUIRED_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_REQUIRED_IMAGE, RETURN_REQUIRED_IMAGE_ALT, RETURN_REQUIRED_IMAGE_WIDTH, RETURN_REQUIRED_IMAGE_HEIGHT); ?></label>
<?php echo zen_draw_textarea_field('testimonials_html_text', '30', '7', $testimonials_html_text, 'id="testimonials_html_text"'); ?>
</li>
<?php }
}
?>
Anyway to get this mod to display on the center column, main page only>?
Nice Work Clyde "As Usual" Thanks
I skipped the last 81 pages so go ahead and flame me if this is a rhetorical question.
Are You planing an add-on that would allow the user to upload an image, possibly use IH2 to resize the image and provide image hover effect, then use lightbox or hoverbox to zoom the image?
Just a thought.
JOhn ><>
ooops - Delete
Thanks Again
JOhn ><>
I would like to remove the requirement for a Testimonial Title to be entered by the customer. I can remove the relevant text and form part from the 'add my testimonial' page, but there is obviously more to be done/commented out to stop error messages appearing.
Any suggestions?
Cheers
Well you could add an option to the Testimonial Manager configuration table to display or not display the title.
Then add conditional statements to
includes/modules/pages/testimonial_add/header_php.php
and
includes/templates/YOUR_TEMPLATE/templates/tpl_testimonials_add_default.php
That's great, thanks for your help Clyde.
Good day Clyde
I just downloaded and installed TM on my 1.3.8a site www.robertensing.com
I can see the options in admin for Testimonials Manager as well as Tools > Testimonial Manager with 1 test in there, but I don't see the side-box to activate the feature on my site. :-(
Any idea what I did wrong?
Thanks for the great mod by the way. I run several sites that use ZC and I'm sure a couple will be using this mod when I figure it out.
Hi Guys,
Can anybody help, I'm trying to display this sidebox on only my index page... I've added the following to my testimonials_manager.php but it doesn't have an effect:
$show_testimonials_manager = false;
if ($_GET['main_page'] == 'index') {
$show_testimonials_manager = true;
} else {
$show_testimonials_manager = false;
}
Try it with the highlighted change.
$show_testimonials_manager = false;
if ($this_is_home_page) {
$show_testimonials_manager = true;
} else {
$show_testimonials_manager = false;
}
Don't forget that you'll need to add the following to surround the the main section of code:
if ($show_testimonials_manager == true) {
main portion of code
}
Cool, thanks for the help. This little chunk of code got it working properly for anyone that's interested:
$show_testimonials_manager = true;
if ($this_is_home_page) {
$show_testimonials_manager = true;
} else {
$show_testimonials_manager = false;
}
if ($show_testimonials_manager == true) {
Just wondering if there is a way to have the testimonials for a certain product show up on the product page itself? i am sure there is a bit of coding to do this...but wondering just how hard it would be?
For example I have "Jazzy Jeans" there are 3 comments on my testimonials page for these jeans....I would like to have JUST those (3) comments show up on my Jazzy Jeans product page underneath the product images....can this be done?!?!?
THanks!!!
testimonials are meant to show kudos to your customer support, shipping policies, and all around general experience with shopping with you.
What you are looking for is Customer Reviews, which are the reviews by the customers of a certain/specific product. To do that, they would have to go to that specific product and write a review.
You can then set it to show the latest review on that product, and there is also a link there in the product listing that they can click to view ALL reviews on the product.
How can I remove Testimonials from all pages except the Store Front?
I'm not sure what you mean.
A random testimonial appears in a sidebox. If that testimonial is selected it will appear on its own page.
You can select view all testimonials and ALL of your testimonials will show on the "ALL Testimonials" page. You can also chose to view individual testimonials by clicking on the title of the testimonial.
First got to tell we love the Testimonial Manager- Great Job!
We are using Zen Cart 1.3.8a, Testimonial Manager 1.5.0 (just downloaded today), and Apple Zen template. Other add-ons which are all up-to-date include Image Handler2, Admin Settings, Admin Profiles, Monthly Sales Reports, Sales Reports with Graphs, Sales Reports, Google Analytics, and shortly CAPTCHA and the CAPTCHA Testimonial 1.5 fix.
After a clean re-install, I have two issues which still plague me and a couple Zen Cart admin display bugs which are irksome but acceptable.
The site is www.mustangseats.com/cart/index.php
The testimonials look fine on the main page. (lower right hand side)
However the issues arise when you click to view the testimonial.
Issue #1: When the testimonial is displayed the testimonials width is to wide and disrupts the template. I cannot find in any of the stylesheets where I can change the width of the testimonials and the only entry in the forum was from a couple years ago from a person from asia who had other issues.
Issue #2: Page title when viewing the testimonials- META_TAG_TITLE_PAGE_TESTIMONIAL_MANGER<testimonial title> Not exactly sure what caused this. Not sure how to fix it.
The curiosities on the Testimonial Manager under Admin-->Tools are:
Issue#1: when clicking on Add Testimonial. The *Required is displayed twice next to the Author's Name, Author's E-Mail, and Testimonial Title fields- since this is the first time I have seen this add-on, I am not sure if this is intentional or not.
Issue#2: In the Admin Settings add-on, Permissions, Testimonial Manager is listed twice and both need to be marked in order for any of the other admins on Mustang's site.
Like I said these issues do not impact the functionality of the tool, they are just curiosities and unexpected.
However on the width issue and page title issue any help would be appreciated.
Minotaur1066
Resolved Issue #2: Page title when viewing the testimonials- META_TAG_TITLE_PAGE_TESTIMONIAL_MANGER<testimonial title> Not exactly sure what caused this. Not sure how to fix it.
It was the code I entered in the meta_tags.php file. Removed
the
//TESTIMONIALS:
case 'testimonials_manager_all_testimonials':.... code
Still need help figuring out the width issue
Minotaur1066
Hi
I have modified your testimonials package to become a guestbook, as can be seen here http://www.breezy.biz/index.php?main...l_testimonials
I notice Capcha is on its way and just wondered how long it will be, I get about 10 entries a day that are trying to persuade me I need ############, that or a bigger cucumber, neother of which I am overly concerned about at this point in my life.
lol.
When the testimonial is displayed the testimonials width is to wide and disrupts the template. I cannot find in any of the stylesheets where I can change the width of the testimonials and the only entry in the forum was from a couple years ago from a person from asia who had other issues.
Have you checked the Apple Zen support thread for similar issues?
In the Admin Settings add-on, Permissions, Testimonial Manager is listed twice and both need to be marked in order for any of the other admins on Mustang's site.
Like I said these issues do not impact the functionality of the tool, they are just curiosities and unexpected.
Check the admin profiles support thread on this issue.
when clicking on Add Testimonial. The *Required is displayed twice next to the Author's Name, Author's E-Mail, and Testimonial Title fields- since this is the first time I have seen this add-on, I am not sure if this is intentional or not.
The *Required should only display once after each of these entries.
Try this fix and see if it helps.
Just unzip the the file and upload the entire admin folder to your server.
Attachment 5440
Yes- I did not find anything so I posted a question. Jade , just like yourself, is very good about helping those who use the add-ons which one has developed. I will be sure to post the solution on this thread as well- with the popularity of both Apple Zen and Testimonial Manager, I am sure I will not be the only one to encounter this issue.Quote:
When the testimonial is displayed the testimonials width is to wide and disrupts the template. I cannot find in any of the stylesheets where I can change the width of the testimonials and the only entry in the forum was from a couple years ago from a person from asia who had other issues.
Have you checked the Apple Zen support thread for similar issues?
On my to do list...Quote:
In the Admin Settings add-on, Permissions, Testimonial Manager is listed twice and both need to be marked in order for any of the other admins on Mustang's site.
Like I said these issues do not impact the functionality of the tool, they are just curiosities and unexpected.
Check the admin profiles support thread on this issue.
I appreciate the help but alas after uploading the admin folder, I still have double *required.. Like I said this is not as important as resolving the template displacement when viewing the testimonials. I do appreciate your help with it though.Quote:
when clicking on Add Testimonial. The *Required is displayed twice next to the Author's Name, Author's E-Mail, and Testimonial Title fields- since this is the first time I have seen this add-on, I am not sure if this is intentional or not.
The *Required should only display once after each of these entries.
Try this fix and see if it helps.
Just unzip the the file and upload the entire admin folder to your server.
minotaur1066_fix.zip
Minotaur1066
http://www.mustangseats.com/cart/ima...stimonials.png
open the following css files:
display_all_testimonials.css
testimonials_manager.css
replace the following line of code:
with thisCode:#testimonialDefault{margin:0 5px;padding:8px;font-size:1.2em;text-align:left;}
Code:#testimonialDefault{margin:0 5px;padding:8px;font-size:1.2em;text-align:left;width:76.8%;}
Clyde
Default Re: Testimonial Manager Support Thread
Quote:
Originally Posted by minotaur1066 View Post
Yes- I did not find anything so I posted a question. Jade , just like yourself, is very good about helping those who use the add-ons which one has developed. I will be sure to post the solution on this thread as well- with the popularity of both Apple Zen and Testimonial Manager, I am sure I will not be the only one to encounter this issue.
open the following css files:
display_all_testimonials.css
testimonials_manager.css
That got me closer- I will tweak the % to get it as close as possibleQuote:
replace the following line of code:
Code:
#testimonialDefault{margin:0 5px;padding:8px;font-size:1.2em;text-align:left;}
with this
Code:
#testimonialDefault{margin:0 5px;padding:8px;font-size:1.2em;text-align:left;width:76.8%;}
Thanks again- You are awesome.
Minotaur1066
That did the trick- Instead of just removing the code, I just remarked it out.Quote:
Or you could do as Jade suggested in her post on this issue.
Just delete that line of code altogether.
##############################___
Clyde
So if others have the same issue here is what I did with the wonderful instructions and guidance from Clyde & Jade.
In the /includes/templates/apple_zen/css folder, I opened the
display_all_testimonials.css, testimonial_manager.css and testimonial_manager_all_testimonials.css.
Found the very first line of code:
and changed toQuote:
#testimonialDefault{margin:0 5px;padding:8px;font-size:1.2em;text-align:left;}
Thanks again Clyde & Jade- This is why I love open source software :yes:Quote:
/*#testimonialDefault{margin:0 5px;padding:8px;font-size:1.2em;text-align:left;}*/
Minotuar1066
Hi Clyde,
I want to again thank you again for such an cool tool and for all your help. We have it implemented on my client's site (www.mustangseats.com) and had our first testimonial submitted this weekend.:clap:
Minotaur1066
I'm thinking about adding this mod and am curious as to how you guys manage to get folks to submit testimonials. Any advice on that?
To get folks to submit real testimonials, there must be something to write about. Maybe your excelent customer service or perhaps your products help them solve their daily problems.
I pride myself in quick response and great customer service. In the years that I have been doing this and the hundreds of orders I've filled, I have only received a handful of compliments and even fewer complaints.
I do plenty of purchases online and have never felt compelled to submit a testimonial. What I normally do is just continue to frequent the sites that provide good service. I would think in order to get folks to submit testimonials you'd almost have to ask them to do them rather than hope someone takes time out of their busy day to praise your site.
Do you guys get tons of submissions without prompting customers to review their experience shopping with you?
I find that it is rare that customers will actually click on the testimonials and enter their comments on there. It was not until I found kampyle.com that provided a feedback button and a "push" that asks customers if they want to participate in a short 1 minute feedback that I started to actually get customer feedback and comments. I used those comments to manually enter the testimonial into the module.
Used to be that kamplye was free to use, but now they charge a subscription fee. It is still free up until 25 feedbacks in a month and they removed all other info that you can get from the customers like location, browser etc. However it is still a useful way to get testimonials from customers.
in the install_testimonials_manager.txt file there is a section that says
metatags
//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;
What does this do, and what file does it go into?
Hi,
Good job Clyde!
Did a fresh zen install this morning and downloaded your add-on. Got it to work with little effort but I did notice several small items.
The image size variable changes what is seen everywhere, even in the sidebox. If you set it to where is fits the sidebox, then it is almost too small to be useful elsewhere.
There may be an issue with hiding the name, city, etc. on the testimonial page(s). I turned them off in config. and nothing changed in either the All Testimonials or on the single testimonial screens. If it is working right for you, then maybe something went haywire with my install.
Also, on my install, the view page link (the little icon) does not seem to work under the tools section. My screen flashes but that is about all that happens. I checked my pop-up blocker and that's not the problem. Again, I couldn't swear that it isn't something that I did in tweaking, but most of what I did was in css. If yours works fine, then I will need to recheck everything.
BTY, I love your town (if you are still in the Springs, that is)! Worked in Denver several years and made a few trips down your way. Enjoyed the 90 mile jaunt!
Just another Jones
I was playing with the purpose, just to see if it was feasible to use it as a psuedo ads mgmt sys. The link is
http://www.stamphelp.info/stamphelp/
As I said, the name, country, etc is turned off in config but the info still shows.
Thanks for looking.
DJ
Turning off the country, state, company in admin -> configuration -> testimonial manager only keeps those fields from showing on the testimonial submission form.
If that information is already present in the database table then it will be displayed.
By default, The Ads By: NAME will display at all times.
make sure you've uploaded the following stylesheets
testimonials_manager.css
testimonials_add.css
display_all_testimonials.css
Also add the following declarations to your stylesheet.css
.testimonial {
color: #000;
padding: 0 5px 5px 5px;
text-align:left;
}
.testimonial p {
margin: 0; padding: 5px 0;
}
.testimonial span {
float:right;
}
.testimonialImage {
margin: 0;
padding: 0;
text-align: center;
}
You the man Clyde Thanks again for you help
They were already there. Been trying to get things centered up using those css files but so far no luck. That's one of my knit picks is to have things not centered on a page or in a box. Not really up on css yet so I've been fighting it all afternoon. Tried the old html and it worked on the titles but I guess the options in css are overriding most any html that I try to use.
That was good to know about those fields. I didn't even try to add another after I turned them off, or I might had noticed what happened and saved a question. Guess I need a crash course on css, if I can find one somewhere.
Thanks again,
DJ
:ohmy:I think that it looked that way because I deleted the whole blockquote instead of just the url link for the quote images. I put it back and removed the actual image link and changed the padding to 0.
:blush:Sorry about that, it was a long day and I was kinda in a fog when I did the first try.
:lamo:I know it's probably not a great idea, but if one wanted to allow simple html, could it be done? Just the basic text formatting options like < br >, < b >, etc. or would that create a nightmare?
You can make any changes you want, but it is a little easier to just add/change the following declarations in the stylesheets: as indicated by the highlights. That way you don't need to touch the underlying code at all.
testimonials_manager.css and display_all_testimonials.css
#testimonialDefault p{font-weight:bold;}
blockquote div {
padding:38px 56px;
background: url(../images/rgtblockquote.png) bottom right no-repeat;
height:1%;
text-align:center;
font-weight:bold;
}
That was much easier than I imagined. Guess it helps to know css.
Thanks!
hi all,
Please advise me how to install this add on? My site is still offline and now i am running on xampp.
Any hitches can be sorted out here, but more than likely, they already have been answered here. So my advise would be to scan this thread and read the instructions!
Not much else can be offered, just follow the instructions and it goes really smooth. I had it working in a few minute although it took awhile to modify things that I wanted. Straight out of the box works for most people.
Change the YOUR_TEMPLATE folders to match the name of your custom template directory.
Open xampp/htdocs
Then just copy the admin and includes folders to the where you have Zen Cart installed
open localhost/LOCATION_OF_ZENCART/admin
Then in the tools -> install sql patch
run the install sql statement as instructed
Thanks for all your reply.
Hi Clyde, It is obvious the amount of work you put into this mod, so I would like to see it working well on our site.
I loaded the mod and all seemed to be where it should be, custom override and admin directory names were changed. Double and triple checked all...
I did get several errors from the sql install:
Error ERROR: Cannot insert configuration_key "PRODUCTS_OPTIONS_TYPE_SELECT" because it already exists
Error ERROR: Cannot insert configuration_key "UPLOAD_PREFIX" because it already exists
Error ERROR: Cannot insert configuration_key "TEXT_PREFIX" because it already exists
Error ERROR: Cannot insert configuration_key "IH_VERSION" because it already exists
Error ERROR: Cannot insert configuration_key "IH_VERSION" because it already exists
Everything in admin works fine, I set the sidebox to on, configured settings and added a test testimonial......
The sidebox is not showing......any clues?
I've re-loaded the sql and files several times, same thing...
www. misasfashioncafe .com (site is Japanese)
Thanks in advance, Robert
The error messages can safely be ignored since they only confirm that that particular information already exists in the database.
I was going to submit a test testimonial directly from the site but was unable to create an account (I'm guessing because there is no option to create an account if you are not from Japan - The only country available in the dropdown list)
Off hand, I'm thinking that your test testimonial was in english and you submitted it from admin while using english as the language.
Try switching languages to Japanese in admin and then submit a testimonial
Clyde, Thanks for getting back to me so quickly!....
....another one of those "DUH" moments...I created a Japanese file for >INCLUDES side, but not for >ADMIN. Sometimes it takes a slap in the back of the head....Quote:
Off hand, I'm thinking that your test testimonial was in english and you submitted it from admin while using english as the language.
Try switching languages to Japanese in admin and then submit a testimonial
It's working now, thanks for a great mod and your help.
Best regards,
Robert
Has anyone thought about a way to limit the number of testimonials that one user can post in a set timeframe? Kind of like spam control. I know if I saw a dozen or so in a few days from one user, that I would question the sincerity and validity of them, and I'm the store owner. Could do more harm than good!
That is true, probably would never come into play.
What I would really like to do is to reverse the display order. I think the last in/last displayed would work better for what I am trying to do. I searched the db and did not see anything that was the sort key so I figured it must be hard coded. Neither did I recognize anything in the tpl_display_all_testimonials_default file either that set the current display order.
I know it's there but I just don't see it. In the tpl_display_all_testimonials_default, I find a commented out line like that below, so that's not it, but in the
tpl_testimonials_manager_all_testimonials_default,
I find this:
$testimonials_query_raw = "select * from " . TABLE_TESTIMONIALS_MANAGER . " where status = 1 and language_id = '" . (int)$_SESSION['languages_id'] . "' order by date_added DESC, testimonials_title ";
so I tried changing it to:
$testimonials_query_raw = "select * from " . TABLE_TESTIMONIALS_MANAGER . " where status = 1 and language_id = '" . (int)$_SESSION['languages_id'] . "' order by testimonials_title, date_added DESC";
but that doesn't do anything.
Even tried removing the DESC with no success and even changed it to ASC.
So I am either in the wrong place or I'm not getting the message.:dontgetit
Hi, is it possible to have the testimonials manager in the index page centered only rather than the sidebox?
Btw, thanks for the awesome add on! :bigups:
thanks for your mod. This is not a major issue, but when i add in the code into meta_tags.php file I get this error on my site
Parse error: syntax error, unexpected T_CASE in /home/public_html/store/includes/languages/english/meta_tags.php on line 56
any thoughts on this or how to fix it, I removed the code for now
the file I edited was in /includes/languages/english/meta_tags.php
thanks!
John
thanks for the reply, I put it after this
and before the close php tag:Code:// favicon setting
// There is usually NO need to enable this unless you wish to specify a path and/or a different filename
define('FAVICON','favicon.ico');
and this is what i pasted:Code:?>
I didn't remove anything. Thanks for your help!Code://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;
John
You put it in the wrong file;
open includes/modules/meta_tags.php
find the following line of code
// EZ-Pages:
Put the code just above this line.
save the file to includes/modules/YOUR_TEMPLATE/meta_tags.php
Don't forget to delete the code from includes/languages/english/meta_tags.php
thanks! perhaps might be a good idea to add that to the install doc, since there are 2 meta_tags.php files.
Hi Clyde Jones and thank you so much for this add-on. I'm using it to display 'facts' rather than testimonials. I got it installed and working, then began customizing and had no problems. I added all the facts from within the Admin>Tools>Testimonials Manager. After that, I began removing certain things like the title, the read more, etc and all was working well. Finally, I wanted to add images, so I went into the Admin>Tools>Testimonials Manager and received the following error:
I did not make any changes at all in the admin files.Code:Fatal error: Call to a member function get_template_dir() on a non-object in /home/enchant2/public_html/biad/admin/includes/languages/english/testimonials_manager.php on line 30
Thank you.
The site (still under construction) is currently located at
http://biad.enchanted-graphics.com/
This is a new installation of the add on.
the files I changed were:
includes>templates>mine>sideboxes>tpl_testimonials_manager.php
on line 14 I removed the following code between the ''
on line 20 I removed the following code because I did not want "Read More>>"Code:<b><a href="' . zen_href_link(FILENAME_TESTIMONIALS_MANAGER, 'testimonials_id=' . $page_query_list[$i]['id']) . '">' . $page_query_list[$i]['name'] . '</a></b><div class="testimonial">
on line 21, I removed everything, because I did not need the separatorCode:<span><strong><a href="' . zen_href_link(FILENAME_TESTIMONIALS_MANAGER, 'testimonials_id=' . $page_query_list[$i]['id']) . '">' .TESTIMONIALS_MANAGER_READ_MORE .'</a></strong></span>
in includes>languages>english>extra_definitions>mine I changed testimonials_manager_defines.php:Code:$content .= '<hr class="catBoxDivider" />';
lines 12, 13, 23 I changed the word Testimonials to Facts.
I believe that is all .... I will look through things more closely to see if anything was changed.
Magic haha. I must have inadvertently changed something on one of those files. Now I no longer get that error! Thank you! That was a pretty simple fix!
Install testimonials-module; semm some thing missing, getting error please suggest me.
1146 Table 'newzen_.table_testimonials_manager' doesn't exist
in:
[select testimonials_id, testimonials_image, testimonials_title, testimonials_html_text, date_added from TABLE_TESTIMONIALS_MANAGER where status = 1 and language_id = 1 order by rand(), testimonials_title limit 5]
Did you follow the highlighted section from the installation instructions:
NEW INSTALLATION:
Unzip the contribution.
Open the New_installation folder
run the included install_testimonials_manager.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'.
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.
Login in to your admin panel admin -> tools -> layout boxes contoller and activate the new sidebox.
thanks clydejones!
YES! i do follow exactly as mention above;
in admin > tools > Testimonial Manager has created and in Tools>Layout Manager > sideboxes/classic/testimonials_manager.php has been created but at front end i can see an error on right layout as
1146 Table 'newzen_.table_testimonials_manager' doesn't exist
in:
[select testimonials_id, testimonials_image, testimonials_title, testimonials_html_text, date_added from TABLE_TESTIMONIALS_MANAGER where status = 1 and language_id = 1 order by rand(), testimonials_title limit 5]
do i need to edit some thing in phpmyadmin? or need to do again.
please