PowerPress Podcasting plugin by Blubrry - Version 5.0.9

Version Description

  • Released on 7/28/2014
  • Fixed wo logic errors in the powerpress-player.php (Thanks Tom from the Hawaii Vacation Connection podcast for bringing to our attention)
  • Added support for the PowerPress in your Language add-on plugin.
  • Removed support for the PowerPress in your Language, plugin was rejected by WordPress.org. We are doing our best to come up with another solution.
  • Screenshot files have been moved to the assets folder, they will no longer be packaged with the plugin's zip file.
  • Fixed PHP warning in powerpressadmin.php on line 2405 (Thanks Robin for letting us know)
  • Added notice for FeedBurner setting "We recommend that you disabled SmartCast when using PowerPress with FeedBurner", otherwise FeedBuner will duplicate iTunes descriptions for episodes. (Thanks Daniel Lewis for suggestion)
  • Added No-Fault Hosting support for all Blubrry Podcast Hosting customers. In addition, starting August 1st 2014, publishing quotas will be reset on the 1st of each month.
  • PowerPress 6.0 beta will be available for testing the end of this week. If you are interested in beta testing, please contact us.
Download this release

Release Info

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

Code changes from version 5.0.8 to 5.0.9

powerpress-player.php CHANGED
@@ -147,14 +147,15 @@ function powerpress_shortcode_handler( $attributes, $content = null )
147
  if( isset($GeneralSettings['premium_caps']) && $GeneralSettings['premium_caps'] && !powerpress_premium_content_authorized($channel) )
148
  {
149
  $return .= powerpress_premium_content_message($post->ID, $channel, $EpisodeData);
150
- continue;
151
  }
152
-
153
- // If the shortcode speciies a channel, than we definnitely wnat to include the player even if $EpisodeData['no_player'] is true...
154
- if( !isset($EpisodeData['no_player']) )
155
- $return = apply_filters('powerpress_player', '', powerpress_add_flag_to_redirect_url($EpisodeData['url'], 'p'), array('id'=>$post->ID,'feed'=>$channel, 'channel'=>$channel, 'image'=>$image, 'type'=>$EpisodeData['type'],'width'=>$width, 'height'=>$height) );
156
- if( empty($EpisodeData['no_links']) )
157
- $return .= apply_filters('powerpress_player_links', '', powerpress_add_flag_to_redirect_url($EpisodeData['url'], 'p'), $EpisodeData );
 
 
158
  }
159
  else
160
  {
@@ -1786,7 +1787,7 @@ function powerpressplayer_build_1pxoutplayer($media_url, $EpisodeData = array())
1786
  if( !isset($PlayerSettings['width']) )
1787
  $PlayerSettings['width'] = 290;
1788
  if( !empty($EpisodeData['width']) && is_numeric($EpisodeData['width']) )
1789
- $PlayerSettings['width'] = $EpisdoeData['width'];
1790
 
1791
  $transparency = '<param name="wmode" value="transparent" />';
1792
  $PlayerSettings['transparentpagebg'] = 'yes';
147
  if( isset($GeneralSettings['premium_caps']) && $GeneralSettings['premium_caps'] && !powerpress_premium_content_authorized($channel) )
148
  {
149
  $return .= powerpress_premium_content_message($post->ID, $channel, $EpisodeData);
 
150
  }
151
+ else
152
+ {
153
+ // If the shortcode speciies a channel, than we definnitely wnat to include the player even if $EpisodeData['no_player'] is true...
154
+ if( !isset($EpisodeData['no_player']) )
155
+ $return = apply_filters('powerpress_player', '', powerpress_add_flag_to_redirect_url($EpisodeData['url'], 'p'), array('id'=>$post->ID,'feed'=>$channel, 'channel'=>$channel, 'image'=>$image, 'type'=>$EpisodeData['type'],'width'=>$width, 'height'=>$height) );
156
+ if( empty($EpisodeData['no_links']) )
157
+ $return .= apply_filters('powerpress_player_links', '', powerpress_add_flag_to_redirect_url($EpisodeData['url'], 'p'), $EpisodeData );
158
+ }
159
  }
