Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Woo! Just tested it and it works great so far. Thanks Valentinas!

    Valentinas, you’re absolutely right. I’m pretty sure this is an issue in the latest version of Safari on OS X 10.6.5. When you sign into a service with Private Browsing on, then later disable it, it won’t let you sign out (or for that matter back in if your session times out). Nothing to do with your plugin, which is awesome by the way. I can’t wait to see how it evolves (hopefully with avatar support ;-).

    Thanks Valentinas, I updated just to be safe, but it seems to have been an issue with Safari’s Private Browsing refusing to reset/release/create cookies.

    You mention grabbing it from SVN, is that public and something you can share? I have a version that seems to work great if you’re already logged in but fails if you’re not. If you’re not logged in it just refreshes the login form (in the popup window).

    Thanks!

    Yea, the code above did get messed up. To revert back to GD 1.6.2 or anything before 2.0 you’ll have to replace the following two lines:

    $thumbnail = imagecreatetruecolor($image_new_width, $image_new_height);
    @ imagecopyresampled($thumbnail, $image, 0, 0, 0, 0, $image_new_width, $image_new_height, $image_attr[0], $image_attr[1]);

    with this:

    if (gd_version() >= 2) {
    $thumbnail = imagecreatetruecolor($image_new_width, $image_new_height);
    @ imagecopyresampled($thumbnail, $image, 0, 0, 0, 0, $image_new_width, $image_new_height, $image_attr[0], $image_attr[1]);
    } else {
    $thumbnail = imagecreate($image_new_width, $image_new_height);
    @ imagecopyresized($thumbnail, $image, 0, 0, 0, 0, $image_new_width, $image_new_height, $image_attr[0], $image_attr[1]);
    imagejpeg($thumbnail, substr($file, 0, strrpos($file, '/')) . "/temp.jpg");
    $thumb = @imagecreatefromjpeg(substr($file, 0, strrpos($file, '/')) . "/temp.jpg");
    }

    Then add the gd_version() function from above and you should be good to go. You’ll notice the code above is missing two forward slashes and fails to rename the ‘imagecoypresampled()’ function.

Viewing 5 replies - 1 through 5 (of 5 total)