Firefox PHP

Module: Embed Images

Posted by Maurice Makaay 
Re: Module: Embed Images
December 17, 2009 06:11AM
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
Re: Module: Embed Images
December 17, 2009 11:34AM
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.
Re: Module: Embed Images
December 28, 2009 02:02PM
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.

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
Re: Module: Embed Images
December 28, 2009 02:39PM
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
Re: Module: Embed Images
December 31, 2009 07:38AM
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.
Re: Module: Embed Images
January 02, 2010 10:05AM
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
Re: Module: Embed Images
January 02, 2010 12:27PM
Quote
Maurice Makaay
You could experiment with not doing the float:left. That will place every image on a single line.

That seems to have worked perfectly thanks Maurice.

Cracking mod by the way, it works really well for our forum.
Re: Module: Embed Images
April 08, 2010 02:59PM
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.
Re: Module: Embed Images
May 08, 2010 10:39PM
I found a double declaration in: mods/embed_images/viewers/dynadrive/code/thumbnailviewer.css:
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);
Re: Module: Embed Images
May 09, 2010 05:57AM
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
Sorry, only registered users may post in this forum.

Click here to login