Quote:
It would be so much more powerful when the testimonials would have the option of showing an avatar. People respond and trust testimonials a lot more when they see the actual person.
|
ok, here's how...
1) Upload the attached file,
function.gravatar.php, to include/templater/plugins
2) In skin/reboot/modules/Testimonials/testimonials.tpl
Replace...
With...
Code:
<img src="{gravatar email=$t.email rating='PG' size='80'}" alt="{$t.name}" style="float:left;margin:0 10px 10px 0">
{$t.testimonial}
<div class="clearing"></div>
Default icon size is 80 pixels. To adjust, edit size='80'.
To set your own default icon (for those who submit testimonials and have not registered a Gravitar icon), instead use...
Code:
<img src="{gravatar email=$t.email rating='PG' size='80' default='http://www.yourstore.com/skin/reboot/modules/Testimonials/images/default_avatar.jpg'}" alt="{$t.name}" style="float:left;margin:0 10px 10px 0">
Then upload your
default_avatar.jpg image to skin/reboot/modules/Testimonials/images/
3) In skin/reboot/modules/Testimonials/testimonial_add.tpl
After...
Code:
<input name="email" type="text" id="email" maxlength="255" class="testimonial_input" placeholder="Required" required>
Insert...
Code:
<span style="font-size:12px">{$lng.lbl_testimonial_gravitar}</span>
4) Apply SQL patch...
Code:
REPLACE INTO xcart_languages SET code='en', name='lbl_testimonial_gravitar', value='If you have a <a href=\"https://gravatar.com/site/signup/\" target=\"_blank\">Gravitar icon</a> associated with your email address, we will display it next to your testimonial.', topic='Labels';
5) Run a template cleanup.
Demo
here. More info on the plugin
here. More info on the icons
here. Very useful and could be used elsewhere around your store