160
  else
161
  {
1787
  if( !isset($PlayerSettings['width']) )
1788
  $PlayerSettings['width'] = 290;
1789
  if( !empty($EpisodeData['width']) && is_numeric($EpisodeData['width']) )
1790
+ $PlayerSettings['width'] = $EpisodeData['width'];
1791
 
1792
  $transparency = '<param name="wmode" value="transparent" />';
1793
  $PlayerSettings['transparentpagebg'] = 'yes';
powerpress.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Blubrry PowerPress
4
  Plugin URI: http://create.blubrry.com/resources/powerpress/
5
  Description: <a href="http://create.blubrry.com/resources/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: 5.0.8
7
  Author: Blubrry
8
  Author URI: http://www.blubrry.com/
9
  Change Log:
@@ -32,16 +32,13 @@ if( !function_exists('add_action') )
32
  die("access denied.");
33
 
34
  // WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
35
- define('POWERPRESS_VERSION', '5.0.8' );
36
 
37
  // Translation support:
38
  if ( !defined('POWERPRESS_ABSPATH') )
39
  define('POWERPRESS_ABSPATH', dirname(__FILE__) );
40
 
41
- // Translation support loaded:
42
- load_plugin_textdomain('powerpress', // domain / keyword name of plugin
43
- POWERPRESS_ABSPATH .'/languages', // Absolute path
44
- basename(POWERPRESS_ABSPATH).'/languages' ); // relative path in plugins folder
45
 
46
  /////////////////////////////////////////////////////
47
  // The following define options should be placed in your
@@ -1319,14 +1316,18 @@ function powerpress_request($qv)
1319
 
1320
  add_filter('request', 'powerpress_request');
1321
 
1322
- // May be used for future use
1323
- /*
1324
  function powerpress_plugins_loaded()
1325
  {
1326
-
 
 
 
 
 
 
1327
  }
1328
  add_action('plugins_loaded', 'powerpress_plugins_loaded');
1329
- */
1330
 
1331
 
1332
  function powerpress_w3tc_can_print_comment($settings)
3
  Plugin Name: Blubrry PowerPress
4
  Plugin URI: http://create.blubrry.com/resources/powerpress/
5
  Description: <a href="http://create.blubrry.com/resources/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: 5.0.9
7
  Author: Blubrry
8
  Author URI: http://www.blubrry.com/
9
  Change Log:
32
  die("access denied.");
33
 
34
  // WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
35
+ define('POWERPRESS_VERSION', '5.0.9' );
36
 
37
  // Translation support:
38
  if ( !defined('POWERPRESS_ABSPATH') )
39
  define('POWERPRESS_ABSPATH', dirname(__FILE__) );
40
 
41
+
 
 
 
42
 
43
  /////////////////////////////////////////////////////
44
  // The following define options should be placed in your
1316
 
1317
  add_filter('request', 'powerpress_request');
1318
 
1319
+
 
1320
  function powerpress_plugins_loaded()
1321
  {
1322
+ //if( !defined('POWERPRESS_LANGUAGES_PLUGIN') )
1323
+ //{
1324
+ // Translation support loaded:
1325
+ load_plugin_textdomain('powerpress', // domain / keyword name of plugin
1326
+ POWERPRESS_ABSPATH .'/languages', // Absolute path
1327
+ basename(POWERPRESS_ABSPATH).'/languages' ); // relative path in plugins folder
1328
+ //}
1329
  }
1330
  add_action('plugins_loaded', 'powerpress_plugins_loaded');
 
1331
 
1332
 
1333
  function powerpress_w3tc_can_print_comment($settings)
powerpressadmin-editfeed.php CHANGED
@@ -569,8 +569,9 @@ if( $FeedAttribs['type'] != 'general' ) // All types exept general settings
569
  <?php echo powerpressadmin_notice( __('No support is available from blubrry if you are using Feedburner or other feed hosted services.', 'powerpress') ); ?><br />
570
  <a href="http://create.blubrry.com/manual/syndicating-your-podcast-rss-feeds/feedburner-for-podcasting/" target="_blank"><?php echo __('Learn more about FeedBurner and Podcasitng', 'powerpress'); ?></a>
571
  </p>
572
-
573
  <p><?php echo __('Use this option to redirect this feed to a hosted feed service such as FeedBurner.', 'powerpress'); ?></p>
 
 
574
  <?php
575
  $link = $feed_link;
576
  if( strstr($link, '?') )
569
  <?php echo powerpressadmin_notice( __('No support is available from blubrry if you are using Feedburner or other feed hosted services.', 'powerpress') ); ?><br />
570
  <a href="http://create.blubrry.com/manual/syndicating-your-podcast-rss-feeds/feedburner-for-podcasting/" target="_blank"><?php echo __('Learn more about FeedBurner and Podcasitng', 'powerpress'); ?></a>
571
  </p>
 
572
  <p><?php echo __('Use this option to redirect this feed to a hosted feed service such as FeedBurner.', 'powerpress'); ?></p>
573
+
574
+ <p><?php echo __('We recommend that you disable FeedBurner SmartCast when using FeedBurner with PowerPress.', 'powerpress'); ?></p>
575
  <?php
576
  $link = $feed_link;
577
  if( strstr($link, '?') )
powerpressadmin-jquery.php CHANGED
@@ -338,30 +338,36 @@ function DeleteMedia(File)
338
  <div class="media-upload-link"><a href="<?php echo admin_url() . wp_nonce_url("admin.php?action=powerpress-jquery-upload", 'powerpress-jquery-upload'); ?>&podcast-feed=<?php echo $FeedSlug; ?>&keepThis=true&TB_iframe=true&height=350&width=530&modal=true" class="thickbox"><?php echo __('Upload Media File', 'powerpress'); ?></a></div>
339
  <?php
340
  if( $QuotaData ) {
341
-
342
  $NextDate = strtotime( $QuotaData['published']['next_date']);
343
  ?>
344
- <p><?php
345
  if( $QuotaData['unpublished']['available'] != $QuotaData['unpublished']['total'] )
346
  {
347
- echo sprintf( __('You have uploaded %s (%s available) of your %s upload limit.', 'powerpress'),
348
- '<em>'. powerpress_byte_size($QuotaData['unpublished']['used']) .'</em>',
349
- '<em>'. powerpress_byte_size($QuotaData['unpublished']['available']) .'</em>',
350
- '<em>'. powerpress_byte_size($QuotaData['unpublished']['total']) .'</em>' );
 
 
351
  }
352
- else
353
- {
354
 
355
- }
 
356
  ?>
357
- </p>
358
  <p><?php
359
- if( $QuotaData['published']['available'] != $QuotaData['published']['total'] )
 
360
  {
361
- echo sprintf( __('You have %s available (%s published in the last 30 days) of your %s publish limit.', 'powerpress'),
362
  '<em>'. powerpress_byte_size($QuotaData['published']['available']) .'</em>',
363
- '<em>'. powerpress_byte_size($QuotaData['published']['total']-$QuotaData['published']['available']) .'</em>',
364
- '<em>'. powerpress_byte_size($QuotaData['published']['total']) .'</em>' );
 
 
 
 
 
365
  }
366
  else if( $QuotaData['published']['available'] == 0 ) // Hosting account frozen
367
  {
@@ -374,16 +380,38 @@ function DeleteMedia(File)
374
  }
375
  ?>
376
  </p>
 
 
 
 
 
 
 
 
 
377
  <p><?php
378
  if( $QuotaData['published']['available'] != $QuotaData['published']['total'] )
379
  {
380
- echo sprintf( __('Your limit will adjust on %s to %s (%s available).', 'powerpress'),
381
- date('m/d/Y', $NextDate),
382
- '<em>'. powerpress_byte_size($QuotaData['published']['total']-$QuotaData['published']['next_available']) .'</em>',
383
- '<em>'. powerpress_byte_size($QuotaData['published']['next_available']) .'</em>' );
384
  }
385
  ?>
386
  </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
387
  <?php } ?>
388
  <p style="text-align: center;"><a href="#" onclick="self.parent.tb_remove();"><?php echo __('Close', 'powerpress'); ?></a></p>
389
  </div>
338
  <div class="media-upload-link"><a href="<?php echo admin_url() . wp_nonce_url("admin.php?action=powerpress-jquery-upload", 'powerpress-jquery-upload'); ?>&podcast-feed=<?php echo $FeedSlug; ?>&keepThis=true&TB_iframe=true&height=350&width=530&modal=true" class="thickbox"><?php echo __('Upload Media File', 'powerpress'); ?></a></div>
339
  <?php
340
  if( $QuotaData ) {
341
+
342
  $NextDate = strtotime( $QuotaData['published']['next_date']);
343
  ?>
344
+ <?php
345
  if( $QuotaData['unpublished']['available'] != $QuotaData['unpublished']['total'] )
346
  {
347
+ //echo '<p>';
348
+ //echo sprintf( __('You have uploaded %s (%s available) of your %s upload limit.', 'powerpress'),
349
+ // '<em>'. powerpress_byte_size($QuotaData['unpublished']['used']) .'</em>',
350
+ // '<em>'. powerpress_byte_size($QuotaData['unpublished']['available']) .'</em>',
351
+ // '<em>'. powerpress_byte_size($QuotaData['unpublished']['total']) .'</em>' );
352
+ //echo '</p>';
353
  }
 
 
354
 
355
+ if( $QuotaData['published']['status'] == 'OK' )
356
+ {
357
  ?>
 
358
  <p><?php
359
+
360
+ if( $QuotaData['published']['available'] > 0 ) // != $QuotaData['published']['total'] )
361
  {
362
+ echo sprintf( __('Publishing space available: %s of (%s %%) of %s/month quota.', 'powerpress'),
363
  '<em>'. powerpress_byte_size($QuotaData['published']['available']) .'</em>',
364
+ //'<em>'. powerpress_byte_size($QuotaData['published']['total']-$QuotaData['published']['available']) .'</em>',
365
+ '<em>'. round( ($QuotaData['published']['available']/$QuotaData['published']['total'])*100 ) .'</em>',
366
+ '<em>'. str_replace('.0', '', powerpress_byte_size($QuotaData['published']['total'])) .'</em>' );
367
+ //echo sprintf( __('You have %s available (%s published in the last 30 days) of your %s publish limit.', 'powerpress'),
368
+ // '<em>'. powerpress_byte_size($QuotaData['published']['available']) .'</em>',
369
+ // '<em>'. powerpress_byte_size($QuotaData['published']['total']-$QuotaData['published']['available']) .'</em>',
370
+ // '<em>'. powerpress_byte_size($QuotaData['published']['total']) .'</em>' );
371
  }
372
  else if( $QuotaData['published']['available'] == 0 ) // Hosting account frozen
373
  {
380
  }
381
  ?>
382
  </p>
383
+ <p>
384
+ <?php
385
+ echo sprintf( __('No-Fault Hosting: You may upload a media file up to %s in size and be within the No-Fault maximum (25%% more than your %s quota).', 'powerpress'),
386
+ powerpress_byte_size($QuotaData['published']['no_fault_maximum']),
387
+ str_replace('.0', '', powerpress_byte_size($QuotaData['published']['total'])));
388
+ echo ' ';
389
+ echo '<a href="http://create.blubrry.com/resources/podcast-media-hosting/no-fault/" target="_blank">'. __('Learn More', 'powerpress') .'</a>';
390
+ ?>
391
+ </p>
392
  <p><?php
393
  if( $QuotaData['published']['available'] != $QuotaData['published']['total'] )
394
  {
395
+ echo sprintf( __('Your quota will reset on %s.', 'powerpress'),
396
+ date('m/d/Y', $NextDate) );
 
 
397
  }
398
  ?>
399
  </p>
400
+ <?php
401
+ }
402
+ else if( $QuotaData['published']['status'] == 'UNLIMITED' )
403
+ {
404
+ echo '<p>';
405
+ echo __('Publishing Space Available: Unlimited (Professional Hosting)', 'powerpress');
406
+ echo '<p>';
407
+ }
408
+ else
409
+ {
410
+ echo '<p>';
411
+ echo __('Publishing Space Available: Account has expired', 'powerpress');
412
+ echo '<p>';
413
+ }
414
+ ?>
415
  <?php } ?>
416
  <p style="text-align: center;"><a href="#" onclick="self.parent.tb_remove();"><?php echo __('Close', 'powerpress'); ?></a></p>
417
  </div>
powerpressadmin.php CHANGED
@@ -2402,7 +2402,7 @@ function powerpress_media_info_ajax()
2402
 
2403
  if( !isset($MediaInfo['error']) && !empty($MediaInfo['length']) )
2404
  {
2405
- substr('', 'abc');
2406
  echo "VERIFY-OK\n";
2407
  echo "$feed_slug\n"; // swap positions
2408
  echo "{$MediaInfo['length']}\n";
@@ -3089,8 +3089,15 @@ function powerpress_process_hosting($post_ID, $post_title)
3089
  {
3090
  $rand_id = rand(100,2000);
3091
  $error = __('Blubrry Hosting Error (publish)', 'powerpress') .': '. sprintf( __('An error occurred publishing media \'%s\'.','powerpress'), $EnclosureURL);
3092
- $error .= ' <a href="#" onclick="document.getElementById(\'powerpress_error_'. $rand_id .'\');this.style.display=\'none\';return false;">'. __('Display Error', 'powerpress') .'</a>';
3093
- $error .= '<div id="powerpress_error_'. $rand_id .'" style="display: none;">'. $json_data .'</div>';
 
 
 
 
 
 
 
3094
  powerpress_add_error($error);
3095
  }
3096
  }
2402
 
2403
  if( !isset($MediaInfo['error']) && !empty($MediaInfo['length']) )
2404
  {
2405
+ //substr('', 'abc');
2406
  echo "VERIFY-OK\n";
2407
  echo "$feed_slug\n"; // swap positions
2408
  echo "{$MediaInfo['length']}\n";
3089
  {
3090
  $rand_id = rand(100,2000);
3091
  $error = __('Blubrry Hosting Error (publish)', 'powerpress') .': '. sprintf( __('An error occurred publishing media \'%s\'.','powerpress'), $EnclosureURL);
3092
+ $error .= ' <a href="#" onclick="document.getElementById(\'powerpress_error_'. $rand_id .'\').style.display=\'block\';this.style.display=\'none\';return false;">'. __('Display Error', 'powerpress') .'</a>';
3093
+ $error .= '<div id="powerpress_error_'. $rand_id .'" style="display: none;">';
3094
+ if( !empty($json_data) )
3095
+ $error .= $json_data;
3096
+ else if( !empty($GLOBALS['g_powerpress_remote_error']) )
3097
+ $error .= htmlspecialchars($GLOBALS['g_powerpress_remote_error']);
3098
+ else
3099
+ $error .= __('Unknown error ocurred.', 'powerpress');
3100
+ $error .= '</div>';
3101
  powerpress_add_error($error);
3102
  }
3103
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: amandato, blubrry
3
  Tags: podcasting, podcast, podcaster, itunes, enclosure, zune, iphone, youtube, viddler, blip.tv, ustream, podcasting, audio, video, rss2, feed, player, media, rss, mp3, music, embed, feedburner, statistics, stats, flv, flash, id3, episodes, blubrry, webm, mp4, m4v, wordpressmu, mu, wordpress mu, multisite, multi site, mediacaster, post, plugin, posts, simple, social, dashboard, TSG, Buzzsprout, MTR, WP-boxCast, CastMyBlog, simple podcasting, seriously simple podcasting, seriously-simple-podcasting, podlove, podcast.de
4
  Requires at least: 3.0
5
  Tested up to: 3.9.1
6
- Stable tag: 5.0.8
7
  Donate link: http://create.blubrry.com/
8
  License: GPLv2 or later
9
 
@@ -175,13 +175,24 @@ To install Blubrry PowerPress manually, follow these steps:
175
  * We are looking for beta testers! If you would like to beta test future versions of PowerPress, please [contact us](http://www.blubrry.com/contact.php) with your name and email.
176
 
177
 
 
 
 
 
 
 
 
 
 
 
 
 
178
  = 5.0.8 =
179
  * Released on 6/11/2014
180
  * Added better error reporting logic for services and statistics.
181
  * Added option to get podcast meta data optionally from a value (rather than from database)
182
  * Added logic to override the html content-type when a HTTP HEAD request is made for a feed URL
183
  * Fixed notice message on line 220 of powerpress.php (thanks brandonferens for letting us know about the notice message)
184
- * We will soon be releasing a beta version of PowerPress 6.0. If you are interested in beta testing, please [contact us](http://www.blubrry.com/contact.php).
185
 
186
 
187
  = 5.0.7 =
3
  Tags: podcasting, podcast, podcaster, itunes, enclosure, zune, iphone, youtube, viddler, blip.tv, ustream, podcasting, audio, video, rss2, feed, player, media, rss, mp3, music, embed, feedburner, statistics, stats, flv, flash, id3, episodes, blubrry, webm, mp4, m4v, wordpressmu, mu, wordpress mu, multisite, multi site, mediacaster, post, plugin, posts, simple, social, dashboard, TSG, Buzzsprout, MTR, WP-boxCast, CastMyBlog, simple podcasting, seriously simple podcasting, seriously-simple-podcasting, podlove, podcast.de
4
  Requires at least: 3.0
5
  Tested up to: 3.9.1
6
+ Stable tag: 5.0.9
7
  Donate link: http://create.blubrry.com/
8
  License: GPLv2 or later
9
 
175
  * We are looking for beta testers! If you would like to beta test future versions of PowerPress, please [contact us](http://www.blubrry.com/contact.php) with your name and email.
176
 
177
 
178
+ = 5.0.9 =
179
+ * Released on 7/28/2014
180
+ * Fixed wo logic errors in the powerpress-player.php (Thanks Tom from the Hawaii Vacation Connection podcast for bringing to our attention)
181
+ * Added support for the [PowerPress in your Language](http://create.blubrry.com/resources/powerpress/powerpress-language/) add-on plugin.
182
+ * Removed support for the [PowerPress in your Language](http://create.blubrry.com/resources/powerpress/powerpress-language/), plugin was rejected by WordPress.org. We are doing our best to come up with another solution.
183
+ * Screenshot files have been moved to the assets folder, they will no longer be packaged with the plugin's zip file.
184
+ * Fixed PHP warning in powerpressadmin.php on line 2405 (Thanks Robin for letting us know)
185
+ * Added notice for FeedBurner setting "We recommend that you disabled SmartCast when using PowerPress with FeedBurner", otherwise FeedBuner will duplicate iTunes descriptions for episodes. (Thanks Daniel Lewis for suggestion)
186
+ * Added [No-Fault Hosting](http://create.blubrry.com/resources/podcast-media-hosting/no-fault/) support for all Blubrry Podcast Hosting customers. In addition, starting August 1st 2014, publishing quotas will be reset on the 1st of each month.
187
+ * PowerPress 6.0 beta will be available for testing the end of this week. If you are interested in beta testing, please [contact us](http://www.blubrry.com/contact.php).
188
+
189
+
190
  = 5.0.8 =
191
  * Released on 6/11/2014
192
  * Added better error reporting logic for services and statistics.
193
  * Added option to get podcast meta data optionally from a value (rather than from database)
194
  * Added logic to override the html content-type when a HTTP HEAD request is made for a feed URL
195
  * Fixed notice message on line 220 of powerpress.php (thanks brandonferens for letting us know about the notice message)
 
196
 
197
 
198
  = 5.0.7 =
screenshot-1.png DELETED
Binary file
screenshot-2.png DELETED
Binary file
screenshot-3.png DELETED
Binary file
screenshot-4.png DELETED
Binary file
screenshot-5.png DELETED
Binary file