• It seems the thread (http://wordpress.org/support/10/1111#post-28) was cold so…

    The file upload works fine, but and thumbnail creation or insertion into my posts is not. No errors or any indication that I installed (or tried to) the hack. The only way I know I did something is that the image upload works, where before the hack, it did not.
    I went to Migon’s site and was impressed by the nested thumbnail graphics and am assuming that this hack does this very thing. Upload graphics, thumbnails them, inserts them into post text, and allows for thumbnail linked full image pop ups.
    I’ve been snooping and found a “require once” call to b2header.php. Am I supposed to have this file? (yes, obviously) If so where should have it come from, and where do I get it?

Viewing 5 replies - 1 through 5 (of 5 total)
  • It looks like that hack is for an older version of WP. Depending on what version you’re using, you may not have b2header.php. Since 1.0, WP filenames all use a wp- extension (rather than b2-).
    You *might* be able to replace the b2 references with equivalent WP ones, but that’d be for others wiser than I to say with certainty. 🙂

    I got the upload page to show and browse for image. Problem I ran into is this:
    Warning: getimagesize(/wp2w/wp-images/9.gif): failed to open stream: No such file or directory in /home/forcefor/public_html/wp2w/wp-admin/b2upload.php on line 230
    Warning: imagecreatefromgif(/wp2w/wp-images/9.gif): failed to open stream: No such file or directory in /home/forcefor/public_html/wp2w/wp-admin/resize.php on line 50
    Warning: imagecreatetruecolor(): Invalid image dimensions in /home/forcefor/public_html/wp2w/wp-admin/resize.php on line 127
    Fatal error: Call to undefined function: imagegif() in /home/forcefor/public_html/wp2w/wp-admin/resize.php on line 138
    ==============
    But then I went and tweak it abit, now it gives me this:
    Upload environment
    Upload path: home/public_html/wp2w/wp-images/
    Directory not Exists
    Max w or h
    150 px (you might edit this on line 25 in b2upload.php file)
    File Types:
    GIF – GIF98 NOT! supported
    JPG – JPG OK! – supported
    PNG – PNG OK! – supported
    PHP environment:
    openbase_dir – Something is wrong
    EXIF – EXIF NOT! supported
    ======================
    I am stuck at this point.

    Ok, I got this thing to upload > shows thumbnail’s link. But does it give clickable option to view full size? If it does has it, my copy of the hack is not generating it.

    Anonymous

    The problem is: this hack is written using GDlib and not imagemagick
    From http://www.php.net/imagegif:
    “Note: Since all GIF support was removed from the GD library in version 1.6, this function is not available if you are using that version of the GD library. Support is expected to return in a version subsequent to the rerelease of GIF support in the GD library in mid 2004.”
    So, no thumbnails for GIF files 🙁

    Update On This:
    Unisys’ Gif worldwide patent expires July 7th, 2004 and GIF support will likely be added back to GD shortly thereafter! So, we won’t have to wait much longer

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Thumbnail uploads hack / image upload>thumbnail ha’ is closed to new replies.