This is a heavily updated mod of http://addons.oscommerce.com/info/839
All credit to the original Authors.
This mod lets customers write testimonials of your site. You approve or not in the admin.
Legend: 
Download

Report
Customer Testimonials v.4.0
Author: Bill Kellum
This contribution allows your customer to post a testimonial about your site or your products with the option of uploading an image of them using your products.
As the administrator, you will be notified via email that a customer has posted a testimonial and you must allow it in the admin before it will be visiable to the public.
As the administrator, you will be able to view the text and the image (if an image was uploaded) and have the option to allow the text, image or both.
As the administrator, you will be able to edit both the text and the image.
A new image setting will be established in the Configuration | Images section of your admin to allow you to set the size of the images that are uploaded by your customers.
New installation instructions as well as upgrade instructions included with this download.
Support:
http://forums.oscommerce.com/index.php?s=&showtopic=230089&view=findpost&p=1325388
Screenshots included.
Enjoy,
Bill Kellum
Sorry, forgot to add this one:
The infobox doesn't seem to display the title of the testimonial.
In catalog/includes/boxes/testimonials.php -
Find:
'text' => '<a href="' . tep_href_link(FILENAME_CUSTOMER_TESTIMONIALS, tep_get_all_get_params(array('language', 'currency')) .'&testimonial_id=' . $random_testimonial['testimonials_id']) . '"><b><center>' . $testimonial_titulo . '</center></b><br>' . strip_tags($testimonial) . '... ' . TEXT_READ_MORE . '</a>'
Replace with:
'text' => '<a href="' . tep_href_link(FILENAME_CUSTOMER_TESTIMONIALS, tep_get_all_get_params(array('language', 'currency')) .'&testimonial_id=' . $random_testimonial['testimonials_id']) . '"><b><center>' . $random_testimonial['testimonials_title'] . '</center></b><br>' . strip_tags($testimonial) . '... ' . TEXT_READ_MORE . '</a>'
DUMMY FILE.
Rob
Hi All,
No file upload, as mine have now been extensively modified.
I get table issues with customer_testimonial_write.php, and fixed by replacing:
<!-- body_text //-->
<td width="100%" valign="top">
<form name="customer_testimonial" method="post" action="<?php echo tep_href_link(FILENAME_CUSTOMER_TESTIMONIALS_WRITE, 'action=insert', 'NONSSL'); ?>">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading" colspan="2"><?php echo HEADING_TITLE2; ?></td>
with
<!-- body_text //-->
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<form name="customer_testimonial" method="post" action="<?php echo tep_href_link(FILENAME_CUSTOMER_TESTIMONIALS_WRITE, 'action=insert', 'NONSSL'); ?>">
<td class="pageHeading" colspan="2"><?php echo HEADING_TITLE2; ?></td>
The location of the form tag doesn't really matter, but i moved it to make it easier to compare.
Rob
FULL PACKAGE with UPDATE INSTRUCTIONS
* Fixed button define in catalog/customer_testimonials.php as detailed in the forum...
Scott
Full package
Update from 3.6 (see below only)
---------------------------------
NOTE: for the file catalog/includes/modules/customer_testimonials.php there are TWO versions
Version 1 = Includes the email address of the customer submitting the testimony with a link that reads "Click to email the author"
Version 2 = Excludes the email address link of the customer submitting the testimony
BEFORE uploading this file choose one of these versions and rename the file to "customer_testimonials.php"
Scott
Upgrade path included in installation.txt - Full package
Since v3.5(1)
-------------
* Added further multi-lingual support in all areas
* Added email validation to the catalog and the admin
* Added date added field in the catalog
* Added language defines in catalog/includes/languages/english.php
* Added admin link in testimony submission email
* Removed unnecessary case in catalog
* Removed erroneous language defines
* HTML fixes in both the catalog and the admin
* Adjusted the admin language defines for consistency
* Rewrote code in catalog/customer_testimonials_write.php to make this addon compatible with my osC reCaptcha addon
* Rewrote code in catalog/includes/modules/customer_testimonials.php significantly
* Added screenshots to save bandwidth
* Added a new button in the catalog
Scott
Minor changes has been made:
* added default style buttons
* Changed testimonials listing table style in admin
* Fixed minor html errors on customers_testimonials_write.php file
demo: mnkedition.oscommerce-packages.com
This is full version based on Customer Testimonials 3.5
Customer Testimonials v3.5 is a pretty extensive rewrite of this addon with many bug fixes and formatting changes... I haven't prepared an update guide because it took me so much work to get this ready and wanted to get it out there - perhaps someone else could as it should not be that hard to do. Please note the the sql has changed...
Since v3.2
----------
* Modified the sql to do away with url and instead use email address
* Modified the catalog infobox formatting a little bit
* Modified the layout of the catalog files and functionality
* Added a new button to the catalog and updated all other buttons added by this addon
* Altogether rewrote error message logic to be consistent with osC standards in the catalog
* Fixed the success page bug so that it redirects to the success page properly
* Fixed the module email address bug, now "mailto:" is automatically added to email addresses
* Fixed the update issue in the Admin where it changed from Update to Insert
* Fixed the update issue in the Admin where it would not append updated info to the database properly
* Added a bunch of language defines that weren't there
* Integrated the email message mod into the base code
* Removed ALOT of superflous code that had crept into the addon
* Many, many, many other small things and some larger ones :)
Scott
wanted to have an email notification whenever i got a testimonial submissin here's the instructions to add one :) Thansk for everyones hard on this great contrib!
some folks have asked me why the urls were not working correctly on the testimonials page to click the offsite url entered by customers. i have added the code to pre-populate that filed with "http://" so that customer can see that it is needed to work properly. I know that the code "could" be edited in other ways to remedy this but it was a quick copy/edit from html_output.php for me.
near line 134 after this code:
$html_text = tep_db_prepare_input($HTTP_POST_VARS['html_text']);
}
break;
}
}
add:
// Output a form testimonials url input field
function tep_draw_testimonial_url_input_field($name, $value = '', $type = 'text', $reinsert_value = true) {
$field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"';
$field .= ' value="http://"';
$field .= '>';
return $field;
}
// Output a testimonials url field
function tep_draw_testimonial_url_field($name, $value = '') {
return tep_draw_testimonial_url_input_field($name, $value);
}
and then simply change the call to that function on line (or near) 177 to:
<td class="main"><?php echo tep_draw_testimonial_url_field('testimonials_url', $testimonials_url); ?></td>
now that field will show "http://" by default, solving this small issue :)
Package complet avec installation en français
Ajout dans catalog/includes/application_top.php
if ( ($session_started == true) && (PHP_VERSION >= 4.3) && function_exists('ini_get') && (ini_get('register_globals') == false) ) {
extract($_SESSION, EXTR_OVERWRITE+EXTR_REFS);
}
Avant ces lignes :
// set SID once, even if empty
$SID = (defined('SID') ? SID : '');
**********************************
Complete package with french install
Add in catalog/includes/application_top.php
if ( ($session_started == true) && (PHP_VERSION >= 4.3) && function_exists('ini_get') && (ini_get('register_globals') == false) ) {
extract($_SESSION, EXTR_OVERWRITE+EXTR_REFS);
}
Before this lines :
// set SID once, even if empty
$SID = (defined('SID') ? SID : '');
This is a repackage to take care of a sql injection vulnerability as discussed in forum thread here onwards:
http://forums.oscommerce.com/index.php?showtopic=230089&st=40#
The code changes are to prevent sql injection and sanatize the string.
This is the full package
italian and german added!
Full package
2 bugs fixed...
1)open this file:
catalog/includes/languages/english.php or your language file
and add before ?>
define('IMAGE_BUTTON_INSERT', 'Insert:');
2)Add your insert image for IMAGE_BUTTON_INSERT into catalog/includes/languages/images/english/buttons/button_submit.gif
Enjoy...
Note: No file in the zip file.
This is a heavily updated mod of http://addons.oscommerce.com/info/839
All credit to the original Authors.
This mod lets customers write testimonials of your site. You approve or not in the admin.