PowerPress Podcasting plugin by Blubrry - Version 0.9.5

Version Description

  • Released on 8/15/2009
  • Redirect logic enhanced to track in page plays for users using the Blubrry/RawVoice/TechPodcasts statistics redirect system.
  • Fixed bug where more link would occasionally disappear in the Blubrry PowerPress Statistics Dashboard widget.
Download this release

Release Info

Developer amandato
Plugin Icon 128x128 PowerPress Podcasting plugin by Blubrry
Version 0.9.5
Comparing to
See all releases

Code changes from version 0.9.4 to 0.9.5

Files changed (3) hide show
  1. powerpress.php +12 -7
  2. powerpressadmin-dashboard.php +3 -4
  3. readme.txt +7 -2
powerpress.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Blubrry PowerPress
4
  Plugin URI: http://www.blubrry.com/powerpress/
5
  Description: <a href="http://www.blubrry.com/powerpress/" target="_blank">Blubrry PowerPress</a> adds podcasting support to your blog. Features include: media player, 3rd party statistics, iTunes integration, Blubrry Services (Media Statistics and Hosting) integration and a lot more.
6
- Version: 0.9.4
7
  Author: Blubrry
8
  Author URI: http://www.blubrry.com/
9
  Change Log:
@@ -29,7 +29,7 @@ License: GPL (http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt)
29
  */
30
 
31
  // WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
32
- define('POWERPRESS_VERSION', '0.9.4' );
33
 
34
  /////////////////////////////////////////////////////
35
  // The following define options should be placed in your
@@ -212,7 +212,7 @@ function powerpress_content($content)
212
  if( $EpisodeData && isset($EpisodeData['embed']) )
213
  $new_content .= $EpisodeData['embed'];
214
  if( !isset($EpisodeData['no_player']) )
215
- $new_content .= apply_filters('powerpress_player', '', $EnclosureURL, array('feed'=>$feed_slug, 'type'=>$EpisdoeData['type']) );
216
  }
217
  }
218
 
@@ -1393,7 +1393,7 @@ function powerpress_shortcode_handler( $attributes, $content = null )
1393
  $url = powerpress_add_redirect_url($url);
1394
  $content_type = '';
1395
  // Handle the URL differently...
1396
- $return = apply_filters('powerpress_player', '', $url, array('image'=>$image, 'type'=>$content_type) );
1397
  }
1398
  else if( $feed )
1399
  {
@@ -1401,7 +1401,7 @@ function powerpress_shortcode_handler( $attributes, $content = null )
1401
  if( isset($EpisdoeData['embed']) && $EpisdoeData['embed'] )
1402
  $return = $EpisdoeData['embed'];
1403
  if( !isset($EpisdoeData['no_player']) )
1404
- $return = apply_filters('powerpress_player', '', $EpisdoeData['url'], array('feed'=>$feed, 'image'=>$image, 'type'=>$EpisdoeData['type']) );
1405
  }
1406
  else
1407
  {
@@ -1416,7 +1416,7 @@ function powerpress_shortcode_handler( $attributes, $content = null )
1416
  $return .= $EpisdoeData['embed'];
1417
 
1418
  if( !isset($EpisdoeData['no_player']) )
1419
- $return .= apply_filters('powerpress_player', '', $EpisdoeData['url'], array('feed'=>$feed_slug, 'image'=>$image, 'type'=>$EpisdoeData['type']) );
1420
  }
1421
  }
1422
 
@@ -1466,7 +1466,7 @@ function powerpress_do_pinw($pinw)
1466
  }
1467
  else // if( !isset($EpisdoeData['no_player']) ) // Even if there is no player set, if the play in new window option is enabled then it should play here...
1468
  {
1469
- echo apply_filters('powerpress_player', '', $EpisdoeData['url'], array('feed'=>$feed_slug, 'autoplay'=>true, 'type'=>$EpisdoeData['type']) );
1470
  }
