Love your add-on. Works great.![]()
Just curious though, is there a way to disable customers add testimonials?
I have looked through all files and cannot seem to locate the code to remove the "Add My Testimonial" link.
Worried about spammers.
Love your add-on. Works great.![]()
Just curious though, is there a way to disable customers add testimonials?
I have looked through all files and cannot seem to locate the code to remove the "Add My Testimonial" link.
Worried about spammers.
This is the standard code for Zen Cart sideboxes:
I looked at a view source of your site and you or someone has obviously edited this standard zen cart code to suite your own needs.PHP Code:
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
$content .= "\n" . '<ul style="margin: 0; padding: 0; list-style-type: none;">' . "\n";
for ($i=0; $i<sizeof($information); $i++) {
$content .= '<li>' . $information[$i] . '</li>' . "\n";
}
$content .= '</ul>' . "\n";
$content .= '</div>';
You can modify the TM sidebox to fit with the code for your sideboxes and see if that would solve the problem.
Hi there,
Im no CSS guru, could you suggest where the code needs changing please??
I have attached the source from IE7 "View Source" dump.
Called nubartm.doc
Thanks
Colin
Hi There,
I dont want to appear stupid, but there is no Tpl_information.php at this location, would it be under a default template location then?
Much appreciating your help.
Colin
Hi there, found it, attached as requested.
Thanks!!
Colin
That's the standard default file.
Who ever designed your template evidently decided to re-write the way the sidebox files were set-up.
I'm just guessing but after another look at the view source on your site, I'd have to conclude that you are using a TM template.
TM templates are notorious for not complying with Zen Cart standards which generally causes problems when trying to install any of the freely available add-ons.
You can always look in - includes/templates/template15387/sideboxes/ and check the files there.
Without actually seeing the associated template files, I'm afraid I can't really help you solve this problem.
Maybe I'm not making myself clear or not using the right protocol, if so my appologies.
I like your module and would like to use it in my clients online store to add testimonials.
I like the fact that it displays a preview in the sidebox.
What i would like not to have is the customer adding their own testimonial.
The store is a part time venture and the owner is not computer savvy and does not want to login to approve testimonials.
Is there a way to disable the "add my testimonial" link/button?
Thanks.
admin -> configuration -> testimonial manager -> Only registered customers may submit a testimonial Set this to true.
Doing this will allow only customers who are logged in to submit a testimonial.
If that is not exactly what you want to do, then:
You can edit the following 2 files
includes/templates/YOUR_TEMPLATE/templates/tpl_display_all_testimonials_default.php
includes/templates/YOUR_TEMPLATE/templates/tpl_testimonials_manager_default.php
Find and delete the following section of code:
PHP Code:
<div class="buttonRow forward"><a href="<?php echo zen_href_link(FILENAME_TESTIMONIALS_ADD, '', 'SSL'); ?>"><?php echo zen_image_button(BUTTON_IMAGE_TESTIMONIALS, BUTTON_TESTIMONIALS_ADD_ALT); ?></a></div>
Bookmarks