Zen Cart Logo
Forums / All Other Contributions/Addons / Testimonial Manager Support Thread

Testimonial Manager Support Thread

Views: 278,056

Results 581 to 600 of 1,502
29 May 2008, 6:46 AM
#581
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Testimonial Manager Support Thread

Einstin:

Clyde;
I've pretty much skimmed through all 57 pages of posts here and the Testimonial Manager mod sounds great. I'm working on a new client site and it fits most of the needs. Couple of questions though on it before I try to install it on a clean 1.3.8a site.

  1. Does the mod have the ability to allow a user submitted pic to include with the testimonial?

  2. If a user submits a pic and its sized excessively can it use gd or image magick to resample and save it in the ../images/testimonials directory at a preferred or admin controlled size & dpi?

Sorry, No to both. Images can be added from the admin panel (admin -> tools -> testimonial manager) and editing the testimonial.

29 May 2008, 2:26 PM
#582
einstin avatar

einstin

New Zenner

Join Date:
Feb 2005
Location:
Atlanta, GA
Posts:
71
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

NP Clyde. I figured that would take some serious rewriting anyway but figured I'd ask.

Next question though. As it is now if an image is in the testimonial when the image is clicked it takes you to the authors submitted link/site.

What about altering it so that a smaller image can be used and when clicked it behaves like a product picture and opens a larger picture on top?

I'm using the Fuel Slimbox mod at http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=830 and would like to see a larger picture displayed instead.

cheers!

29 May 2008, 3:25 PM
#583
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

Einstin:

NP Clyde. I figured that would take some serious rewriting anyway but figured I'd ask.

Next question though. As it is now if an image is in the testimonial when the image is clicked it takes you to the authors submitted link/site.

What about altering it so that a smaller image can be used and when clicked it behaves like a product picture and opens a larger picture on top?

I'm using the Fuel Slimbox mod at http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=830 and would like to see a larger picture displayed instead.

cheers!

You can set the image dimensions to whatever you want
admin -> configuration -> testimonial manager (by default the height and width are set at 80px.)