1471
 
1472
  ?>
@@ -1839,6 +1839,11 @@ function powerpress_add_redirect_url($MediaURL, $GeneralSettings = false)
1839
  return $NewURL;
1840
  }
1841
 
 
 
 
 
 
1842
  /*
1843
  Code contributed from upekshapriya on the Blubrry Forums
1844
  */
3
  Plugin Name: Blubrry PowerPress
4
  Plugin URI: http://www.blubrry.com/powerpress/
5
  Description: <a href="http://www.blubrry.com/powerpress/" target="_blank">Blubrry PowerPress</a> adds podcasting support to your blog. Features include: media player, 3rd party statistics, iTunes integration, Blubrry Services (Media Statistics and Hosting) integration and a lot more.
6
+ Version: 0.9.5
7
  Author: Blubrry
8
  Author URI: http://www.blubrry.com/
9
  Change Log:
29
  */
30
 
31
  // WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
32
+ define('POWERPRESS_VERSION', '0.9.5' );
33
 
34
  /////////////////////////////////////////////////////
35
  // The following define options should be placed in your
212
  if( $EpisodeData && isset($EpisodeData['embed']) )
213
  $new_content .= $EpisodeData['embed'];
214
  if( !isset($EpisodeData['no_player']) )
215
+ $new_content .= apply_filters('powerpress_player', '', powerpress_add_flag_to_redirect_url($EnclosureURL, 'p'), array('feed'=>$feed_slug, 'type'=>$EpisdoeData['type']) );
216
  }
217
  }
218
 
1393
  $url = powerpress_add_redirect_url($url);
1394
  $content_type = '';
1395
  // Handle the URL differently...
1396
+ $return = apply_filters('powerpress_player', '', powerpress_add_flag_to_redirect_url($url, 'p'), array('image'=>$image, 'type'=>$content_type) );
1397
  }
1398
  else if( $feed )
1399
  {
1401
  if( isset($EpisdoeData['embed']) && $EpisdoeData['embed'] )
1402
  $return = $EpisdoeData['embed'];
1403
  if( !isset($EpisdoeData['no_player']) )
1404
+ $return = apply_filters('powerpress_player', '', powerpress_add_flag_to_redirect_url($EpisdoeData['url'], 'p'), array('feed'=>$feed, 'image'=>$image, 'type'=>$EpisdoeData['type']) );
1405
  }
1406
  else
1407
  {
1416
  $return .= $EpisdoeData['embed'];
1417
 
1418
  if( !isset($EpisdoeData['no_player']) )
1419
+ $return .= apply_filters('powerpress_player', '', powerpress_add_flag_to_redirect_url($EpisdoeData['url'], 'p'), array('feed'=>$feed_slug, 'image'=>$image, 'type'=>$EpisdoeData['type']) );
1420
  }
1421
  }
1422
 
1466
  }
1467
  else // if( !isset($EpisdoeData['no_player']) ) // Even if there is no player set, if the play in new window option is enabled then it should play here...
1468
  {
1469
+ echo apply_filters('powerpress_player', '', powerpress_add_flag_to_redirect_url($EpisdoeData['url'], 'p'), array('feed'=>$feed_slug, 'autoplay'=>true, 'type'=>$EpisdoeData['type']) );
1470
  }
1471
 
1472
  ?>
1839
  return $NewURL;
1840
  }
1841
 
1842
+ function powerpress_add_flag_to_redirect_url($MediaURL, $Flag)
1843
+ {
1844
+ return preg_replace('/(media\.(blubrry|techpodcasts|rawvoice|podcasternews)\.com\/[A-Za-z0-9-_]+\/)/i', '$1'."$Flag/", $MediaURL);
1845
+ }
1846
+
1847
  /*
1848
  Code contributed from upekshapriya on the Blubrry Forums
1849
  */
powerpressadmin-dashboard.php CHANGED
@@ -59,15 +59,14 @@ function powerpress_dashboard_stats_content()
59
  return;
