Page 1 of 1
s09e01 - Review Image SUPPORT / QUESTIONS / CHAT
Posted: Thu Jul 08, 2021 9:48 pm
by burt
Addon:
Allows possibility of customer uploading an image as part of their review.
Download:
viewtopic.php?f=28&t=718
--
Questions/Support
Re: s01e08 & s01e09 - Layout Modules
Posted: Sun Mar 13, 2022 9:45 am
by Omar_one
@ecartz I get error (error_log file)
PHP Notice: Undefined index: reviews_image in
Code: Select all
/templates/override/includes/modules/content/product_info/tpl_cm_pi_reviews.php on line 11
here is the lines 10-12
Code: Select all
// new added to get the review image if such image exists
echo new Image('pub/' . $review['reviews_image'], ['class' => 'float-left', 'loading' => 'lazy']);
// eof
Re: 1.0.8.14 Questions / Comments / Concerns
Posted: Sun May 01, 2022 8:30 am
by radhavallabh
Hi dear after upgrade to 1.0.8.14
I still get below errors in admin on reviews.php when I select a review with image
Warning: array_merge(): Expected parameter 2 to be an array, null given in /xx/xx/admin/includes/actions/reviews/views/default.php on line 83
Warning: Invalid argument supplied for foreach() in /xx/xx/admin/includes/classes/object_info.php on line 20
On a review without image on selection I get below error on same review.php page-
Notice
: Trying to get property 'reviews_image' of non-object in
/xx/xx/includes/hooks/admin/reviews/image.php
on line
17
Re: 1.0.8.18 Questions / Comments / Concerns
Posted: Mon Sep 12, 2022 3:14 pm
by burt
MyGamesShop wrote: ↑Sun Sep 11, 2022 3:12 am
<img class="float-left img-fluid" loading="lazy" src="pub/" border="0" title="" />
This part here does not include the image filename...it should be something like;
src="pub/name_of_image.jpg"
This would be the first thing for you to check. Does the image exist? Is it the image filename stored in the reviews table? Is the script grabbing the filename?
Re: s09e01 - Review Image SUPPORT / QUESTIONS / CHAT
Posted: Mon Sep 09, 2024 9:12 am
by 14Steve14
I have had a customer add an image to a review but the image is huge. Is there a way to alter the size of an image without the need to go into the pub folder and manually change them to something smaller. I have changed the code to
Code: Select all
echo new Image('pub/' . $review['reviews_image'], ['class' => 'float-left', 'loading' => 'lazy', 'style' => 'width: 100px; height: 100px;']);
but that expands the image outside of the blockquote area.
Re: s09e01 - Review Image SUPPORT / QUESTIONS / CHAT
Posted: Mon Sep 09, 2024 9:21 am
by burt
Try;
echo new Image('pub/' . $review['reviews_image'], ['class' => 'float-left w-25', 'loading' => 'lazy']);
Re: s09e01 - Review Image SUPPORT / QUESTIONS / CHAT
Posted: Mon Sep 09, 2024 10:53 am
by 14Steve14
burt wrote: ↑Mon Sep 09, 2024 9:21 am
Try;
echo new Image('pub/' . $review['reviews_image'], ['class' => 'float-left w-25', 'loading' => 'lazy']);
Thanks Gary.
Tried that and it seems to be dependant on the size of the image that was uploaded. Tied adding on a test site two reviews on the same product with two different sized images uploaded, one to each review the reviews section sort of starts to look all wrong and out of proportion if you know what I mean.
I will also have to look into the blockquote css to see if there is a way to make it expand to the maximum size of the images. Bound to be something online.
Re: s09e01 - Review Image SUPPORT / QUESTIONS / CHAT
Posted: Mon Sep 09, 2024 11:09 am
by burt
Otherwise try sticking the image into the grid. I haven't looked at this addon since it was released to Supporters...
Try;
Code: Select all
echo '<div class="w-25 float-left">';
echo new Image('pub/' . $review['reviews_image'], ['loading' => 'lazy']);
echo '</div>';
This is addition of a div (width 25 of the container and floated left).
And remove float-left from the image.