Firefox PHP

Module: Embed Images

Posted by Maurice Makaay 
Re: Module: Embed Images
October 22, 2008 05:55AM
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
Re: Module: Embed Images
October 22, 2008 06:15AM
The point is that float: left; allows images to stand side by side ...

Choice is not that easy!
Re: Module: Embed Images
October 22, 2008 06:31AM
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
Re: Module: Embed Images
October 23, 2008 01:08AM
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!
Re: Module: Embed Images
October 23, 2008 05:55AM
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?
Re: Module: Embed Images
October 23, 2008 06:18AM
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
Re: Module: Embed Images
October 23, 2008 06:42AM
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:


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 &quot;https&quot; - 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
Re: Module: Embed Images
October 23, 2008 11:08AM
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
Re: Module: Embed Images
October 23, 2008 11:22AM
I have tested some url who give us problem by writing them in this editor and making a preview : all of them works perfectly ... and fast!

An it is also possible to center the images or to center them in a row! do you use an improved embed_images?
Re: Module: Embed Images
October 24, 2008 12:16AM
Hello, that's me again!

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.

Click here to login