Module: Embed Images
Posted by Maurice Makaay
October 22, 2008 05:55AM |
Admin Registered: 20 years ago Posts: 8,532 |
The float left is not a part of its greatness. If you don't want them floating, simply make them centered by changing the style sheet.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Re: Module: Embed Images October 22, 2008 06:15AM |
Registered: 18 years ago Posts: 81 |
October 22, 2008 06:31AM |
Admin Registered: 20 years ago Posts: 8,532 |
You mean that the user should be able to choose?
Did you actually try out to center the image? That should work just fine.
For example:
[img]...[/img][img]...[/img][img]...[/img]


[center][img]...[/img][/center]

Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Did you actually try out to center the image? That should work just fine.
For example:
[img]...[/img][img]...[/img][img]...[/img]



[center][img]...[/img][/center]

Maurice Makaay
Phorum Development Team



Re: Module: Embed Images October 23, 2008 01:08AM |
Registered: 18 years ago Posts: 81 |
I do not understand: even with a fresh install of Phorum and embed_images, I can't center images though I see your pinguin perfectly centered, whichever the browser I use: firefox, chrome, opera ????
With the poor IE of course it doesn't work as well, and another quirk, in the editor the color or the size selector pops up, but it disappears imediately. On your site as well!
With the poor IE of course it doesn't work as well, and another quirk, in the editor the color or the size selector pops up, but it disappears imediately. On your site as well!
Re: Module: Embed Images October 23, 2008 05:55AM |
Registered: 18 years ago Posts: 81 |
Another quirk.
One user of our site has started a successful (1878 messages, 67672 views) thread about wines labels.
There many pictures on each page, and it seems embed messages has problem to convert them, there many many "Image error
The database connection failed. Please check your database configuration in include/db/config.php. If the configuration is okay, check if the database server is running."
Of course there are a lot of URL with illegal characters, but not all of them, for instance, what's wrong with [img265.imageshack.us] ?
You may see it at: [www.lapassionduvin.com]
My question: is it possible to disable embed_images for a particular thread?
One user of our site has started a successful (1878 messages, 67672 views) thread about wines labels.
There many pictures on each page, and it seems embed messages has problem to convert them, there many many "Image error
The database connection failed. Please check your database configuration in include/db/config.php. If the configuration is okay, check if the database server is running."
Of course there are a lot of URL with illegal characters, but not all of them, for instance, what's wrong with [img265.imageshack.us] ?
You may see it at: [www.lapassionduvin.com]
My question: is it possible to disable embed_images for a particular thread?
October 23, 2008 06:18AM |
Admin Registered: 20 years ago Posts: 8,532 |
I don't know what's going wrong there. Anything visible in your error log or Phorum event log that could tell us what's going wrong here?
Disabling for a specific thread is not possible.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Disabling for a specific thread is not possible.
Maurice Makaay
Phorum Development Team



Re: Module: Embed Images October 23, 2008 06:42AM |
Registered: 18 years ago Posts: 81 |
I have tested it at home, I displayed the first page of that thread, i got 7 pages of log, in Phorum event log, but they are all the same, only two kind:
and
Quote
PHP warning: dl() [<a href='function.dl'>function.dl</a>]: Not supported in multithreaded Web servers - use extension=imagick.so in your php.ini
PHP warning generated at E:\phorum-5.2.9a\include\api\image.php:177
Back trace:
Function dl called at
{path to Phorum}\include\api\image.php:177
----
Function phorum_api_image_thumbnail called at
{path to Phorum}\mods\embed_images\embed_images.php:754
----
Function phorum_mod_embed_images_addon called
----
Function call_user_func called at
{path to Phorum}\common.php:1566
----
Function phorum_hook called at
{path to Phorum}\addon.php:137
----
Request info:
HTTP_HOST = localhost
HTTP_REFERER = [localhost]
REQUEST_URI = /lpv59/addon.php?50,module=embed_images,check_scaling=1,url=http%3A%2F%2Fwww.toadhollow.com%2Fimages%2F2001_katrina_merlot.jpg
QUERY_STRING = 50,module=embed_images,check_scaling=1,url=http%3A%2F%2Fwww.toadhollow.com%2Fimages%2F2001_katrina_merlot.jpg
and
Quote
Additional details:
Message:
PHP notice: file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
PHP notice generated at E:\phorum-5.2.9a\include\api\http_get.php:387
Back trace:
Function file_get_contents called at
{path to Phorum}\include\api\http_get.php:387
----
Function phorum_api_http_get called at
{path to Phorum}\mods\embed_images\embed_images.php:737
----
Function phorum_mod_embed_images_addon called
----
Function call_user_func called at
{path to Phorum}\common.php:1566
----
Function phorum_hook called at
{path to Phorum}\addon.php:137
----
Request info:
HTTP_HOST = localhost
HTTP_REFERER = [localhost]
REQUEST_URI = /lpv59/addon.php?50,module=embed_images,check_scaling=1,url=https%3A%2F%2Fstore.nexternal.com%2Fbonnydoon%2Fimages%2F2005%2520Ferraris%2520Piemontese_front_72dpi1.jpg
QUERY_STRING = 50,module=embed_images,check_scaling=1,url=https%3A%2F%2Fstore.nexternal.com%2Fbonnydoon%2Fimages%2F2005%2520Ferraris%2520Piemontese_front_72dpi1.jpg
October 23, 2008 11:08AM |
Admin Registered: 20 years ago Posts: 8,532 |
That first one is mainly a warning that can be ignored.
That second one might imply that there are files that are on an https server. For loading those, PHP needs to have SSL support.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
That second one might imply that there are files that are on an https server. For loading those, PHP needs to have SSL support.
Maurice Makaay
Phorum Development Team



