Re: Testimonial Manager Support Thread
Love your add-on. Works great.:clap:
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.
:dontgetit Worried about spammers.
Re: Testimonial Manager Support Thread
Quote:
Originally Posted by
whiteknight1
ok problem is that the cart is an active shop and would lose sales if i left it with no right boxes!! what about if i switched TM on then done a view source then do a copt paste of the code for the page?? could post it on here??
cheers
This is the standard code for Zen Cart sideboxes:
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>';
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.
You can modify the TM sidebox to fit with the code for your sideboxes and see if that would solve the problem.
1 Attachment(s)
Re: Testimonial Manager Support Thread
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
Re: Testimonial Manager Support Thread
Quote:
Originally Posted by
whiteknight1
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
That doesn't help at all. I'd need to see the actual code changes to your sideboxes (i.e includes/templates/YOUR_TEMPLATE/sideboxes/tpl_information.php)
Re: Testimonial Manager Support Thread
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
Re: Testimonial Manager Support Thread
Quote:
Originally Posted by
whiteknight1
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
try includes/templates/template_default/sideboxes/
1 Attachment(s)
Re: Testimonial Manager Support Thread
Hi there, found it, attached as requested.
Thanks!!
Colin
Re: Testimonial Manager Support Thread
Quote:
Originally Posted by
whiteknight1
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.
Re: Testimonial Manager Support Thread
Quote:
Originally Posted by
wsterling
Love your add-on. Works great.:clap:
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.
:dontgetit Worried about spammers.
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.
Re: Testimonial Manager Support Thread
Quote:
Originally Posted by
wsterling
Love your add-on. Works great.:clap:
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.
:dontgetit Worried about spammers.
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>