WordPress.org

Ready to get started?Download WordPress

Forums

Image Upload Hack for Multiple Images? (21 posts)

  1. mpm
    Member
    Posted 8 years ago #

    I dearly, dearly need to be able to upload multiple images at the one time from the write page.

    Can someone (pretty)please steer me in the right direction.

    I want to keep things as absolutely simple for my users as possible and do not want them to ftp their images.

    Nor do I need them to be able to edit and refine the images.

    Nor do I need thumbnails in the posts, just the images.

    All I want is for them to be able to upload more than one image at a time.

  2. mpm
    Member
    Posted 8 years ago #

    I've been searching, searching everywhere for what seems like months now and haven't been able to find a solution to this problem. Surely I am not the only one who needs/wants this hack?

  3. ladydelaluna
    Member
    Posted 8 years ago #

    well first, i don't think that a "hack" would do it... it's going to need a plugin.

    and yes, it would be great if someone could come up with something like this...

    (incidentally - creating three different threads on this same topic probably isn't the best idea...)

  4. mpm
    Member
    Posted 8 years ago #

    Yes, sorry about that.

  5. 3stripe
    Member
    Posted 8 years ago #

    I'd love to see this feature as well!

    It would also be brilliant if the plugin had the option to automatically resize any large images to something more usable, and also an option to set the quality of resized or thumbnail images. (I think you can only control thumbnail quality by hacking at the moment)

    Or what about support for sets of zipped images?

    Woooah, I'll stop there, that sounds complicated enough already!

  6. Stahn
    Member
    Posted 8 years ago #

    http://familypress.net/archives/photopress-094/

    Use version 0.9.2, 0.9.4 is really buggy.

  7. mpm
    Member
    Posted 8 years ago #

    Can you upload multiple images (at the one time) with this though?

  8. Stahn
    Member
    Posted 8 years ago #

    Ten images maximum.

  9. yoshi
    Member
    Posted 8 years ago #

    I wanted the same feature and hacked inline-uploading.php to arrow multiple files and I changed it to a plugin

    It's very simple but if you JUST need multi-files feature, this would help.

    wordpress.ex-libris.jp/200604/inline-multiple-uploading/

    Currently it's only been tested with FF+Win2000.
    If using other browsers, pls forgive me for potential bugs.
    Testers are always welcome:).

  10. mpm
    Member
    Posted 8 years ago #

    Thanks Yoshi, I'll look into that. You wouldn't also know how to limit the image dimensions as well would you? I don't want my users to be able to upload/post images that over 250 pixels high or 450 pixels wide.

  11. 3stripe
    Member
    Posted 8 years ago #

    I still think most of the options mentioned in this thread should be controllable by default somewhere in the admin panel!

  12. yoshi
    Member
    Posted 8 years ago #

    MPM, maybe you can do something like this.

    =========================================

    <?php
    /*
    Plugin Name: Check Image Dementions
    */

    add_action ('add_attachment', 'r_check_image_dimentions');

    function r_check_image_dimentions($post_ID) {

    // chenge these
    // ============
    $maxwidth = 450;
    $maxheight = 250;

    $post = & get_post($post_ID);
    if ( preg_match('!^image/!', $post->post_mime_type) ) {
    $file = get_post_meta($post->ID, '_wp_attached_file', true);
    $imagesize = getimagesize($file);
    if ( $imagesize['0'] > $maxwidth || $imagesize['1'] > $maxwidth ) {
    wp_delete_attachment($post_ID);
    die("Image must be smaller than $maxwidth x $maxheight" . '
    post_parent . '">'.__('Back to Image Uploading').'');
    }
    }
    }
    ?>
    =========================================

  13. mpm
    Member
    Posted 8 years ago #

    Hi Yoshi,

    Thanks heaps. Your multiple image plugin seems to be working a charm!

    However, the limitdimensions one gives me this error:

    Parse error: syntax error, unexpected '"' in /home/mpmorg/public_html/solfege/wp-content/plugins/limitimagedimensions.php on line 22

  14. yoshi
    Member
    Posted 8 years ago #

    Looks like the 'a' tag was parsed. Didn't notice.

    Here is the code again.


    <?php
    /*
    Plugin Name: Check Image Dementions
    */

    add_action ('add_attachment', 'rx_check_image_dimentions');

    function rx_check_image_dimentions($post_ID) {

    $maxwidth = 450;
    $maxheight = 250;

    $post = & get_post($post_ID);
    if ( preg_match('!^image/!', $post->post_mime_type) ) {
    $file = get_post_meta($post->ID, '_wp_attached_file', true);
    $imagesize = getimagesize($file);
    if ( $imagesize['0'] > $maxwidth || $imagesize['1'] > $maxwidth ) {
    wp_delete_attachment($post_ID);
    die("Image must be smaller than $maxwidth x $maxheight !!!" . '<br /><a href="' . $_SERVER['HTTP_REFERRER'] . '?action=upload&post=' . $post->post_parent . '">'.__('Back to Image Uploading').'</a>');
    }
    }
    }
    ?>

  15. nmallory
    Member
    Posted 8 years ago #

    Did you get this working?

  16. derekc
    Member
    Posted 7 years ago #

    IMAGES: I've just arrived in the wordpress community, and am finding this topic a litle hard to come to grips with.

    I'd like multiple image uploads, and find the plug-in library and the supporting detail a little hard to get sure I have a current version, and to not overkill (first load this, then do this, then this etc).

    I have some other preferences. I'd love
    *on the fly resizing/cropping for single images
    *and resizing for batch mode.
    ---
    I have started with the list at http://codex.wordpress.org/Plugins/Images
    ---
    Photopress has this to say: http://familypress.net/photopress/
    "Photopress
    Photopress is a plugin that adds a set of helper tools to WordPress to make working with images easier. It adds a pop-up uploader and a pop-up image browser to the posting page, a groovy random image function for your template, and a simple album to display the photos you’ve uploaded.

    Latest version: Download photopress.zip or photopress.tar.gz.

    Requirements:
    Photopress works with both WordPress 1.5.2 and 2.0. It works both with and without the Rich Text Editor in WP 2.0. You must have the GD module for PHP installed and working, but it should let you know if you don’t"

    2.0 is a good start, unsure what GD is.
    ---
    And this: http://www.animalbeach.net/aniga/
    I quote:
    ANIga (v0.30) is a picture gallery wordpress plugin. Its integrated in the WP posts system and uses the WP comments for pictures.
    This is an early release of this plugin. Some things might not work properly, some features are still missing. USE AT OWN RISK! I appreciate any feedback!
    requirements

    * WP 2.0.4 (could maybe work with 2.0.3 but NOT with 2.0 and lesser!)
    * ftp access to your server
    * GD 2.0+ and JPEG libraries compiled into PHP for automatic image resize
    * ’safe mode’ off for zip upload
    ---
    This seems to be superb. Just a bit daunting to install.

    I have installed http://www.soderlind.no/archives/2006/01/03/imagemanager-20/
    Just for nterest, but it does't qite have the functonality I need.

    Hmm. Any suggestions welcome. I've RSS'ed this thread, I'l be back as I try tome more on the humungous list of plugins.

    -Derek

  17. upload88
    Member
    Posted 7 years ago #

    Multiple image upload is great for posting images on message boards, online auctions, classifieds and even sharing pictures with your family

    http://www.upload88.com

  18. johnnyspade
    Member
    Posted 7 years ago #

    The fgallery plugin from fahlstad.de is a very good image gallery plugin with lots of features, including multiple image upload and bulk upload capabilities. Worth looking at, if you're still looking:

    http://www.fahlstad.se/wp-plugins/fgallery/

  19. yoshi
    Member
    Posted 7 years ago #

    I have updated multiple image uploading plugin(posted above a year ago) for WordPress 2.1.x.
    The plugin also have resizing feature.

    Testers welcomed!

    Multifile Upload
    http://wordpress.ex-libris.jp/wordpress-plugins/multifile-upload/

  20. Marcomail
    Member
    Posted 7 years ago #

    yoshi is possible crop the thumbnail for a square thumbs with your plugin?

  21. yoshi
    Member
    Posted 7 years ago #

    Marcomail,
    No. it only can resize, no cropping.
    Though, cropping feature sounds nice. I might include that in next version.

Topic Closed

This topic has been closed to new replies.

About this Topic