Module: Embed Images
Posted by Maurice Makaay
October 24, 2008 06:50AM |
Admin Registered: 20 years ago Posts: 8,532 |
That first one looks like it's the basic [img] tag in the bbcode module in action. That second one looks like the embed images output.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Re: Module: Embed Images October 24, 2008 06:55AM |
Registered: 18 years ago Posts: 81 |
Re: Module: Embed Images October 24, 2008 12:06PM |
Registered: 17 years ago Posts: 61 |
Quote
Maurice Makaay
So the problem is not that the images aren't rendered correctly. You are talking about the HTML rendering here. Since your max image size is quite large, you could opt for changing the module's css. In mods/embed_images/templates/emerald/css.tpl you can find some "float: left" styling. If you remove those floats, you might get what you want.
Additionally, you might check this message from this thread in which the same kind of issue is discussed. For the big allowed size this might be less useful though.
So I tried removing the "float: left" styles and still ended up with the same results.
Trying the modification done by Oliver Riesen in the link from your post results in an error (don't have the text, sorry) and the forum not displaying at all. Naturally, I undid that change. It might be that I am not 100% sure where to edit the thumbnail.tpl file with Oliver's changes.
Wallet Friendly Watch Forum
www.wf-wf.com
October 25, 2008 04:19AM |
Admin Registered: 20 years ago Posts: 8,532 |
Re: Module: Embed Images October 25, 2008 04:24AM |
Registered: 18 years ago Posts: 81 |
October 25, 2008 05:33AM |
Admin Registered: 20 years ago Posts: 8,532 |
Sorry, that must have been my crappy connection. I'm on some half-baken wireless connection here (visiting the Cork jazz festival and I'm in a bread & breakfast, tapping into the neighbours wireless I guess). The full story was that the module is enabled, but that it's only enabled to handle attachments to be shown inline. The other options (e.g. for handling [img]) were disabled.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Re: Module: Embed Images October 25, 2008 05:36AM |
Registered: 18 years ago Posts: 81 |
Re: Module: Embed Images November 20, 2008 04:54AM |
Registered: 16 years ago Posts: 7 |
Hi
Did someone have problem with loading image? I use upload attachement with embed Image. When I hit preview button, image is loading and loading but never get loaded. When I hit preview again it loads. The same problem with posting. I hit post, its loading and loading, I refresh page - then it shows. Is it something with cache?
Edited 1 time(s). Last edit at 11/20/2008 08:17AM by tomeki.
Did someone have problem with loading image? I use upload attachement with embed Image. When I hit preview button, image is loading and loading but never get loaded. When I hit preview again it loads. The same problem with posting. I hit post, its loading and loading, I refresh page - then it shows. Is it something with cache?
Edited 1 time(s). Last edit at 11/20/2008 08:17AM by tomeki.
November 20, 2008 09:19AM |
Admin Registered: 20 years ago Posts: 8,532 |
Could be, but I don't know what would cause it. I haven't seen this behavior myself, so it's hard to come up with a reason for this. Any javascript errors or so that are reported by the browser?
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



November 20, 2008 03:25PM |
Registered: 17 years ago Posts: 98 |
tomeki,
I see this behavior consistently as well. When you upload a picture, the first time you try to look at it, the picture never loads to the browser.
The second time you look at it, it's there - and will always be there afterwards.
This never bothered me much, since I always look at the new posts (and therefore generate the cached picture)
w/out diagnosing it, here's my take on what's happening. The caching-on-disk feature for embedding/uploading pictures is probably responsible for this. Somewhere in the code, it's getting the request for the pic, making the cached thumbnail, but never returning the result. When the second request comes in, the cached thumbnail is already made, so the cache logic returns it correctly.
I'm guessing tomeki stores his images in the DB, and I'm storing my images on disk, so I'm sure it's not the storage, but rather the caching.
Can anyone else reproduce this?
For me, this is a minor inconvenience at best, though. If it was not easily fixed, a nice workaround would be to force preview on a post before posting. That would create the cache thumbnail before the other users ever saw the post.
------------------------
Sean Phelan
Sites By Sequoia - Web Marketing ... The Experts at Building Your Success Online
I see this behavior consistently as well. When you upload a picture, the first time you try to look at it, the picture never loads to the browser.
The second time you look at it, it's there - and will always be there afterwards.
This never bothered me much, since I always look at the new posts (and therefore generate the cached picture)
w/out diagnosing it, here's my take on what's happening. The caching-on-disk feature for embedding/uploading pictures is probably responsible for this. Somewhere in the code, it's getting the request for the pic, making the cached thumbnail, but never returning the result. When the second request comes in, the cached thumbnail is already made, so the cache logic returns it correctly.
I'm guessing tomeki stores his images in the DB, and I'm storing my images on disk, so I'm sure it's not the storage, but rather the caching.
Can anyone else reproduce this?
For me, this is a minor inconvenience at best, though. If it was not easily fixed, a nice workaround would be to force preview on a post before posting. That would create the cache thumbnail before the other users ever saw the post.
------------------------
Sean Phelan

Sorry, only registered users may post in this forum.