Events Made Easy › Forums › Bug fixed or feature request implemented › Integrate Event Image with WP Media Library
Tagged: feature request
- This topic has 10 replies, 2 voices, and was last updated 11 years, 10 months ago by Franky.
-
AuthorPosts
-
Fri 28 Sep 2012 at 17:06 #43856AnonymousInactive
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.
Mon 18 Feb 2013 at 15:07 #49962AnonymousInactiveHi 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?)
Mon 18 Feb 2013 at 15:16 #49963FrankyKeymasterThe 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.
Mon 18 Feb 2013 at 17:14 #49964AnonymousInactiveOkay, 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….
Mon 18 Feb 2013 at 17:23 #49965AnonymousInactiveOh and it seems they added “three new filters for media.php” to do this in the core:
Mon 18 Feb 2013 at 23:06 #49966FrankyKeymasterYes, 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.
Mon 18 Feb 2013 at 23:16 #49967FrankyKeymasterOk, I found this:
http://shibashake.com/wordpress-theme/how-to-hook-into-the-media-upload-popup-interface
Edit, for WP 3.5 there’s this:
http://shibashake.com/wordpress-theme/how-to-add-the-wordpress-3-5-media-manager-interface
http://shibashake.com/wordpress-theme/how-to-add-the-wordpress-3-5-media-manager-interface-part-2
Mon 18 Feb 2013 at 23:52 #49968FrankyKeymasterI 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)
Wed 20 Feb 2013 at 00:26 #49969FrankyKeymasterOk, 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 🙂
Wed 20 Feb 2013 at 16:05 #49970AnonymousInactiveSo 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.
Wed 20 Feb 2013 at 16:38 #49971FrankyKeymasterbbpress 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.
-
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.