Events Made Easy Forums Bug fixed or feature request implemented Integrate Event Image with WP Media Library

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #43856
    Anonymous
    Inactive

    It would be quite helpful if the event image for EME events could be pulled from (or added to) the regular WordPress Media Library, just as we can ALREADY add images to the event Contents from that same media library.

    This is particularly an issue when duplicating events or creating new ones — even when the SAME event/featured image is desired for a new event, and even when using the Duplicate Event feature, the new “Event image” always starts out blank. So I end up uploading the SAME image again and again and again with each new event. Besides being inconvenient, it also clutters up the server with multiple copies of the same image.

    (This is tangentially related to my latest “Trigger a Post” hack where we add EME event images to the media library as part of “shadow posts”.)

    http://www.e-dynamics.be/bbpress/topic.php?id=1843

    Any thoughts on putting this into the roadmap? Thanks in advance.

    #49962
    Anonymous
    Inactive

    Hi again. This is still my #1 or #2 wishlist item. Duplicating uploads to re-use the same event image seems so wasteful.

    (Unless I’m just doing it wrong?)

    #49963
    Franky
    Keymaster

    The wordpress Media library is only accessible from within the rich html editor …

    if you can find me a method of accessing it directly and using that info, I’ll be more than willing to integrate the code.

    For duplicating an event, I’ll see if I can just copy the existing image.

    #49964
    Anonymous
    Inactive

    Okay, I found one approach at http://wordpress.org/support/topic/howto-integrate-the-media-library-into-a-plugin?replies=2

    And of course there’s also a “File URL” associated with each image in the library, usually in the /uploads tree of the file system.

    Doing it for duplicated events would be good too, or at least workable (though I often use the same “theme” image even when the event description isn’t the same).

    That reminds me, event images for recurring events has been pretty broken for me; I couldn’t count on the event image appearing in the first event or its recurrences. Maybe that’s a known limitation….

    #49965
    Anonymous
    Inactive

    Oh and it seems they added “three new filters for media.php” to do this in the core:

    http://core.trac.wordpress.org/ticket/13817

    #49966
    Franky
    Keymaster

    Yes, I found those in the past as well. The issue is that the wordpress media uploader doesn’t support 2 instances on one page: when applying your mentioned solution, the “insert into post” would always update the url for the event image, even when doing a media upload inside the rich html editor.

    #49967
    Franky
    Keymaster
    #49968
    Franky
    Keymaster

    I think it needs to be

    http://shibashake.com/wordpress-theme/how-to-hook-into-the-media-upload-popup-interface

    combined with

    http://wordpress.org/support/topic/howto-integrate-the-media-library-into-a-plugin?replies=2

    (the 3.5 method reloads the page, not what you want when inserting a new event)

    #49969
    Franky
    Keymaster

    Ok, try this change (only for WP 3.5):

    http://plugins.trac.wordpress.org/changeset/670582

    Edit: now the same needs to be done for locations 🙂

    #49970
    Anonymous
    Inactive

    So cool, you are the best — thank you Franky. I will have to do my batches of upgrades this weekend (WP, EME, patches, etc.) and report back.

    Huh, I didn’t know you were using a WP development hub.

    At this rate of integration perhaps we’ll persuade you to make events into posts after all. 🙂 🙂

    Oh, for the record, I love the way locations already autocomplete in EME. I don’t know what tech it uses (some kind of AJAX I guess) but it always works well.

    P.S. BBPress acting funny with Mozilla; I had to launch another browser to be able to log in here today. Edit: After logging out of 2nd browser, Moz was able to log in.

    #49971
    Franky
    Keymaster

    bbpress sucks: sometimes the cookies need to be deleted manually before I can log in …

    Events into posts: not for now, waaaay to much work 🙂

    This evening I’m updating the code for locations to use the gallery as well (it’ll still work for current uploaded images) and clean up some code than can no longer be used then (for uploading images, and some media js-includes), after which I’ll require 3.5 as minimum WP version.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.
Scroll to Top