Contributions
Scrolling Customer Testimonials with Captcha
I originally posted this under the Customer Testimonials v3 mod, but realized there are so many big changes that this should probably be a separate contribution.
Support thread: http://forums.oscommerce.com/topic/348761-contribution-scrolling-customer-testimonials/page__view__findpost__p__1457041
*** NOTE: Please PM me or post in this thread and PM me to let me know you have a question. I am not an OSC expert, but I'll do my best to help you out, time permitting. ***
Version 1.0 contains the following features:
* Built on Customer Testimonials v3 code base (specfically rev 5.0/5.1)
* Added reCaptcha functions (from OSC reCaptcha 1.4.4 by olsonsp4c)
* Customer's emails protected from harvesting by spam bots
* Captcha image verification on testimonial submittals
* Moved admin functions to dedicated Configuration menu
* Emails to admin now come from admin mail address. Prevents spam collection and need for verification of email address.
* ReCaptcha admin functions (set public / private keys) have a separate admin area. Why? ReCaptcha code can be used elsewhere on your website. Its use is not limited to Customer Testimonials.
* CT InfoBox now only appears on non-SSL pages. This prevents a problem where the user could receive a SSL warning from their Web browser that not all of the elements on the page were secure. It also removes the CT box from parts of your store where it is not needed, such as the Checkout process and Account pages.
* New admin functions:
o Enable/Disable Customer Testimonials module ("kill switch")
o Enable/Disable customer image uploads as part of testimonials
o Turn on/off users ability to email authors
o Enable/Disable reCaptcha to protect testimonial author email address from harvesting
o Limit Testimonial viewing to registered users
o Limit Testimonial writing to registered users
o Enable/Disable reCaptcha function on testimonial forms
o Option for static or new scrolling testimonials feature
o Various settings to control scrolling features
o Switch on/off reCaptcha form verification (anti-spam bot)
* Localized testimonials. Testimonials now appear in user’s language. Only see what matches your language. What good are testimonials if your customer can’t read them?
* Added new language support:
o French
o German
o Portuguese
FULL PACKAGE
Expand All / Collapse All
Important bug fix. Just one line of code changed. If you have version 1.11, you can simply make this change:
in catalogincludesboxescustomer_testimonials.php
edit line 28 and change from:
$testimonials_limit = TESTIMONIALS_LIMIT;
to:
$testimonials_limit = TESTIMONIALS_SCROLL_TRIGGER;
This will correct a bug where the admin setting for maximum number of testimonials to display was ignored.
This is Scrolling Customer Testimonials v1.11, which contains minor updates and bug fixes to v1.1.
There are now the following versions:
v1.0
v1.1
v1.11
The attached instructions include a guide to upgrading from any of these and instructions to upgrade from Customer Testimonials v5.0 or v5.1.
Be sure to use the correct upgrade path.
See Install Guide or OSC support thread for troubleshooting.
FULL PACKAGE
FULL PACKAGE
Includes install instructions for new installs, from SCT v1.0, and Customer Testimonials v3 (versions 5.0, 5.1).
Upgrade files only from version 1.0 to 1.1.
* Bug Fixes:
1. Language code was always set to English instead of testimonial author’s language.
2. Author emails do not display. No Captcha either. Could this be if MailHide is on but there's no reCaptcha Mailhide key???
3. When no testimonials are present, duplicate "write testimonial" line appears in column right/left beneath SCT InfoBox.
4. Testimonial email notification to Admin localized in testimonial author’s language (incorrect) instead of Admin’s preferred language (correct). New SQL line added to store admin email language preference. Instructions updated.
5. Incorrect directory name spelling for Portuguese language directory under the New Install path.
6. Split admin language files in two. Isolated Admin text messages to support related bug fix. Updated documentation.
* New Features:
1. Added Admin setting to control displaying testimonials based on viewer’s language (setting on your Website). Choices: 1) ALL testimonials (i.e. does not restrict, displays all testimonials); OR 2) shows only localized testimonials (default setting).
2. Added default Viewer language setting. If SCT cannot determine what language a testimonial was written in, it will automatically change it to your default viewer language. This also works when the admin edits a testimonial.
3. Added Language to testimonial details (viewed and editable by admin only).
4. Documented default Admin Email language selection under Admin “How-to” section.
5. Added instructions on how to localize reCaptcha for other languages.
6. Added instructions describing how to change default language for written testimonials.
* Other:
• Changed ‘languages_id’ SQL column from INT to TINYINT
NOT a full package.
I originally posted this under the Customer Testimonials v3 mod, but realized there are so many big changes that this should probably be a separate contribution.
Support thread: http://forums.oscommerce.com/topic/348761-contribution-scrolling-customer-testimonials/page__view__findpost__p__1457041
*** NOTE: Please PM me or post in this thread and PM me to let me know you have a question. I am not an OSC expert, but I'll do my best to help you out, time permitting. ***
Version 1.0 contains the following features:
* Built on Customer Testimonials v3 code base (specfically rev 5.0/5.1)
* Added reCaptcha functions (from OSC reCaptcha 1.4.4 by olsonsp4c)
* Customer's emails protected from harvesting by spam bots
* Captcha image verification on testimonial submittals
* Moved admin functions to dedicated Configuration menu
* Emails to admin now come from admin mail address. Prevents spam collection and need for verification of email address.
* ReCaptcha admin functions (set public / private keys) have a separate admin area. Why? ReCaptcha code can be used elsewhere on your website. Its use is not limited to Customer Testimonials.
* CT InfoBox now only appears on non-SSL pages. This prevents a problem where the user could receive a SSL warning from their Web browser that not all of the elements on the page were secure. It also removes the CT box from parts of your store where it is not needed, such as the Checkout process and Account pages.
* New admin functions:
o Enable/Disable Customer Testimonials module ("kill switch")
o Enable/Disable customer image uploads as part of testimonials
o Turn on/off users ability to email authors
o Enable/Disable reCaptcha to protect testimonial author email address from harvesting
o Limit Testimonial viewing to registered users
o Limit Testimonial writing to registered users
o Enable/Disable reCaptcha function on testimonial forms
o Option for static or new scrolling testimonials feature
o Various settings to control scrolling features
o Switch on/off reCaptcha form verification (anti-spam bot)
* Localized testimonials. Testimonials now appear in user’s language. Only see what matches your language. What good are testimonials if your customer can’t read them?
* Added new language support:
o French
o German
o Portuguese
FULL PACKAGE
Note: Contributions are used at own risk.