Module: Embed Images
Posted by Maurice Makaay
December 17, 2009 06:11AM |
Admin Registered: 20 years ago Posts: 8,532 |
You already asked that in a thread that seems more appropriate for your issue than this one (the HTML-in-message one). I have never seen this happen with this module alone.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Re: Module: Embed Images December 17, 2009 11:34AM |
Registered: 15 years ago Posts: 41 |
I asked in this section because I noticed that the same url added to the image was being altered but the same url inside the same post not added to an image was ok. Presumeably then the html in a message wasn't the cause of it but the embed image module. You can see this occuring here: [bluesplayer.co.uk]
The url added to the 'Purchase Button' has the extra code but the 'Buy Now' link underneath without an image doesn't have the extra code. With the extra code the url sends the user to a different page. The correct url on the Buy Now link sends the user to a different page and also adds the discount automatically.
Edited 2 time(s). Last edit at 01/12/2010 04:57PM by Bluesplayer.
The url added to the 'Purchase Button' has the extra code but the 'Buy Now' link underneath without an image doesn't have the extra code. With the extra code the url sends the user to a different page. The correct url on the Buy Now link sends the user to a different page and also adds the discount automatically.
Edited 2 time(s). Last edit at 01/12/2010 04:57PM by Bluesplayer.
December 28, 2009 02:02PM |
Registered: 20 years ago Posts: 609 |
Embed image module seem to be generating lots of php error in my event logger.
here a c/p one of the log but they are all simlar with with different image links and all seem to be annoymous user.
Any idea why the error is triggered?
Thank you
Bill
here a c/p one of the log but they are all simlar with with different image links and all seem to be annoymous user.
Anonymous user User IP address = x.x.x.x Additional details: Message: PHP error: <h1>Modscript Error</h1><br/>Missing "module" argument. PHP error generated at /home/zzzz/public_html/addon.php:105 Back trace: Function trigger_error called at {path to Phorum}/addon.php:105 ---- Request info: HTTP_HOST = www.fzfzfzfzfzf.com REQUEST_URI = /addon.php?55%2Cmodule=embed_images%2Cfile_id%3D148625 QUERY_STRING = 55%2Cmodule=embed_images%2Cfile_id%3D148625
Any idea why the error is triggered?
Thank you
Bill
December 28, 2009 02:39PM |
Admin Registered: 20 years ago Posts: 8,532 |
Looks like bogus requests to me. The "&" chars have been replaced with "%2C". I don't know where the requests are coming from, but they are harmless. I doubt that these are genuine requests that are generated from within Phorum.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Re: Module: Embed Images December 31, 2009 07:38AM |
Registered: 15 years ago Posts: 60 |
Hi,
I am after a little assistance with our site template and the embed images mod if that is possible. The mod it's self is working perfectly, however with our template there are a few oddities I would like to solve.
If there is more than one image in the post then subsequent text appears alongside the images rather than below as you would expect, also if the post contains a series of smaller images then these images are place side by side but are staggered rather than vertically aligned. (for an example see message 2 - [www.tankslap.co.uk])
As the module behavior is correct in emerald I would understand if you are unable to help, but any pointers to areas of css or template layout that could be incorrect would be very much appreciated.
Thanks, Jon.
Edited 1 time(s). Last edit at 12/31/2009 07:55AM by tankslap.
I am after a little assistance with our site template and the embed images mod if that is possible. The mod it's self is working perfectly, however with our template there are a few oddities I would like to solve.
If there is more than one image in the post then subsequent text appears alongside the images rather than below as you would expect, also if the post contains a series of smaller images then these images are place side by side but are staggered rather than vertically aligned. (for an example see message 2 - [www.tankslap.co.uk])
As the module behavior is correct in emerald I would understand if you are unable to help, but any pointers to areas of css or template layout that could be incorrect would be very much appreciated.
Thanks, Jon.
Edited 1 time(s). Last edit at 12/31/2009 07:55AM by tankslap.
January 02, 2010 10:05AM |
Admin Registered: 20 years ago Posts: 8,532 |
The embed images module uses float:left for the outer div, so the messages will be floated to the left. The staggered images are staggering, because there are two <br>'s before every image. Possibly the translation of newlines that are in the source of the message.
You could experiment with not doing the float:left. That will place every image on a single line.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
You could experiment with not doing the float:left. That will place every image on a single line.
Maurice Makaay
Phorum Development Team



Re: Module: Embed Images January 02, 2010 12:27PM |
Registered: 15 years ago Posts: 60 |
Re: Module: Embed Images April 08, 2010 02:59PM |
Registered: 14 years ago Posts: 13 |
Hello!
I want my images to be shown in *exact* the given width x height parameters in the module setting.
So I need to cut the images to the corresponding width/height ratio and resize them after that.
But: where can I find the code position for resizing?
May be I'm too tired but I haven't found it yet :-/
Edit: ok, I finally have found it - embed Images calls "phorum_api_image_thumbnail" which does the resizing. I have now created "phorum_api_image_thumbnail_2" which gives back me thumbnails of always max_w * max_h.
Is there a way to resize the original images to given maximum values? When using Lightbox images of new digital cams are much higher/wider that the screen so it is really ugly.
My lightbox also has no visible buttons - I only see the underlines of the links, not the links themselves.
Best regards,
Christoph
Edited 4 time(s). Last edit at 04/12/2010 06:57AM by jogger.
I want my images to be shown in *exact* the given width x height parameters in the module setting.
So I need to cut the images to the corresponding width/height ratio and resize them after that.
But: where can I find the code position for resizing?
May be I'm too tired but I haven't found it yet :-/
Edit: ok, I finally have found it - embed Images calls "phorum_api_image_thumbnail" which does the resizing. I have now created "phorum_api_image_thumbnail_2" which gives back me thumbnails of always max_w * max_h.
Is there a way to resize the original images to given maximum values? When using Lightbox images of new digital cams are much higher/wider that the screen so it is really ugly.
My lightbox also has no visible buttons - I only see the underlines of the links, not the links themselves.
Best regards,
Christoph
Edited 4 time(s). Last edit at 04/12/2010 06:57AM by jogger.
Re: Module: Embed Images May 08, 2010 10:39PM |
Registered: 16 years ago Posts: 753 |
I found a double declaration in: mods/embed_images/viewers/dynadrive/code/thumbnailviewer.css:
Since it might relate to this module: I was wondering how I can display a message including its attached images. The following displays the body content with a link to the image, ie.
I am fetching the messages with:
Quote
cursor:hand;
Since it might relate to this module: I was wondering how I can display a message including its attached images. The following displays the body content with a link to the image, ie.
Quote
[attachment 15 contact_flower.gif]
I am fetching the messages with:
Language: PHP$threads = phorum_db_get_thread_list (0, TRUE); $messages = phorum_format_messages($threads);
May 09, 2010 05:57AM |
Admin Registered: 20 years ago Posts: 8,532 |
I do not fix issues in third party libraries that I use in Embed Images. Also, it's not really an issue if there's a duplicate. I doubt that this renders anything broken for you.
Your question barely has anything to do with this module. If you want to know how to display messages, check out read.php and the read related templates.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Your question barely has anything to do with this module. If you want to know how to display messages, check out read.php and the read related templates.
Maurice Makaay
Phorum Development Team



Sorry, only registered users may post in this forum.