Can anyone tell me why a large image (one exceeding the define width) would not be scaled down. I'm seeing an image place holder rather than the image in the user comment.
note: i'm using the latest extension for attachments and inline
hi fnostro. maybe your php isn't configured for image manipulations. to see the error(s) just copy the url of the not displaying image in an empty browser window or post the link here.
More info - the image place holders exist for only IE (7).
In Firefox what I see is a filename rather than the scaled down image.
the following is rendered for both IE and FF:
===============================================================================
<div class="Attachments" id="Attachments_23">
<ul>
<div>
<img src="/extensions/InlineImages/image.php?AttachmentID=13" alt="CaptainsIsland.JPG" />
</div>
</ul>
</div>
===============================================================================
I don't see an error and none is reported in the browser. If it's a php thing can you point me to the php.ini parameter to look for?
hi all!
has anybody found a solution for adding inline images on the first post?
it's a disadvantage to first post the comment and uploading the file
and then you have to edit the comment and add the inline images...
my idea is:
adding another tag -> the original where [Image_*]. the new are [ImageNum_*] (or [Image*] without the underscore).
this tag uses the number of the image of the current comment!
i already implemented this on my forum. but found 1 major bug:
the multiple file upload stores the files in reverse order?!?
the first image i upload gets the highest database id.
this means, if i upload 3 images, [ImageNum_1] is my 3rd image...
update:
a simple sorting before storing the files in the database removes the "sorting bug".
I would like to have my thumbnails resized to a max width of say 200px, and the large images have a max of 750px. Is this possible?
On the options page there is the 'Maximum Width' parameter, this controls the size of the large image? I am a wee bit lost...
EDIT. Ok, so Max width controls the width the image displays at before you click it. And when viewed, you still see it scaled down to this width, even if the image is bigger. Can the click through always go to the full size image, displayed at original dimensions, by default? Or what about an option for this to happen, as long as the original image is less than a specified max width for the large image.
Cheerz!
hello there.. my uploads result in broken images although the images load to the server successfully. any idea?
the img-urls seem to be correct (.../extensions/InlineImages/image.php?AttachmentID=1)
thanks alot ithcy.. but u can access all files already :)
http://derfreddy.free.fr/vanilla/extensions/MultiFileUpload/
http://derfreddy.free.fr/vanilla/uploads/2007/07/
are u sure the filesize was zero when u dowloaded the image? it says 8kb here
btw are the resized images supposed to have a double ending?
there is a bug in this extension similar to the one in JQMedia - it does not respect the user's text-only (worksafe) mode setting, but displays the images in the comment body regardless.
here's a fix: in InlineImages/default.php, change line 52 from:
$ImageBody = '<img src="'.$WebRoot.'extensions/InlineImages/image.php?AttachmentID='.$Attachment->AttachmentID.'" alt="'.$Attachment->Name.'" />'; to:
if ($AttachmentManager->Context->Session->User->Preference("HtmlOn") == 1)
{
$ImageBody = '<img src="'.$WebRoot.'extensions/InlineImages/image.php?AttachmentID='.$Attachment->AttachmentID.'" alt="'.$Attachment->Name.'" />';
} else {
$ImageBody = $Attachment->Name;
} this is just one approach, of course. the important thing is that Context->Session->User->Preference("HtmlOn") is respected.
Comments
function StripShit($guff) { $guff = str_replace("'", "x", $description); return $guff; }
Posted: Monday, 30 April 2007 at 3:01PM
note: i'm using the latest extension for attachments and inline
maybe your php isn't configured for image manipulations.
to see the error(s) just copy the url of the not displaying image in an empty browser window or post the link here.
regards, J
here it comes..
thank u for checking
I'm thinking it's a corrupt image?
Posted: Friday, 13 July 2007 at 7:30AM
derfreddy, if you want to give me a server login, i can probably figure it out.
here's a fix:
in InlineImages/default.php, change line 52 from:
$ImageBody = '<img src="'.$WebRoot.'extensions/InlineImages/image.php?AttachmentID='.$Attachment->AttachmentID.'" alt="'.$Attachment->Name.'" />';
to:
if ($AttachmentManager->Context->Session->User->Preference("HtmlOn") == 1) { $ImageBody = '<img src="'.$WebRoot.'extensions/InlineImages/image.php?AttachmentID='.$Attachment->AttachmentID.'" alt="'.$Attachment->Name.'" />'; } else { $ImageBody = $Attachment->Name; }
this is just one approach, of course. the important thing is that Context->Session->User->Preference("HtmlOn") is respected.