WordPress.org

Ready to get started?Download WordPress

Forums

GD Image thumbnailer for uploads (8 posts)

  1. seraph
    Member
    Posted 10 years ago #

    I'm impressed. It seems that no one is really interested in uploading images with thumbnails. Weird. Oh well.
    *gets started on adding B&W effect to function for kicks

  2. scooter
    Member
    Posted 10 years ago #

    thats an awesome hack. I would definately use that. So don't judge the reaction so far.

  3. NuclearMoose
    Member
    Posted 10 years ago #

    Kevin,
    I posted a comment and a question on your site. I visited the site just now, and it appears that you are doing some work on it because I cannot access the link that you provide above.
    Craig.

  4. seraph
    Member
    Posted 10 years ago #

    It has been fixed :) There's an apology note even. Sorry.

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    I've installed the thumbnailer, and its making thumbnails for me... however:
    (a) I had to comment out "imageantialias($image, TRUE);" in thumbnails.php because of a PHP error message saying that imageantialias() is an unknown function; and
    (b) Though I have thumbnails, the upload.php script still only suggests that I insert the large image into my blog. i.e. To insert the thumbnail I need to go looking for it myself.
    Oh and while I'm bothering you... Do you know of any upload.php hacks which allow you to upload a .DOC or .PDF file, and insert a clickable "download" icon into your blog?

  6. seraph
    Member
    Posted 10 years ago #

    hmmm don't know about that last. as for the window suggesting what to put in the post, I'll fix that and post it.

  7. larrikin
    Member
    Posted 10 years ago #

    Where exactly is the link to the uploader (in the actual wp)? Ive got it installed but I can't seem to find it.

  8. Sebastian
    Member
    Posted 10 years ago #

    Hi, the thumbnailer ist pretty cool!
    I changed the code a bit, so it inserts a link from the thumbnail to the full image.
    But the real problem isn´t solved yet. If you upload a picture without thumbnail creation, the script tries to insert a thumbnail link. I think it only need some fixes in that if-loops.
    Here´s the piece of code:
    search:
    if ( ereg('image/',$img1_type)) {
    $piece_of_code = "<img src="$fileupload_url/$img1_name" alt="$imgdesc" />";
    } else {
    $piece_of_code = "$imgdesc";
    };

    replace with:
    if ( ereg('image/',$img1_type)) {
    $piece_of_code = "<img src="$fileupload_url/thumb-$img1_name" border="0" alt="" hspace="5" vspace="5" align="left"/>";
    } else {
    $piece_of_code = "$imgdesc";
    };

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.