Register To Comment
Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Signature problem

  1. #1
    Yeah, me and Karoline voiced this problem a while back. How come we can't get our signatures onto the forum? They seem to fit and aren't that large in file size. However, we keep getting an error message (pasted into our sigs so you can see it). Any bloody reason why?

    Fix it as Shane would fix Envy, please.

  2. #2
    Is it an active generated GIF like you get when linking to image charts of Last.fm?

    There is a know issue with those in PHPBB latest version. I recall a workaround for that, but I don't know what it is.

  3. #3
    Quote Originally Posted by leorcc
    Is it an active generated GIF like you get when linking to image charts of Last.fm?

    There is a know issue with those in PHPBB latest version. I recall a workaround for that, but I don't know what it is.
    Dunno about Karoline, but I'm just trying to upload a .PNG image.

  4. #4

  5. #5
    It probably has to do with the PHP setting allow_url_fopen switched being switched off on the web server. I you can't switch it on, the only solution is a workaround.

    Re: It was not possible to determine the dimensions of the image

    Postby Jhong » Wed Jun 27, 2007 5:47 am

    Many servers have allow_url_fopen switched off.

    A quick workaround is to use cURL to fetch the image and check the size. The mod is as follows:

    OPEN: /includes/message_parser.php

    Find:
    Code:
                 if ($stats === false)
                 {
    AFTER, ADD:
    Code:
     
    if (function_exists('curl_exec'))
                {
                   $c_img = curl_init();
                   $c_timeout = 8; //The timeout, in seconds. You may want to change this
                   $c_max_filesize = 64000; //The max file size loaded into memory
                   curl_setopt($c_img, CURLOPT_URL, $in);
                   curl_setopt($c_img, CURLOPT_RETURNTRANSFER, 1);
                   @curl_setopt($c_img, CURLOPT_BUFFERSIZE, $c_max_filesize);
                   curl_setopt($c_img, CURLOPT_CONNECTTIMEOUT, $c_timeout);
                   curl_setopt($c_img, CURLOPT_FOLLOWLOCATION,1);
                   $grabbed_img = @curl_exec($c_img);
                   curl_close($c_img);
                   $stats[0] = $stats[1] = false;
                   if ($grabbed_img)
                   {
                      $grabbed_img = @imagecreatefromstring($grabbed_img);
                      $stats[1] = @imagesx($grabbed_img);
                      $stats[0]= @imagesy($grabbed_img);
                      unset($grabbed_img, $c_img);
                   }
                   if (!$stats[0] || !$stats[1])
                   {
                      $stats = false;
                   }
                }
             }
             if ($stats === false)
             {
    Save the file, and the problem should go away. I've tried hard to choose settings in order to prevent the server loading ahuge image into memory by accident, but it may need some tweaking.
    http://www.phpbb.com/community/viewtopi ... 1#p3066661

  6. #6
    kane's Avatar
    Roboteer

    I'll have a look at implementing this
    Kane Aston
    http://www.makerobotics.com

    Co-owner and builder of BEHEMOTH

  7. #7
    kane's Avatar
    Roboteer

    I've put the change in, but you'll need to log into you user control panels and tweek your signatures to see if it works.
    Kane Aston
    http://www.makerobotics.com

    Co-owner and builder of BEHEMOTH

  8. #8

  9. #9

  10. #10
    kane's Avatar
    Roboteer

    Your host probably does not allow hotlinking.
    Kane Aston
    http://www.makerobotics.com

    Co-owner and builder of BEHEMOTH

Register To Comment

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •