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. 🙂
Anonymous
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