WordPress.org

Ready to get started?Download WordPress

Forums

Multiple image insert (23 posts)

  1. callmeforsox
    Member
    Posted 6 years ago #

    I have noticed that a few people have been asking for the ability to insert all images at once with the new media uploader instead of clicking, opening, clicking, opening, etc.

    In one thread there was a simple hack of the wp-admin/includes/media.php which allowed the window to stay open so you wouldn't have to keep on opening and closing it.

    I thought that was still too cumbersome so I finally had the time to look into it and hacked the media.php file some more. The version I modified allows you to insert all images with one click as well as select which ones you want to insert. Apart from this, it also has a few minor personal modifications.

    I just wanted to know if 1) there was still any interest in this or if the upcoming version of WordPress addresses this issue and 2) whether I'm allowed to post this somewhere.

  2. callmeforsox
    Member
    Posted 6 years ago #

    I posted this in another thread, but thought I should post it here too.

    I've uploaded it here: http://cache.theblemish.com/files/media.zip

    Please test before you go live with it. It should be working, but just in case something conflicts, you'll catch it.

    Modifications include:
    * Default link location changed to post url from link url
    * Checkboxes and Insert selected in the post Gallery view
    * Default "thumbnail" selected instead of "medium"

    This is the media.php file for wp-admin/includes/media.php. Not to be confused with wp-includes/media.php

  3. think2wice
    Member
    Posted 6 years ago #

    This saves so much time! From the checkbox-styled insert, to the default location changing from link url to post url, and "thumbnail" being selected by default. Thanks sunscream!

  4. crafty1900
    Member
    Posted 6 years ago #

    This was so helpful, thanks so much! I just started with wordpress, and most of my posts have lots of pictures, so this saves time.

  5. think2wice
    Member
    Posted 6 years ago #

    Sunscream, will you be updating the media.php file with the 2.6 features?

  6. think2wice
    Member
    Posted 5 years ago #

    Will anyone be tackling this little mod when 2.7 releases?

  7. PoMa
    Member
    Posted 5 years ago #

    ;( it does not work on 2.7

  8. callmeforsox
    Member
    Posted 5 years ago #

    I've updated the media.php. If anyone knows how to suggest this code to the devs, let me know. Please replace the media.php in your wp-admin/includes folder.

    Same link as before: http://cache.theblemish.com/files/media.zip

  9. PoMa
    Member
    Posted 5 years ago #

    Whou :) great.

    I will try to test it in the evening.

    Sunscream, big thanks to You.

  10. PoMa
    Member
    Posted 5 years ago #

    Well. It does not work for me... ;(

  11. callmeforsox
    Member
    Posted 5 years ago #

    Let me know the errors or what it's not doing. Are there checkboxes?

  12. PoMa
    Member
    Posted 5 years ago #

    http://img101.imageshack.us/img101/6451/wp27dp3.jpg

    Completely broken styles, hide/show buttons do not work, flash uploader also does not work for me...

    wp 2.7

  13. callmeforsox
    Member
    Posted 5 years ago #

    That shouldn't be happening because the altered code does nothing to change styles or anything else. I'll re-up the file when I get time.

  14. PoMa
    Member
    Posted 5 years ago #

    Strange, but i see everything like in screenshot.

    I'll try to wait for your update.

    Thanks.

  15. theresavs
    Member
    Posted 5 years ago #

    I see the same screenshot too, and when I go to insert an image, the box doesn't stay open.

  16. callmeforsox
    Member
    Posted 5 years ago #

    I've uploaded a new one. Let me know if it still messes up. For some reason, I can't reproduce the error on my end.

  17. PoMa
    Member
    Posted 5 years ago #

    Thank you very much, sunscream. Now it works and inserts images very nice.

    You are the best! ;)

  18. incite
    Member
    Posted 5 years ago #

    With your adaptation would you know how to customise the "Media Library" tab so that you can edit the changes such as alt tag in a picture, then hide, then make the changes to the next one using show and hide, then using the tick boxes be able to incorporate the "Insert selected images" function from your hack into the page of the Media Library Tag?

    So basically i upload the files as normal, then with the images that are listed i would select show, make the relevant changes select hide, and do this to all the images i wish to insert. I would then tick the select boxes for each image and click an "Insert selected images" button.

    Would you have any idea on how this could be done? You seem to have the basis of what i need, unfortunately i need to modify the alt tags and sometimes modify image sizes according to the image.

    Brilliant work by the way, have you tried provoking a dev through the links provided here:
    http://trac.wordpress.org/

    Your time is much appreciated and so is your knowledge!!!

  19. callmeforsox
    Member
    Posted 5 years ago #

    @incite

    Have you tried it yet? I think when you click insert selected after you finished modifying your alt tags, etc., it will save your edits and insert the images.

    I haven't tested it yet, but I thought I did this one time.

  20. David Frank
    Member
    Posted 5 years ago #

    @sunscream
    I recently written a similar plugin that has the same function without hacking the core; feedback has been good, you mind taking a look at it ?

  21. helorits
    Member
    Posted 5 years ago #

    hey @sunscream.
    I installed your plugin, but it didn't show up here...

    Navigate to post/page editing panel, a Fast Insert metabox should appear
    (Optional) Change options in "Settings" menu

  22. hoolian
    Member
    Posted 5 years ago #

    @sunscream

    hey thank you, I found this very helpful cuz I dont have to install any gallery plug in, and users can insert images in a post and the align the in css like a thumbnail list with a little bit of http://wordpress.org/extend/plugins/auto-highslide/ and http://www.cnet.ro/wordpress/thumbnailforexcerpts, I used custom fields for gallery descriptions, and http://www.catswhocode.com/blog/how-to-integrate-a-pagination-in-your-wordpress-theme pagination for "album navigation" which really are posts under the category "albums"

    thank you! yo made my independent gallery system work with success! cheers

    PD: not like the @bitinn plug in, it mixed all the uploaded images into one gallery, so all my upload were merged and when I wanted to put a second post there was annoing to select again

  23. FCGrabo
    Member
    Posted 5 years ago #

    I have downloaded and used the media.php zip mod once and it worked fine. It would save me a ton of time.

    However I must have the images centered and in medium.

    I will scour the .php file to see if I can find where to make the changes unless someone can pinpoint the location.

    Thanks. This'll be great.

Topic Closed

This topic has been closed to new replies.

About this Topic