60
 
61
  $content = false;
 
 
62
  $StatsCached = get_option('powerpress_stats');
63
  if( $StatsCached && $StatsCached['updated'] > (time()-(60*60*3)) )
64
  $content = $StatsCached['content'];
65
 
66
  if( !$content )
67
  {
68
- $UserPass = $Settings['blubrry_auth'];
69
- $Keyword = $Settings['blubrry_program_keyword'];
70
-
71
  if( !$UserPass )
72
  {
73
  $content = '<p>Wait a sec! This feature is only available to Blubrry Podcast Community members. Join our community to get free podcast statistics and access to other valuable <a href="http://www.blubrry.com/powerpress_services/" target="_blank">services</a>.</p>
@@ -85,7 +84,7 @@ function powerpress_dashboard_stats_content()
85
  }
86
  }
87
  ?>
88
- <div id="">
89
  <?php
90
  //$content = http_get('http://api.blubrry.local/stats/compiled_weekly2/summary.html?year=2008&month=7', 'amandato@gmail.com', 'testit');
91
 
59
  return;
60
 
61
  $content = false;
62
+ $UserPass = $Settings['blubrry_auth'];
63
+ $Keyword = $Settings['blubrry_program_keyword'];
64
  $StatsCached = get_option('powerpress_stats');
65
  if( $StatsCached && $StatsCached['updated'] > (time()-(60*60*3)) )
66
  $content = $StatsCached['content'];
67
 
68
  if( !$content )
69
  {
 
 
 
70
  if( !$UserPass )
71
  {
72
  $content = '<p>Wait a sec! This feature is only available to Blubrry Podcast Community members. Join our community to get free podcast statistics and access to other valuable <a href="http://www.blubrry.com/powerpress_services/" target="_blank">services</a>.</p>
84
  }
85
  }
86
  ?>
87
+ <div>
88
  <?php
89
  //$content = http_get('http://api.blubrry.local/stats/compiled_weekly2/summary.html?year=2008&month=7', 'amandato@gmail.com', 'testit');
90
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: Angelo Mandato, Blubrry.com
3
  Tags: podcast, podcasting, itunes, enclosure, zune, iphone, youtube, viddler, blip.tv, audio, video, rss2, feed, player, media, rss, mp3, music, embed, feedburner, statistics, stats, flv, flash, id3, episodes, blubrry
4
  Requires at least: 2.6.0
5
- Tested up to: 2.8.3
6
- Stable tag: 0.9.4
7
 
8
  Add podcasting support to your blog.
9
 
@@ -85,6 +85,11 @@ As a alternative, PowerPress allows you to create additional Custom Podcast Feed
85
 
86
  == Changelog ==
87
 
 
 
 
 
 
88
  = 0.9.4 =
89
  * Released on 8/10/2009
90
  * Fixed bug with setting width of video player.
2
  Contributors: Angelo Mandato, Blubrry.com
3
  Tags: podcast, podcasting, itunes, enclosure, zune, iphone, youtube, viddler, blip.tv, audio, video, rss2, feed, player, media, rss, mp3, music, embed, feedburner, statistics, stats, flv, flash, id3, episodes, blubrry
4
  Requires at least: 2.6.0
5
+ Tested up to: 2.8.4
6
+ Stable tag: 0.9.5
7
 
8
  Add podcasting support to your blog.
9
 
85
 
86
  == Changelog ==
87
 
88
+ = 0.9.5 =
89
+ * Released on 8/15/2009
90
+ * Redirect logic enhanced to track in page plays for users using the Blubrry/RawVoice/TechPodcasts statistics redirect system.
91
+ * Fixed bug where `more` link would occasionally disappear in the Blubrry PowerPress Statistics Dashboard widget.
92
+
93
  = 0.9.4 =
94
  * Released on 8/10/2009
95
  * Fixed bug with setting width of video player.