Firefox PHP

Module: Embed Images

Posted by Maurice Makaay 
Re: Module: Embed Images
October 29, 2009 05:16AM
It seems that there is a compatibility problem with minify addon ... when minify is loaded, images are not displayed :-)

THX

IZ
Re: Module: Embed Images
November 11, 2009 02:26PM
If you use Dynamic Drive. the last line of the JS it inserts (thumbnailviewer.createthumbBox();) generates the associated HTML, but the script appears in the head, so as soon as it does that, the browser stops parsing it as head and assumes it's into the body, so when the browser gets to the actual </head> and <body> tags, it treats them as an unmatched </head> that it ignores and an extra <body> whose attributes it has to migrate to the earlier implied <body>. Doesn't really break anything, but it's a little sloppy.
Re: Module: Embed Images
November 25, 2009 10:07PM
Hello to anyone who can help. I installed the embed images module and when I try to embed an image I get the a small "X" where the image is supposed to be. What am I doing wrong? I like the way this works, but I am not having such luck. Please help.


Re: Module: Embed Images
November 26, 2009 01:26PM
Thanks and I hope all are having a great holiday. I figured it out by reinstalling and installing the mods with the standard package.
Re: Module: Embed Images
November 26, 2009 02:05PM
I'm not sure what the error was, but I'm glad you got it to work.

If others find this part of the thread with the same problem: check out the webserver's error log or specific PHP error log. There might be hints why the resizing isn't working. Possibilities could be things like restrictions on the PHP installation or system setup issues that block the webserver from downloading images for resizing.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Embed Images
November 27, 2009 08:45AM
Hi Maurice,

it seems that /mods/embed_images/viewers/dynadrive/code/thumbnailviewer.js tries to load an image from root folder:

defineLoading: '<img src="loading.gif" \/> Loading Image...', //Define HTML for "loading" div

I think path is missing:

defineLoading: '<img src="mods\/embed_images\/viewers\/dynadrive\/code\/loading.gif" \/> Loading Image...', //Define HTML for "loading" div

Regards
Oliver


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Module: Embed Images
November 29, 2009 11:48AM
If I would change that code, it means that I would be changing dynadrive's code, which makes it less easy to upgrade. The path should be overwritten from the function image_viewer_common() in viewers/dynadrive/functions.php.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Embed Images
December 04, 2009 09:21AM
I like the how you can use the Embed Attachments module in conjunction with this module to get attached images to display inside the message body of posts.

However, when someone quotes your post, the image is not rendered in the quote. I would love if this could be added as an option. This way, when someone quotes the picture will be displayed within the bbcode quote instead of rendered as "(attachment 101 mypic.jpg)".

We have a picture sharing post that is several pages long. Sometimes new ones make comments about older posts, and without the image displaying inside the quote, we have no idea what they are talking about.

- Bob
Re: Module: Embed Images
December 04, 2009 11:27AM
The problem is that the attachment does not belong to that post. The attachment rendering only works for attachments that belong to the same post.

The way in which this works, is that the rendering is done with the list of attachments as a starting point. So for each attachment, the [attachment ..] link is processed. That's why attachments links from other messages won't render currently.

For what you require, the whole process would need to be different. We'd have to scan the body for [attachment ..] links to replace them. One extra issue that would rise from doing things this way, is that you can try to include images from random threads in a posting. Security-wise, this would need some extra code to not only find these attachment links, but also to check if the attachment is part of the same thread and if the authenticated user is authorized to view the image.

I will keep the idea in mind, but don't expect this overhaul to be implemented really soon.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Embed Images
December 17, 2009 03:41AM
Hi

Any urls that are added to the images are being altered to &amp should they contain & in the string. How can I fix this?

Regards
Sorry, only registered users may post in this forum.

Click here to login