Author Topic: How to make it easy for people to subscribe to podcast feed?  (Read 4640 times)

switters

  • Full Member
  • **
  • Posts: 46
How to make it easy for people to subscribe to podcast feed?
« on: February 15, 2011, 03:39:29 pm »
Is there any way built-in to PowerPress to make it easy for people to subscribe to the podcast feed?  At the bottom of every podcast episode post, I see the media player and text links that say "Listen in new window" and "Download".  What about adding one that says "Subscribe to RSS feed"?

mgdell

  • Blubrry Customer Support Coordinator
  • Administrator
  • Hero Member
  • *****
  • Posts: 3318
Re: How to make it easy for people to subscribe to podcast feed?
« Reply #1 on: February 15, 2011, 11:39:25 pm »
We don't have a subscribe link in powerpress.  That may be a good idea.

We do have another plugin which you might find useful.  It's the blubrry subscribe sidebar.  (found here:http://www.blubrry.com/subscribe_sidebar/)

-Mike

johnb172

  • Full Member
  • **
  • Posts: 36
Re: How to make it easy for people to subscribe to podcast feed?
« Reply #2 on: March 14, 2011, 02:56:49 pm »
I asked about this once before myself. I ended up modifying the plugin to add these links for me, based on the category of the post.

The first part was creating a shortcode that detected the current category, because I have multiple podcasts, and then adds the appropriate html for the links based on the category. In powerpress-player.php, I added a code to the $player_links to grab the shortcode that I created.

It does exactly what you are looking to do. The only downside is that any time Powerpress is updated, you have to go back into the powerpress-player.php file and add back the php to grab the shortcode in the $player_links.

If you want to see how mine looks, go here.

Alternatively, you might be able to create a custom category/page template to do the same thing using the Powerpress php code in this article. Though, I haven't tried this route so I don't know if it actually would work.

I wish there was a section in Powerpress to add your own player links and to customize the player links (per channel/category), without resorting to modifying the plugin.
« Last Edit: March 14, 2011, 03:10:00 pm by johnb172 »

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: How to make it easy for people to subscribe to podcast feed?
« Reply #3 on: March 15, 2011, 03:37:26 pm »
In PowerPress 2.0 we introduced a filter that Themes can use to add their own links in the media links section. Here's an example that adds a Subscribe to iTunes link:

Add the following function to your Theme's functions.php:

Code: [Select]
function themename_powerpress_player_links($content, $media_url, $ExtraData = array())
{
$content .= ' '.POWERPRESS_LINK_SEPARATOR .' ';
$content .= 'Subscribe: <a href="http://itunes.apple.com/us/podcast/tech-news-weekly/id393765696">iTunes</a>';
$content .= ', <a href="http://social.zune.net/podcast/Tech-News-Weekly-Audio/0a83101d-b633-40e2-a68a-167b974beb4d">Zune</a>';
$content .= ', <a href="http://fusion.google.com/add?feedurl=http://feeds.feedburner.com/TechNewsWeeklypodcast">Google</a>';
return $content;
}

add_filter('powerpress_player_links', 'themename_powerpress_player_links', 100, 3);

The 2nd parameter is the media URL in question, and the third parameter $ExtraData is an associative array of extra meta data about the media file including 'type', 'length' (file size in bytes), and other iTunes attributes.

johnb172

  • Full Member
  • **
  • Posts: 36
Re: How to make it easy for people to subscribe to podcast feed?
« Reply #4 on: March 15, 2011, 08:07:18 pm »
Awesome! Looks similar to what I was doing as a shortcode instead of filter. Upside is I won't have to add the shortcode back to Powerpress during every update using the filter. Also, it works just fine with my category detection. Thanks for letting me know about the new filter and an example.

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: How to make it easy for people to subscribe to podcast feed?
« Reply #5 on: March 15, 2011, 10:14:39 pm »
No problem, it's these discussions that lead us to design these features in. :)

StitchTek

  • Full Member
  • **
  • Posts: 20
Re: How to make it easy for people to subscribe to podcast feed?
« Reply #6 on: July 30, 2013, 10:03:04 am »
In PowerPress 2.0 we introduced a filter that Themes can use to add their own links in the media links section. Here's an example that adds a Subscribe to iTunes link:

Add the following function to your Theme's functions.php:

Code: [Select]
function themename_powerpress_player_links($content, $media_url, $ExtraData = array())
{
$content .= ' '.POWERPRESS_LINK_SEPARATOR .' ';
$content .= 'Subscribe: <a href="http://itunes.apple.com/us/podcast/tech-news-weekly/id393765696">iTunes</a>';
$content .= ', <a href="http://social.zune.net/podcast/Tech-News-Weekly-Audio/0a83101d-b633-40e2-a68a-167b974beb4d">Zune</a>';
$content .= ', <a href="http://fusion.google.com/add?feedurl=http://feeds.feedburner.com/TechNewsWeeklypodcast">Google</a>';
return $content;
}

add_filter('powerpress_player_links', 'themename_powerpress_player_links', 100, 3);

The 2nd parameter is the media URL in question, and the third parameter $ExtraData is an associative array of extra meta data about the media file including 'type', 'length' (file size in bytes), and other iTunes attributes.

How can this be altered if you have more than the default channel so you can get the correct Subscribe link for each channel?  RIght now this addes the same link to both channels.  Cheers!

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483