When you edit a testimonial you can set the URL to take you to a particular product info page (you can see this in action here
Just scroll down to the "great site" testimonial and click on the image.

I'm not sure how Fuel Slimbox handles images so I can't really speak to what would be required to alter testimonial manager code to work with it.

29 May 2008, 3:57 PM
#584
einstin avatar

einstin

New Zenner

Join Date:
Feb 2005
Location:
Atlanta, GA
Posts:
71
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

Clyde;
I found where in the 2 template files the url is passed to the picture and although my php is crude at best managed to comment out the url from being passed.

tpl_testimonials_manager_default.php
tpl_testimonials_manager_all_testimonials_default.php

I did it like this...

<p id="testimonialImage">
<?php /* echo  '<a href="' . $page_check->fields[testimonials_url] . '" target="_blank">' . zen_image($testimonials_image). '</a>'; */ ?>
<?php echo  '' . zen_image($testimonials_image). '</a>'; ?>
</p>
```One thing I noticed is that if there is no URL supplied either in the submission or edited in on the admin side then the code still inserts "http:///" as a link for the picture. Might consider adding a statement for it to check for a url and if none exists then not to create the link.

Also, thanks for the image info. If I'd have opened my eyes I might have seen it slap me in the face! :oops:
29 May 2008, 4:07 PM
#585
einstin avatar

einstin

New Zenner

Join Date:
Feb 2005
Location:
Atlanta, GA
Posts:
71
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

clydejones:

You can set the image dimensions to whatever you want
admin -> configuration -> testimonial manager (by default the height and width are set at 80px.)

On second glance, apparently this only controls the image size in the sidebox and not in the actual testimonial page or all testimonials. That or I have managed to goof something else up somewhere.

29 May 2008, 5:03 PM
#586
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

Einstin:

Clyde;
I found where in the 2 template files the url is passed to the picture and although my php is crude at best managed to comment out the url from being passed.

tpl_testimonials_manager_default.php
tpl_testimonials_manager_all_testimonials_default.php

I did it like this...

<p id="testimonialImage"> <?php /* echo '<a href="' . $page_check->fields[testimonials_url] . '" target="_blank">' . zen_image($testimonials_image). '</a>'; */ ?> <?php echo '' . zen_image($testimonials_image). '</a>'; ?> </p> ```One thing I noticed is that if there is no URL supplied either in the submission or edited in on the admin side then the code still inserts "http:///" as a link for the picture. Might consider adding a statement for it to check for a url and if none exists then not to create the link. > > Also, thanks for the image info. If I'd have opened my eyes I might have seen it slap me in the face! :oops:

If no image exists then no image or link is displayed:

This complete if statement takes care of that on the display pages:

   <?php
   if (($testimonials->fields[testimonials_image]) != ('')) {
     $testimonials_image = DIR_WS_IMAGES . $testimonials->fields[testimonials_image];
?>
<p class="testimonialImage">
<?php echo '<a href="' . $testimonials->fields['testimonials_url'] . '" target="_blank">' . zen_image($testimonials_image). '</a>'; ?>
</p>
   <?php
   }
?>

Einstin:

On second glance, apparently this only controls the image size in the sidebox and not in the actual testimonial page or all testimonials. That or I have managed to goof something else up somewhere.

The image size applies to both the sidebox and the display pages.

29 May 2008, 5:59 PM
#587
einstin avatar

einstin

New Zenner

Join Date:
Feb 2005
Location:
Atlanta, GA
Posts:
71
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

clydejones:

If no image exists then no image or link is displayed:

Mabey I wasn't too clear on my description. I DO want the image displayed but if no link is in the db for it then the picture should not attempt to link anywhere. As it stands now with no link in the db on mouseover it displays "http:///" in the status bar and clicking it takes me to the store root.

clydejones:

The image size applies to both the sidebox and the display pages.

I must have something messed up then. Right now it only thumbs the image for the sidebox. The pages tpl_testimonials_manager_default.php and tpl_testimonials_manager_all_testimonials_default.php are both showing a full sized image. I even reverted back to your original files and still the same presentation.

The cart is a clean 1.3.8a install and this was the first mod I installed on it. I tried the Fuel Slimbox after that and nothing was over written but the javascript from slimbox kept halting php and all I would get was blank pages so I removed slimbox for now.

Cheers!

29 May 2008, 6:14 PM
#588
einstin avatar

einstin

New Zenner

Join Date:
Feb 2005
Location:
Atlanta, GA
Posts:
71
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

Just reverted everything back to your original files and now the only difference is the store's full root url shows up in the status bar and of course takes you there when you click the picture. Site url is http://www.southraven.com/demo10/

29 May 2008, 10:19 PM
#589
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

Einstin:

Just reverted everything back to your original files and now the only difference is the store's full root url shows up in the status bar and of course takes you there when you click the picture. Site url is http://www.southraven.com/demo10/

I'll work on a code revision and post a fix for you asap.

29 May 2008, 11:58 PM
#590
einstin avatar

einstin

New Zenner

Join Date:
Feb 2005
Location:
Atlanta, GA
Posts:
71
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

Finally got a version of lightbox installed and working. Had to remove the Fuel Slimbox and go with the Zen Lightbox 1.4. Got that working in the cart now without any errors. Just something about the Fuel Slimbox was giving the site grief. Can't understand why though. Outside of a few stock changes to the stylesheet.css for the template its a fully compliant Zen Cart 1.3.8 and I have been very meticulous in creating a fully compliant template.

Now if I can find a way to get your Testimonial Manager to treat the pictures the same way I would be happy indeed.

From what I can see to get litebox to work on other pages you simply have to copy the javascript file into the appropriate ../includes/modules/pages/ directory and add the tag "rel="lightbox[gallery]".

I'm sure that sounds simpler than it really is though!

30 May 2008, 10:16 PM
#591
einstin avatar

einstin

New Zenner

Join Date:
Feb 2005
Location:
Atlanta, GA
Posts:
71
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

Clyde;
Is the picture on the page tpl_testimonials_manager_default.php supposed to be a thumbnail or the full size picture?

Cheers!

31 May 2008, 12:01 AM
#592
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

Einstin:

Clyde;
Is the picture on the page tpl_testimonials_manager_default.php supposed to be a thumbnail or the full size picture?

Cheers!

The way the code is now written it will show the full size image and the sidebox will show a thumnail image.

I'm revising the code for both tpl_testimonials_manager_default.php and tpl_testimonials_manager_all_testimonials_default.php so that an image will be displayed as a thumnail.

I'm also revising the code to take care of the "link" problem you described.

31 May 2008, 2:02 PM
#593
einstin avatar

einstin

New Zenner

Join Date:
Feb 2005
Location:
Atlanta, GA
Posts:
71
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

clydejones:

The way the code is now written it will show the full size image and the sidebox will show a thumnail image.

I'm revising the code for both tpl_testimonials_manager_default.php and tpl_testimonials_manager_all_testimonials_default.php so that an image will be displayed as a thumnail.

I'm also revising the code to take care of the "link" problem you described.

Let me know if you need it tested! You making it configurable or writing the changes static into the code for the image thumbs?

1 Jun 2008, 4:21 AM
#594
alext avatar

alext

New Zenner

Join Date:
May 2007
Location:
Perth, Australia
Posts:
54
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

Clyde,

I upgraded to TM 1.4.6 and noticed some strange behaviour, no one seems to have encountered this.

In Admin -> Tools -> Testimonials Manager there are two panels: one with a list of testimonials on the left and the other one with Edit-Delete buttons on the right.

The strange thing is that when there are more than one page of testimonials and I go to the next page, the right panel disappears. Clicking any testimonials entry in this page takes me to the previous page with no right panel. If I then go to the next page again, it appears normally, i.e. with the right panel.

This does not seem to break anything, but adds a few extra clicks if entries other that those on the first page are to be edited. I there any simple for this?

Thanks so much for the mod,
Alex

1 Jun 2008, 4:56 AM
#595
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

AlexT:

Clyde,

I upgraded to TM 1.4.6 and noticed some strange behaviour, no one seems to have encountered this.

In Admin -> Tools -> Testimonials Manager there are two panels: one with a list of testimonials on the left and the other one with Edit-Delete buttons on the right.

The strange thing is that when there are more than one page of testimonials and I go to the next page, the right panel disappears. Clicking any testimonials entry in this page takes me to the previous page with no right panel. If I then go to the next page again, it appears normally, i.e. with the right panel.

This does not seem to break anything, but adds a few extra clicks if entries other that those on the first page are to be edited. I there any simple for this?

Thanks so much for the mod,
Alex

I'll check it out!

1 Jun 2008, 12:50 PM
#596
paul3648 avatar

paul3648

Zen Follower

Join Date:
Mar 2007
Location:
Taiwan
Posts:
239
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

Any ideas how I can add meta tags to individual testimonial pages?

I can use the meta_tags.php file for

case 'testimonials_manager'

...but not

case 'testimonials_manager&testimonials_id=43'

Better yet, it would be great if meta tags could be generated automatically from the content of the comment. Nice dream...

1 Jun 2008, 7:16 PM
#597
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

paul3648:

Any ideas how I can add meta tags to individual testimonial pages?

I can use the meta_tags.php file for

case 'testimonials_manager'

...but not

case 'testimonials_manager&testimonials_id=43'

Better yet, it would be great if meta tags could be generated automatically from the content of the comment. Nice dream...

Open includes/modules/meta_tags.php

add the following code just above the // EZ-Pages: section:

//TESTIMONIALS:
case 'testimonials_manager_all_testimonials':

$sql = "select * from " . TABLE_TESTIMONIALS_MANAGER . " where status = 1 and language_id = '" . (int)$_SESSION['languages_id'] . "' order by date_added DESC, testimonials_title";
$testimonials = $db->Execute($sql);
$testimonial_title = 'All Testimonials - ';
while (!$testimonials->EOF) {
  $testimonial_string_metatags .= zen_clean_html($testimonials->fields['testimonials_title']) . METATAGS_DIVIDER;

	
$testimonials->MoveNext();
	
} //EOF
    define('META_TAG_TITLE', $testimonial_title . $testimonial_string_metatags);
    define('META_TAG_DESCRIPTION', $testimonial_title . $testimonial_string_metatags);
    define('META_TAG_KEYWORDS', $testimonial_title . $testimonial_string_metatags);
break;

case 'testimonials_manager':
$testimonial_title = 'Testimonial - ';
    define('META_TAG_TITLE', $testimonial_title . $page_check->fields['testimonials_title']);
    define('META_TAG_DESCRIPTION', $testimonial_title . $page_check->fields['testimonials_title']);
    define('META_TAG_KEYWORDS', $testimonial_title . $page_check->fields['testimonials_title']);
break;
1 Jun 2008, 7:29 PM
#598
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Testimonial Manager Support Thread

clydejones:

I'll check it out!

AlexT:

Clyde,

I upgraded to TM 1.4.6 and noticed some strange behaviour, no one seems to have encountered this.

In Admin -> Tools -> Testimonials Manager there are two panels: one with a list of testimonials on the left and the other one with Edit-Delete buttons on the right.

The strange thing is that when there are more than one page of testimonials and I go to the next page, the right panel disappears. Clicking any testimonials entry in this page takes me to the previous page with no right panel. If I then go to the next page again, it appears normally, i.e. with the right panel.

This does not seem to break anything, but adds a few extra clicks if entries other that those on the first page are to be edited. I there any simple for this?

Thanks so much for the mod,
Alex

Not sure what might cause this. I've checked on 4 different sites and couldn't reproduce the behavior.

Try uploading the attached to your admin folder and see if that makes a difference.
[Attachment no longer available]

2 Jun 2008, 12:30 AM
#599
paul3648 avatar

paul3648

Zen Follower

Join Date:
Mar 2007
Location:
Taiwan
Posts:
239
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

Thank you Clyde - that works great!

clydejones:

Open includes/modules/meta_tags.php

add the following code just above the // EZ-Pages: section:

2 Jun 2008, 12:31 AM
#600
alext avatar

alext

New Zenner

Join Date:
May 2007
Location:
Perth, Australia
Posts:
54
Plugin Contributions:
0

Re: Testimonial Manager Support Thread

clydejones:

Not sure what might cause this. I've checked on 4 different sites and couldn't reproduce the behavior.

Try uploading the attached to your admin folder and see if that makes a difference.
[Attachment no longer available]

No, it doesn't, but thanks anyway. Perhaps, if others do not see this, then it is not worth putting more effort in, the issue is minor. Besides, it is not that often when someone has to edit entries on the pages other than the first one.

Cheers,
Alex