Register |
Your Cart is currently empty.
Home > Forum
Welcome, Guest

How to get uploaded images to display?
(1 viewing) (1) Guest

Dear Customers,

Feel free to submit requests if you have any questions or need assistance.

Before submitting a support request, please pay attention to the description of the corresponding product and frequently asked questions. Answers you are looking for may already be there.
When submitting a request, please include as many details on the problem as you can. This will help us understand the essence and provide you with a helpful solution.
For more information on our support conditions, view JoomPlace support policy.
THANKS FOR YOUR PATIENCE!
  • Page:
  • 1

TOPIC: How to get uploaded images to display?

How to get uploaded images to display? 2 years ago #12022

  • chris clay
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Hi,

I bought the testimonials component this weekend, installed it, and added a sample testimonial. I have enabled the setting "Allow users to upload photos", but even though I can successfully upload a photo it won't display. How can I get the component to display the photos that users upload?

I'm also wondering what the different level options are for. When adding a testimonial (at least in the back end) there's a "level" field but I can't figure out what it's for.

Thanks!
Chris

Re:How to get uploaded images to display? 2 years ago #12023

  • chris clay
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
I just tried adding a testimonial through the front end and discovered there's nowhere to upload an image. Is this feature only available to back-end users? How can I make it so our regular users can upload an image through the front-end?

Please help...

Thanks!

Chris

Re:How to get uploaded images to display? 2 years ago #12025

  • Ann
  • OFFLINE
  • Moderator
  • Posts: 2601
  • Karma: 29
Hi Chris,
have you also enabled in the settings the option To show avatars?
this option is also necessary to allow users uploading photos from the front-end,
as well as to view them from the front-end. If this option is enabled and images are still not showing let me know.

The levels were primarily designed just for filtering purposes.
JoomPlace.com, JoomlaLMS.com
Tech. Support

Re:How to get uploaded images to display? 2 years ago #12027

  • chris clay
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Hi Ann,

Thanks for the quick reply. I have now enabled avatars and see the option to upload photos from the front end. However, the images I'm uploading still aren't displaying. They are uploading okay though (I see them in this folder - images/testimonials_photo/ - when I go there by FTP.)

If there is no image attached to a testimonial, the default "No Image Available" avatar is displayed (i.e. tnnophoto.jpg). However, if I upload an image, code like this appears when I click View Source in Firefox:

<img class="avatar" src="http://www.gardenculturevictoria.com/landscaping/components/com_testimonials/picout_centre.php?picout=/images/testimonials_photo/218bb_20091030_03.sized.jpg&amp;pic_width=114" alt=""/>


... and there's an empty space where the image should be.

You can see what I mean by going here:

www.gardenculturevictoria.com/landscapin...nd-landscaping-ideas

Any ideas?

Thanks,
Chris
Last Edit: 2 years ago by chris clay.

Re:How to get uploaded images to display? 2 years ago #12029

  • Ann
  • OFFLINE
  • Moderator
  • Posts: 2601
  • Karma: 29
Hi Chris,
ok so if you want to display the image
www.gardenculturevictoria.com/landscapin...0091030_03.sized.jpg it's indeed on the server and browser can read it.

But the component doesn't show the images straight away. They are handled by the php file and tranformed to an image with the necessary size (width) and this php file shows 500 Internal Server Error.
So it looks like you don't have the GD php extension. Please check this in the back-end.

As an alternative solution (if you can't install GD), here is what you can do in the testimonials template (e.g. default template) on the line 230:

replace
$avatar = "<img class=\"avatar\" src=\"$mosConfig_live_site/components/com_testimonials/picout_centre.php?picout=$image&amp;pic_width=114\" alt=\"\"/>";
with:
$avatar = "<img class=\"avatar\" src=\"$mosConfig_live_site$image" width=\"144\" alt=\"\"/>";

But the images will load longer in this case and will be a bit crooked because of scaling.
JoomPlace.com, JoomlaLMS.com
Tech. Support
Last Edit: 2 years ago by Ann.

Re:How to get uploaded images to display? 2 years ago #12031

  • chris clay
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
We use Hostgator.com and GD Library is installed. Our site also has PhocaGallery installed, which requires GD Library, and that component isn't having a problem generating thumbnails. Here's the main photo gallery with thumbnails generated by PhocaGallery:

www.gardenculturevictoria.com/landscapin...toria-garden-designs

Any other ideas on how we can get the thumbnails working? I appreciate your second suggestion, but as you pointed out, the thumbnails won't look very good and will take a lot longer to load.

Thanks again for all your help.

Chris

Re:How to get uploaded images to display? 2 years ago #12032

  • Ann
  • OFFLINE
  • Moderator
  • Posts: 2601
  • Karma: 29
well,
if you have GD installed then maybe certain functions are disabled on your server that are used in the com_testimonials/picout_centre.php file,
if you could provide the FTP or admin access with Explorer we could definitely find the reason.
You can mail it to support@joomplace.com together with this thread's link.
JoomPlace.com, JoomlaLMS.com
Tech. Support
  • Page:
  • 1
Moderators: Maria_B
Time to create page: 0.56 seconds