Dabbledoo
make sure the user that is running the host for domain A has proper read wright permissions to the directory on host B
also check that you can view the images in your browser not sure the below example is how you have it pathed
http://uw714doc.sco.com/en/FD_files/Getting_to_a_file.html#Creating_a_link_to_a_directory
if none of that works try turning on template debugging in the control panel or i could add in some output so we can see what is going on
I was wandering if anybody could help. I have a feeling that my error is because we are hosting on a windows server:
Notice: Undefined index: DOCUMENT_ROOT in D:\Domains\pfh.org.uk\wwwroot\admin\plugins\pi.imgsizer.php on line 129
I believe that DOCUMENT_ROOT might not be supported. Sorry if this is a newbie question to still getting to grips with php and EE.
My code look like the following:
{exp:imgsizer:size src="{available_properties_image}" width="90" alt="{title}"}
Cheers, Darren
As suspected the DOCUMENT_ROOT on IIS isn’t supported but if you create a seperate php.ini file and set the doc_root.
; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
doc_root = "D:\Domains\pfh.org.uk\wwwroot"
Erin yes you can control the height with 1.5 the width is scaled proportionally. about your additional request for square sizes. i plan on doing this soon where it would resize depending on the width or height then chop off the additional “top and bottom” or “right and left” depending. very similar to how flickr does there “square size”
any news on square images (zoom crop) - that feature would certainly be very helpful.
thanks for a nice plugin.
Excellent plugin, but… I get following errormessage:
Notice: Undefined index: extension in /hsphere/local/home/felicia/expressionengine.aomedia.se/svante/plugins/pi.imgsizer.php on line 128.
The strange thing is that it resizes my image ok, but leaves the errormessage. Any clues?
Heres my code that I’m using:
{exp:imgsizer:size src="/images/uploads{exp:extract_url_plus show="i;lename.x;tension"}{bild_1} height="154" alt="{title}" parse="inward"}
I have found a bug (I think).
I am trying to call ImageSizer where I get the URL from some PHP code I have.
The following does not work, even though the image most definately exists:
{exp:imgsizer:size src="<?php echo "http://thedalzells.org/photos/September/IMG_2758.JPG" ?>" width="{img_size}" alt="{title}" justcheck="yes" debug="1"}
EDIT: OK, still an issue…it seems that this plugin doesn’t handle PHP properly.
I’m using the Image Sizer plugin to display an index of my entries, and all works great when all the images are there. However, when an entry does not have a image, I get the following error:
Notice: Undefined index: extension in …/plugins/pi.imgsizer.php on line 128
Is there a way to not have this error show up when there’s no image? I would like just nothing to show up. Here’s the code I’m using:
{exp:imgsizer:size src="/images/uploads/event_images{exp:extract_url_plus show="i;lename.x;tension"}{event_image} width="170" alt="{title}" parse="inward"}
I’ve tried putting in a conditional like this, but this doesn’t work either.
{if event_image != ""}
{exp:imgsizer:size src="/images/uploads/event_images{exp:extract_url_plus show="i;lename.x;tension"}{event_image} width="170" alt="{title}" parse="inward"}
{/if}
Also, strangely, the error only shows up in Firefox (Mac). Safari and Camino doesn’t show the error.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.