Author Topic: Integrate "Podcast Episode" dialog/widget to All-in-One Event Calendar  (Read 460 times)

dj.spacemonkey

  • Newbie
  • *
  • Posts: 4
I'm using the Stylico DJ theme for the main site, and trying to use All-in-One Event Calendar as a calendar of past and future performances.  I'd like to add recorded podcasts to the past performance calendar entries.

While I can use the shortcode option, that's not as full-featured as the "Podcast Episode" dialog/widget that is part of the normal "Posts" editor page, nor does the shortcode generate the episode duration and download link.

How do I add that full "Podcast Episode" dialog/widget to All-in-One Event Calendar's "Events" editor page?

dj.spacemonkey

  • Newbie
  • *
  • Posts: 4
FYI, I asked this same question on the All-in-One Event Calendar forum, in case any cross-plugin collaboration is needed.

angelo

  • Custom Title
  • Administrator
  • Hero Member
  • *****
  • Posts: 3294
  • CIO, RawVoice
    • Angelo's Blog
To marry the two capabilities together you will most likely need to do it with your theme by either coding yourself or hiring a WordPress theme/plugin developer to add the exact functionality you want to your theme's functions.php utilizing both plugins.

Asking for 2 open source plugins to collaborate on a feature specifically for you is a bit over-reaching, you have to understand that open source developer spend our time without compensation putting features into our plugins/projects with the aim to make useful resources for the masses. I'll gladly speak with the All-in-One Event Calendar developers, but to expect such niche features from them or us is going to be hard without you being the code contributor.

Hire a developer, write what needs to be done to both plugins, then submit the code to both of us and to the All-in-One Event Calendar folks and then you'll be part of the open source community.

dj.spacemonkey

  • Newbie
  • *
  • Posts: 4
Yes, I am attempting to code this on my own.  What I was seeking was insight on where/how your plugin makes this hook into WordPress posts so I can redirect that into the other plugin's editor -- what function is your plugin hooking in WP, what function creates the "Podcast Episode" dialog/widget, which of the dozen-odd .php files contains the code that creates the "Podcast Episode" dialog/widget?

My apologies that you read this as some sort of over-reaching request for you to do a custom rewrite of the code specifically for me.  Apparently "How do I add..." wasn't specific enough.

angelo

  • Custom Title
  • Administrator
  • Hero Member
  • *****
  • Posts: 3294
  • CIO, RawVoice
    • Angelo's Blog
PowerPress hooks into WordPress to add the player and links to the post content using the filter "the_content". It also uses "the_excerpt" if you go into PowerPress Settings > Appearance tab and select the appropriate setting to do so.

Grep the PowerPress code for the_content and you'll find the add filter for it.

More than likely you'll need to see how the calendar plugin gets it's content and see if it generates a do action that you can hook into. It may be that you just need to ask the calendar developer to add a filter that you can then add your own filter to intercept and add the powerpress player. At that point you would just call the appropriate powerpress function to get the player. All of this is found in the main powerpress.php. Anything with admin in the file name in the powerpress folder is irrelevant to displaying anything on regular pages.


dj.spacemonkey

  • Newbie
  • *
  • Posts: 4
Thank you, Angelo.  If only you would have provided that level of information on my first inquiry, instead of the load of seething attitude you initially delivered.

As it turns out, I researched a couple of alternate plugins, and found that podPress offers almost the exact same feature set, with the added forward-thinking functionality of detecting the custom post types in the WP installation and offering a multi-select option to attach the podPress meta box to any or all of those editors.

In summation, Blubrry could stand some improvement in both its feature set and customer-facing attitude.  Good day.
« Last Edit: April 20, 2012, 01:48:24 pm by angelo »

angelo

  • Custom Title
  • Administrator
  • Hero Member
  • *****
  • Posts: 3294
  • CIO, RawVoice
    • Angelo's Blog
You made all indications in your first reply that you wanted us to develop yoru solution with this other calendar plugin. I had no idea that you wanted to code this yourself until the last reply.

Good luck with PodPress.

angelo

  • Custom Title
  • Administrator
  • Hero Member
  • *****
  • Posts: 3294
  • CIO, RawVoice
    • Angelo's Blog
By the way, PowerPress does support Custom Post Types using the "Podcast Channels" feature. You never indicated that you needed this functionality in the original post, so I had no idea that was what you needed. Just go to PowerPress Settings page, enable "Podcast Channels" then go into the Podcast Channels menu and create the channels you need and associate them to the Custom Post Types you want to associate them to. This gives you a complete matrix of options, you can have an unlimited number of channels (podcast only feeds) tied to all or specific custom post types in WordPress.