Re: Module: Embed Images October 23, 2008 11:22AM |
Registered: 18 years ago Posts: 81 |
Re: Module: Embed Images October 24, 2008 12:16AM |
Registered: 18 years ago Posts: 81 |
Hello, that's me again!
I have made a preview of that code on your website (it displays wine labels):
I have got:
Home, with a fresh install of Phorum 5.2.9a and embed_images 1.0.8 (I did not change any default setting) I have got:
not exactly the same ... worse, home, images are not centered ...
What explains the difference and the misfunction?
Edited 1 time(s). Last edit at 10/24/2008 12:22AM by Bertrand Le Guern.
I have made a preview of that code on your website (it displays wine labels):
I have got:
<div class="message-body"> <center class="bbcode"> <img src="[pinupwine.com]; class="bbcode" border="0" /> </center><br /> <center class="bbcode"> <img src="[pinupwine.com]; class="bbcode" border="0" /><img src="[pinupwine.com]; class="bbcode" border="0" /> </center> </div> </div>
Home, with a fresh install of Phorum 5.2.9a and embed_images 1.0.8 (I did not change any default setting) I have got:
<div class="message-body"> <center class="bbcode"> <div id="div_baa6278af0c807f36bdae8a384a5aa83" class="mod_embed_images"> <div id="imagediv_baa6278af0c807f36bdae8a384a5aa83" class="mod_embed_images_image"> <noscript> <div> <a href="[pinupwine.com] src="[localhost]; id="image_baa6278af0c807f36bdae8a384a5aa83" alt="06Platinum_label.jpg" title="06Platinum_label.jpg" name="image_baa6278af0c807f36bdae8a384a5aa83" /></a> </div></noscript> </div> <div class="mod_embed_images_info" id="info_baa6278af0c807f36bdae8a384a5aa83"> <a id="link_baa6278af0c807f36bdae8a384a5aa83" href="[pinupwine.com]; name="link_baa6278af0c807f36bdae8a384a5aa83">06Platinum_label.jpg</a> </div> </div><script type="text/javascript"> //<![CDATA[ mod_embed_images_loadimage('baa6278af0c807f36bdae8a384a5aa83', '[localhost];, '[pinupwine.com];, '[localhost];, '', 289522, 200, 200, 'Loading image ...', false); //]]> </script> </center><br /> <center class="bbcode"> <div id="div_f5fb20ee89d9a2ad15de2a18090e41d1" class="mod_embed_images"> <div id="imagediv_f5fb20ee89d9a2ad15de2a18090e41d1" class="mod_embed_images_image"> <noscript> <div> <a href="[pinupwine.com] src="[localhost]; id="image_f5fb20ee89d9a2ad15de2a18090e41d1" alt="04Cabaret_label.jpg" title="04Cabaret_label.jpg" name="image_f5fb20ee89d9a2ad15de2a18090e41d1" /></a> </div></noscript> </div> <div class="mod_embed_images_info" id="info_f5fb20ee89d9a2ad15de2a18090e41d1"> <a id="link_f5fb20ee89d9a2ad15de2a18090e41d1" href="[pinupwine.com]; name="link_f5fb20ee89d9a2ad15de2a18090e41d1">04Cabaret_label.jpg</a> </div> </div><script type="text/javascript"> //<![CDATA[ mod_embed_images_loadimage('f5fb20ee89d9a2ad15de2a18090e41d1', '[localhost];, '[pinupwine.com];, '[localhost];, '', 289522, 200, 200, 'Loading image ...', false); //]]> </script> <div id="div_380361d1047148a092291be5ad69db65" class="mod_embed_images"> <div id="imagediv_380361d1047148a092291be5ad69db65" class="mod_embed_images_image"> <noscript> <div> <a href="[pinupwine.com] src="[localhost]; id="image_380361d1047148a092291be5ad69db65" alt="04Platinum_label.jpg" title="04Platinum_label.jpg" name="image_380361d1047148a092291be5ad69db65" /></a> </div></noscript> </div> <div class="mod_embed_images_info" id="info_380361d1047148a092291be5ad69db65"> <a id="link_380361d1047148a092291be5ad69db65" href="[pinupwine.com]; name="link_380361d1047148a092291be5ad69db65">04Platinum_label.jpg</a> </div> </div><script type="text/javascript"> //<![CDATA[ mod_embed_images_loadimage('380361d1047148a092291be5ad69db65', '[localhost];, '[pinupwine.com];, '[localhost];, '', 289522, 200, 200, 'Loading image ...', false); //]]> </script> </center><br /> </div> </div>
not exactly the same ... worse, home, images are not centered ...
What explains the difference and the misfunction?
Edited 1 time(s). Last edit at 10/24/2008 12:22AM by Bertrand Le Guern.
Sorry, only registered users may post in this forum.