PowerPress Podcasting plugin by Blubrry - Version 0.6.0

Version Description

Download this release

Release Info

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

Code changes from version 0.5.2 to 0.6.0

Files changed (3) hide show
  1. powerpress.php +8 -13
  2. powerpressadmin.php +142 -58
  3. readme.txt +10 -1
powerpress.php CHANGED
@@ -3,10 +3,11 @@
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 and iTunes integration.
6
- Version: 0.5.2
7
  Author: Blubrry
8
  Author URI: http://www.blubrry.com/
9
  Change Log:
 
10
  2008-12-14 - v0.5.2: Fixed bug with the feed channel itunes:summary being limited to 255 characters, the limit is now set to 4,000.
11
  2008-12-10 - v0.5.1: Added podcast to pages option (Thanks @Frumph), added code to make sure the itunes:subtitle, keywords and summary feed tags never exceed their size limits.
12
  2008-11-26 - v0.5.0: Added options to report media duration and file size next to download links, new Media URL check performed when adding episode to new post and fixed a number of bugs including the player auto play bug caused by version v0.4.2.
@@ -41,13 +42,7 @@ License: Apache License version 2.0 (http://www.apache.org/licenses/)
41
  is interpreted as GPL version 3.0 for compatibility with Apache 2.0 license.
42
  */
43
 
44
- define('POWERPRESS_VERSION', '0.5.1' );
45
-
46
- // include <itunes:new-feed-url> tag in Main RSS feed:
47
- //define('POWERPRESS_NEW_FEED_URL', 'http://www.your-site.com/path/to/feed/');
48
-
49
- // include <itunes:new-feed-url> tag in Podcast specific RSS feed:
50
- //define('POWERPRESS_NEW_FEED_URL_PODCAST', 'http://www.your-site.com/path/to/podcast/feed/');
51
 
52
  // Display Powerpress player only for previously created Podpress episodes.
53
  // define('POWERPRESS_USE_PLAYER_FOR_PODPRESS_EPISODES', true);
@@ -292,10 +287,10 @@ function powerpress_rss2_head()
292
  echo '<!-- podcast_generator="Blubrry Powerpress/'. POWERPRESS_VERSION .'" -->'.PHP_EOL;
293
 
294
  // add the itunes:new-feed-url tag to feed
295
- if( defined('POWERPRESS_NEW_FEED_URL') && ($feed == 'feed' || $feed == 'rss2') )
296
- echo "\t<itunes:new-feed-url>". constant('POWERPRESS_NEW_FEED_URL') .'</itunes:new-feed-url>'.PHP_EOL;
297
- else if( defined('POWERPRESS_NEW_FEED_URL_'.strtoupper($feed) ) )
298
- echo "\t<itunes:new-feed-url>". constant( 'POWERPRESS_NEW_FEED_URL_'.strtoupper($feed) ) .'</itunes:new-feed-url>'.PHP_EOL;
299
 
300
  if( $Feed['itunes_summary'] )
301
  echo "\t".'<itunes:summary>'. powerpress_format_itunes_value( $Feed['itunes_summary'], 4000 ) .'</itunes:summary>'.PHP_EOL;
@@ -562,7 +557,7 @@ function powerpress_do_podcast_feed()
562
  {
563
  global $wp_query;
564
  $wp_query->get_posts();
565
- load_template(ABSPATH . 'wp-rss2.php');
566
  }
567
 
568
  function powerpress_init()
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 and iTunes integration.
6
+ Version: 0.6.0
7
  Author: Blubrry
8
  Author URI: http://www.blubrry.com/
9
  Change Log:
10
+ 2008-12-17 - v0.6.0: Fixed bug with podcast feed in Wordpress 2.7, added defaults for file size and duration and added iTunes New Feed URL option.
11
  2008-12-14 - v0.5.2: Fixed bug with the feed channel itunes:summary being limited to 255 characters, the limit is now set to 4,000.
12
  2008-12-10 - v0.5.1: Added podcast to pages option (Thanks @Frumph), added code to make sure the itunes:subtitle, keywords and summary feed tags never exceed their size limits.
13
  2008-11-26 - v0.5.0: Added options to report media duration and file size next to download links, new Media URL check performed when adding episode to new post and fixed a number of bugs including the player auto play bug caused by version v0.4.2.
42
  is interpreted as GPL version 3.0 for compatibility with Apache 2.0 license.
43
  */
44
 
45
+ define('POWERPRESS_VERSION', '0.6.0' );
 
 
 
 
 
 
46
 
47
  // Display Powerpress player only for previously created Podpress episodes.
48
  // define('POWERPRESS_USE_PLAYER_FOR_PODPRESS_EPISODES', true);
287
  echo '<!-- podcast_generator="Blubrry Powerpress/'. POWERPRESS_VERSION .'" -->'.PHP_EOL;
288
 
289
  // add the itunes:new-feed-url tag to feed
290
+ if( trim($Feed['itunes_new_feed_url']) && ($feed == 'feed' || $feed == 'rss2') )
291
+ echo "\t<itunes:new-feed-url>". $Feed['itunes_new_feed_url'] .'</itunes:new-feed-url>'.PHP_EOL;
292
+ else if( trim($Feed['itunes_new_feed_url_podcast']) && $feed == 'podcast' )
293
+ echo "\t<itunes:new-feed-url>". $Feed['itunes_new_feed_url_podcast'] .'</itunes:new-feed-url>'.PHP_EOL;
294
 
295
  if( $Feed['itunes_summary'] )
296
  echo "\t".'<itunes:summary>'. powerpress_format_itunes_value( $Feed['itunes_summary'], 4000 ) .'</itunes:summary>'.PHP_EOL;
557
  {
558
  global $wp_query;
559
  $wp_query->get_posts();
560
+ load_template(ABSPATH . WPINC. '/feed-rss2.php');
561
  }
562
 
563
  function powerpress_init()
powerpressadmin.php CHANGED
@@ -17,6 +17,11 @@ function powerpress_meta_box($object, $box)
17
  $DurationSS = '';
18
  $EnclosureURL = '';
19
  $EnclosureLength = '';
 
 
 
 
 
20
 
21
  if( $object->ID )
22
  {
@@ -120,10 +125,10 @@ function powerpress_check_url(url)
120
  <label for "size">File Size</label>
121
  <div class="powerpress_row_content">
122
  <div style="margin-bottom: 4px;">
123
- <input id="powerpress_set_size" name="Powerpress[set_size]" value="0" type="radio" checked /> Auto detect file size
124
  </div>
125
  <div>
126
- <input id="powerpress_set_size" name="Powerpress[set_size]" value="1" type="radio" /> Specify:
127
  <input id="powerpress_size" name="Powerpress[size]" value="<?php echo $EnclosureLength; ?>" style="width: 110px; font-size: 90%;" /> in bytes
128
  </div>
129
  </div>
@@ -132,16 +137,16 @@ function powerpress_check_url(url)
132
  <label for "size">Duration</label>
133
  <div class="powerpress_row_content">
134
  <div style="margin-bottom: 4px;">
135
- <input id="powerpress_set_duration" name="Powerpress[set_duration]" value="0" type="radio" checked /> Auto detect duration (mp3's only)
136
  </div>
137
  <div style="margin-bottom: 4px;">
138
- <input id="powerpress_set_duration" name="Powerpress[set_duration]" value="1" type="radio" /> Specify:
139
  <input id="powerpress_duration_hh" name="Powerpress[duration_hh]" maxlength="2" value="<?php echo $DurationHH; ?>" style="width: 24px; font-size: 90%; text-align: right;" /><strong>:</strong>
140
  <input id="powerpress_duration_mm" name="Powerpress[duration_mm]" maxlength="2" value="<?php echo $DurationMM; ?>" style="width: 24px; font-size: 90%; text-align: right;" /><strong>:</strong>
141
  <input id="powerpress_duration_ss" name="Powerpress[duration_ss]" maxlength="2" value="<?php echo $DurationSS; ?>" style="width: 24px; font-size: 90%; text-align: right;" /> HH:MM:SS
142
  </div>
143
  <div>
144
- <input id="powerpress_set_duration" name="Powerpress[set_duration]" value="-1" type="radio" /> Not specified
145
  </div>
146
  </div>
147
  </div>
@@ -293,39 +298,55 @@ function powerpress_admin_head()
293
  {
294
  if( strstr($_GET['page'], 'powerpress.php' ) )
295
  {
296
- echo '<script type="text/javascript">'.PHP_EOL;
297
- echo 'function powerpress_show_field(id, show){'.PHP_EOL;
298
- echo ' if( document.getElementById(id).nodeName == "SPAN" )'.PHP_EOL;
299
- echo ' document.getElementById(id).style.display = (show?"inline":"none");'.PHP_EOL;
300
- echo ' else'.PHP_EOL;
301
- echo ' document.getElementById(id).style.display = (show?"block":"none");'.PHP_EOL;
302
- echo '}'.PHP_EOL;
303
- echo '</script>'.PHP_EOL;
304
-
305
- echo '<style type="text/css">'.PHP_EOL;
306
- echo '.powerpress-notice {'.PHP_EOL;
307
- echo ' margin-top: 10px;'.PHP_EOL;
308
- echo ' margin-bottom: 10px;'.PHP_EOL;
309
- echo ' line-height: 29px;'.PHP_EOL;
310
- echo ' font-size: 12px;'.PHP_EOL;
311
- echo ' text-align: center;'.PHP_EOL;
312
- echo ' border-width: 1px;'.PHP_EOL;
313
- echo ' border-style: solid;'.PHP_EOL;
314
- echo ' font-weight: bold;'.PHP_EOL;
315
- echo '}'.PHP_EOL;
316
- echo '.powerpress-error {'.PHP_EOL;
317
- echo ' margin-top: 10px;'.PHP_EOL;
318
- echo ' margin-bottom: 10px;'.PHP_EOL;
319
- echo ' line-height: 29px;'.PHP_EOL;
320
- echo ' font-size: 12px;'.PHP_EOL;
321
- echo ' text-align: center;'.PHP_EOL;
322
- echo ' border-width: 1px;'.PHP_EOL;
323
- echo ' border-style: solid;'.PHP_EOL;
324
- //echo ' border-color: #c69;'.PHP_EOL;
325
- //echo ' background-color: #ffeff7;'.PHP_EOL;
326
- echo ' font-weight: bold;'.PHP_EOL;
327
- echo '}'.PHP_EOL;
328
- echo '</style>'.PHP_EOL;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
329
  }
330
  }
331
 
@@ -391,7 +412,7 @@ function powerpress_admin_page()
391
  }
392
  else
393
  {
394
- echo '<div class="error powerpress-error">Invalid iTunes image: ' . htmlspecialchars($_FILES['itunes_image_file']['name']) . '</div>';
395
  }
396
  }
397
 
@@ -580,12 +601,8 @@ function powerpress_admin_page()
580
  reset($FeedSettings);
581
 
582
  // Now display the options editing screen
583
-
584
- echo '<div class="wrap">';
585
-
586
- // Start the form
587
  ?>
588
-
589
 
590
  <form enctype="multipart/form-data" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
591
 
@@ -611,7 +628,7 @@ You may leave blank if you always enter the complete URL to your media when crea
611
 
612
  <?php _e("Podpress Episodes"); ?></th>
613
  <td>
614
- <select name="General[process_podpress]">
615
  <?php
616
  $options = array(0=>'Ignore', 1=>'Include in Posts and Feeds');
617
 
@@ -623,6 +640,41 @@ while( list($value,$desc) = each($options) )
623
  </td>
624
  </tr>
625
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
626
  <tr valign="top">
627
  <th scope="row"><?php _e("iTunes URL"); ?></th>
628
  <td>
@@ -642,7 +694,7 @@ Once your podcast is listed on iTunes, enter your one click subscription URL abo
642
 
643
  <?php _e("Ping iTunes"); ?></th>
644
  <td>
645
- <select name="General[ping_itunes]"<?php if( $OpenSSLSupport == false ) echo ' disabled'; ?>>
646
  <?php
647
  $options = array(0=>'No ', 1=>'Yes ');
648
 
@@ -684,7 +736,7 @@ while( list($value,$desc) = each($options) )
684
  <table class="form-table">
685
  <tr valign="top">
686
  <th scope="row"><?php _e("Display Player"); ?></th>
687
- <td><select name="General[display_player]">
688
  <?php
689
  $displayoptions = array(1=>"Below Post", 2=>"Above Post", 0=>"None");
690
 
@@ -699,7 +751,7 @@ while( list($value,$desc) = each($displayoptions) )
699
  <tr valign="top">
700
  <th scope="row">
701
  <?php _e("Player Function"); ?></th>
702
- <td><select name="General[player_function]">
703
  <?php
704
  $playeroptions = array(1=>'On Page & New Window', 2=>'On Page Only', 3=>'New Window Only', 4=>'On Page Link', 5=>'On Page Link & New Window', 0=>'Disable');
705
 
@@ -720,7 +772,7 @@ while( list($value,$desc) = each($playeroptions) )
720
 
721
  <?php _e("Download Link"); ?></th>
722
  <td>
723
- <select name="General[podcast_link]">
724
  <?php
725
  $linkoptions = array(1=>"Display", 2=>"Display with file size", 3=>"Display with file size and duration", 0=>"Disable");
726
 
@@ -790,7 +842,7 @@ while( list($value,$desc) = each($linkoptions) )
790
 
791
  <?php _e("Apply Settings To"); ?></th>
792
  <td>
793
- <select name="Feed[apply_to]">
794
  <?php
795
  $applyoptions = array(1=>'All RSS2 Feeds', 2=>'Main RSS2 Feed only', 0=>'Disable (settings below ignored)');
796
 
@@ -812,9 +864,42 @@ while( list($value,$desc) = each($applyoptions) )
812
  <td>
813
  <p>Main RSS2 Feed: <a href="<?php echo get_bloginfo('rss2_url'); ?>" title="Main RSS 2 Feed" target="_blank"><?php echo get_bloginfo('rss2_url'); ?></a> | <a href="http://www.feedvalidator.org/check.cgi?url=<?php echo urlencode(get_bloginfo('rss2_url')); ?>" title="Validate Feed" target="_blank">validate</a></p>
814
  <p>Special Podcast only Feed: <a href="<?php echo get_feed_link('podcast'); ?>" title="Podcast Feed" target="_blank"><?php echo get_feed_link('podcast'); ?></a> | <a href="http://www.feedvalidator.org/check.cgi?url=<?php echo urlencode(get_feed_link('podcast')); ?>" title="Validate Feed" target="_blank">validate</a></p>
 
815
  </td>
816
  </tr>
817
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
818
  <tr valign="top">
819
  <th scope="row">
820
 
@@ -840,7 +925,7 @@ while( list($value,$desc) = each($applyoptions) )
840
  <?php _e("iTunes Program Keywords"); ?> <br />
841
  </th>
842
  <td>
843
- <input type="text" name="Feed[itunes_keywords]"style="width: 60%;" value="<?php echo $FeedSettings['itunes_keywords']; ?>" maxlength="250" />
844
  <p>Enter up to 12 keywords separated by commas.</p>
845
  </td>
846
  </tr>
@@ -850,7 +935,7 @@ while( list($value,$desc) = each($applyoptions) )
850
  <?php _e("iTunes Category 1"); ?>
851
  </th>
852
  <td>
853
- <select name="Feed[itunes_cat_1]">
854
  <?php
855
  $linkoptions = array("On page", "Disable");
856
 
@@ -872,7 +957,7 @@ reset($Categories);
872
  <?php _e("iTunes Category 2"); ?>
873
  </th>
874
  <td>
875
- <select name="Feed[itunes_cat_2]">
876
  <?php
877
  $linkoptions = array("On page", "Disable");
878
 
@@ -893,7 +978,7 @@ reset($Categories);
893
  <?php _e("iTunes Category 3"); ?>
894
  </th>
895
  <td>
896
- <select name="Feed[itunes_cat_3]">
897
  <?php
898
  $linkoptions = array("On page", "Disable");
899
 
@@ -913,7 +998,7 @@ reset($Categories);
913
  <?php _e("iTunes Explicit"); ?>
914
  </th>
915
  <td>
916
- <select name="Feed[itunes_explicit]">
917
  <?php
918
  $explicit = array(0=>"no - display nothing", 1=>"yes - explicit content", 2=>"clean - no explicit content");
919
 
@@ -993,15 +1078,14 @@ while( list($value,$desc) = each($explicit) )
993
  </table>
994
  <p style="font-size: 85%; text-align: center;">
995
  <a href="http://www.blubrry.com/powerpress/" title="Blubrry Powerpress" target="_blank">Blubrry Powerpress</a> <?php echo POWERPRESS_VERSION; ?>
996
- &#8212; <a href="http://help.blubrry.com/blubrry-powerpress/" target="_blank">Documentation</a>
997
  </p>
998
  <p class="submit">
999
- <input type="submit" name="Submit" value="<?php _e('Save Changes' ) ?>" />
1000
  </p>
1001
 
1002
  </form>
1003
  </div>
1004
- <hr />
1005
 
1006
  <?php
1007
  }
17
  $DurationSS = '';
18
  $EnclosureURL = '';
19
  $EnclosureLength = '';
20
+ $GeneralSettings = get_option('powerpress_general');
21
+ if( !isset($GeneralSettings['set_size']) )
22
+ $GeneralSettings['set_size'] = 0;
23
+ if( !isset($GeneralSettings['set_duration']) )
24
+ $GeneralSettings['set_duration'] = 0;
25
 
26
  if( $object->ID )
27
  {
125
  <label for "size">File Size</label>
126
  <div class="powerpress_row_content">
127
  <div style="margin-bottom: 4px;">
128
+ <input id="powerpress_set_size" name="Powerpress[set_size]" value="0" type="radio" <?php echo ($GeneralSettings['set_size']==0?'checked':''); ?> /> Auto detect file size
129
  </div>
130
  <div>
131
+ <input id="powerpress_set_size" name="Powerpress[set_size]" value="1" type="radio" <?php echo ($GeneralSettings['set_size']==1?'checked':''); ?> /> Specify:
132
  <input id="powerpress_size" name="Powerpress[size]" value="<?php echo $EnclosureLength; ?>" style="width: 110px; font-size: 90%;" /> in bytes
133
  </div>
134
  </div>
137
  <label for "size">Duration</label>
138
  <div class="powerpress_row_content">
139
  <div style="margin-bottom: 4px;">
140
+ <input id="powerpress_set_duration" name="Powerpress[set_duration]" value="0" type="radio" <?php echo ($GeneralSettings['set_duration']==0?'checked':''); ?> /> Auto detect duration (mp3's only)
141
  </div>
142
  <div style="margin-bottom: 4px;">
143
+ <input id="powerpress_set_duration" name="Powerpress[set_duration]" value="1" type="radio" <?php echo ($GeneralSettings['set_duration']==1?'checked':''); ?> /> Specify:
144
  <input id="powerpress_duration_hh" name="Powerpress[duration_hh]" maxlength="2" value="<?php echo $DurationHH; ?>" style="width: 24px; font-size: 90%; text-align: right;" /><strong>:</strong>
145
  <input id="powerpress_duration_mm" name="Powerpress[duration_mm]" maxlength="2" value="<?php echo $DurationMM; ?>" style="width: 24px; font-size: 90%; text-align: right;" /><strong>:</strong>
146
  <input id="powerpress_duration_ss" name="Powerpress[duration_ss]" maxlength="2" value="<?php echo $DurationSS; ?>" style="width: 24px; font-size: 90%; text-align: right;" /> HH:MM:SS
147
  </div>
148
  <div>
149
+ <input id="powerpress_set_duration" name="Powerpress[set_duration]" value="-1" type="radio" <?php echo ($GeneralSettings['set_duration']==-1?'checked':''); ?> /> Not specified
150
  </div>
151
  </div>
152
  </div>
298
  {
299
  if( strstr($_GET['page'], 'powerpress.php' ) )
300
  {
301
+ ?>
302
+ <script type="text/javascript">
303
+ function powerpress_show_field(id, show) {
304
+ if( document.getElementById(id).nodeName == "SPAN" )
305
+ document.getElementById(id).style.display = (show?"inline":"none");
306
+ else
307
+ document.getElementById(id).style.display = (show?"block":"none");
308
+ }
309
+ function powerpress_new_feed_url_prompt() {
310
+ var Msg = 'WARNING: Changes made here are permanent. If the New Feed URL entered is incorrect, you will lose subscribers and will no longer be able to update your listing in the iTunes Store.\n\nDO NOT MODIFY THIS SETTING UNLESS YOU ABSOLUTELY KNOW WHAT YOU ARE DOING.\n\nAre you sure you want to continue?';
311
+ if( confirm(Msg) ) {
312
+ powerpress_show_field('new_feed_url_step_1', false);
313
+ powerpress_show_field('new_feed_url_step_2', true);
314
+ }
315
+ return false;
316
+ }
317
+ </script>
318
+ <style type="text/css">
319
+ .powerpress-notice {
320
+ margin-top: 10px;
321
+ margin-bottom: 10px;
322
+ line-height: 29px;
323
+ font-size: 12px;
324
+ border-width: 1px;
325
+ border-style: solid;
326
+ font-weight: bold;
327
+ }
328
+ .powerpress-error {
329
+ margin-top: 10px;
330
+ margin-bottom: 10px;
331
+ line-height: 29px;
332
+ font-size: 12px;
333
+ border-width: 1px;
334
+ border-style: solid;
335
+ font-weight: bold;
336
+ }
337
+ #powerpress_settings {
338
+ background-image:url(http://images.blubrry.com/powerpress/blubrry.png);
339
+ background-repeat: no-repeat;
340
+ background-position: bottom right;
341
+ }
342
+ .bpp_input_sm {
343
+ width: 120px;
344
+ }
345
+ .bpp_input_med {
346
+ width: 250px;
347
+ }
348
+ </style>
349
+ <?php
350
  }
351
  }
352
 
412
  }
413
  else
414
  {
415
+ echo '<div class="error powerpress-error">Invalid iTunes image ' . htmlspecialchars($_FILES['itunes_image_file']['name']) . '</div>';
416
  }
417
  }
418
 
601
  reset($FeedSettings);
602
 
603
  // Now display the options editing screen
 
 
 
 
604
  ?>
605
+ <div class="wrap" id="powerpress_settings">
606
 
607
  <form enctype="multipart/form-data" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
608
 
628
 
629
  <?php _e("Podpress Episodes"); ?></th>
630
  <td>
631
+ <select name="General[process_podpress]" class="bpp_input_med">
632
  <?php
633
  $options = array(0=>'Ignore', 1=>'Include in Posts and Feeds');
634
 
640
  </td>
641
  </tr>
642
 
643
+ <tr valign="top">
644
+ <th scope="row">
645
+
646
+ <?php _e("File Size Default"); ?></th>
647
+ <td>
648
+ <select name="General[set_size]" class="bpp_input_med">
649
+ <?php
650
+ $options = array(0=>'Auto detect file size', 1=>'User specify');
651
+
652
+ while( list($value,$desc) = each($options) )
653
+ echo "\t<option value=\"$value\"". ($General['set_size']==$value?' selected':''). ">$desc</option>\n";
654
+
655
+ ?>
656
+ </select> (specify default file size option when creating a new episode)
657
+ </td>
658
+ </tr>
659
+
660
+
661
+ <tr valign="top">
662
+ <th scope="row">
663
+
664
+ <?php _e("Duration Default"); ?></th>
665
+ <td>
666
+ <select name="General[set_duration]" class="bpp_input_med">
667
+ <?php
668
+ $options = array(0=>'Auto detect duration (mp3\'s only)', 1=>'User specify', -1=>'Not specified (not recommended)');
669
+
670
+ while( list($value,$desc) = each($options) )
671
+ echo "\t<option value=\"$value\"". ($General['set_duration']==$value?' selected':''). ">$desc</option>\n";
672
+
673
+ ?>
674
+ </select> (specify default duration option when creating a new episode)
675
+ </td>
676
+ </tr>
677
+
678
  <tr valign="top">
679
  <th scope="row"><?php _e("iTunes URL"); ?></th>
680
  <td>
694
 
695
  <?php _e("Ping iTunes"); ?></th>
696
  <td>
697
+ <select name="General[ping_itunes]"<?php if( $OpenSSLSupport == false ) echo ' disabled'; ?> class="bpp_input_sm">
698
  <?php
699
  $options = array(0=>'No ', 1=>'Yes ');
700
 
736
  <table class="form-table">
737
  <tr valign="top">
738
  <th scope="row"><?php _e("Display Player"); ?></th>
739
+ <td><select name="General[display_player]" class="bpp_input_sm">
740
  <?php
741
  $displayoptions = array(1=>"Below Post", 2=>"Above Post", 0=>"None");
742
 
751
  <tr valign="top">
752
  <th scope="row">
753
  <?php _e("Player Function"); ?></th>
754
+ <td><select name="General[player_function]" class="bpp_input_med">
755
  <?php
756
  $playeroptions = array(1=>'On Page & New Window', 2=>'On Page Only', 3=>'New Window Only', 4=>'On Page Link', 5=>'On Page Link & New Window', 0=>'Disable');
757
 
772
 
773
  <?php _e("Download Link"); ?></th>
774
  <td>
775
+ <select name="General[podcast_link]" class="bpp_input_med">
776
  <?php
777
  $linkoptions = array(1=>"Display", 2=>"Display with file size", 3=>"Display with file size and duration", 0=>"Disable");
778
 
842
 
843
  <?php _e("Apply Settings To"); ?></th>
844
  <td>
845
+ <select name="Feed[apply_to]" class="bpp_input_med">
846
  <?php
847
  $applyoptions = array(1=>'All RSS2 Feeds', 2=>'Main RSS2 Feed only', 0=>'Disable (settings below ignored)');
848
 
864
  <td>
865
  <p>Main RSS2 Feed: <a href="<?php echo get_bloginfo('rss2_url'); ?>" title="Main RSS 2 Feed" target="_blank"><?php echo get_bloginfo('rss2_url'); ?></a> | <a href="http://www.feedvalidator.org/check.cgi?url=<?php echo urlencode(get_bloginfo('rss2_url')); ?>" title="Validate Feed" target="_blank">validate</a></p>
866
  <p>Special Podcast only Feed: <a href="<?php echo get_feed_link('podcast'); ?>" title="Podcast Feed" target="_blank"><?php echo get_feed_link('podcast'); ?></a> | <a href="http://www.feedvalidator.org/check.cgi?url=<?php echo urlencode(get_feed_link('podcast')); ?>" title="Validate Feed" target="_blank">validate</a></p>
867
+
868
  </td>
869
  </tr>
870
 
871
+ <tr valign="top">
872
+ <th scope="row" >
873
+
874
+ <?php _e("iTunes New Feed URL"); ?></th>
875
+ <td>
876
+ <div id="new_feed_url_step_1" style="display: <?php echo ($FeedSettings['itunes_new_feed_url'] || $FeedSettings['itunes_new_feed_url_podcast'] ?'none':'block'); ?>;">
877
+ <p><a href="#" onclick="return powerpress_new_feed_url_prompt();">Click here</a> if you need to change the Feed URL for iTunes subscribers.</p>
878
+ </div>
879
+ <div id="new_feed_url_step_2" style="display: <?php echo ($FeedSettings['itunes_new_feed_url'] || $FeedSettings['itunes_new_feed_url_podcast'] ?'block':'none'); ?>;">
880
+ <p><strong>WARNING: Changes made here are permanent. If the New Feed URL entered is incorrect, you will lose subscribers and will no longer be able to update your listing in the iTunes Store.</strong></p>
881
+ <p><strong>DO NOT MODIFY THIS SETTING UNLESS YOU ABSOLUTELY KNOW WHAT YOU ARE DOING.</strong></p>
882
+ <p>
883
+ Apple recommends you maintain the &lt;itunes:new-feed-url&gt; tag in your feed for at least two weeks to ensure that most subscribers will receive the new New Feed URL.
884
+ </p>
885
+ <p>
886
+ Example URL: <?php echo get_feed_link('podcast'); ?>
887
+ </p>
888
+ <p style="margin-bottom: 0;">
889
+ <label style="width: 25%; float:left; display:block; font-weight: bold;">Main RSS2 Feed</label>
890
+ <input type="text" name="Feed[itunes_new_feed_url]"style="width: 55%;" value="<?php echo $FeedSettings['itunes_new_feed_url']; ?>" maxlength="250" />
891
+ </p>
892
+ <p style="margin-left: 25%;margin-top: 0;font-size: 90%;">(Leave blank for no New Feed URL)</p>
893
+ <p style="margin-bottom: 0;">
894
+ <label style="width: 25%; float:left; display:block; font-weight: bold;">Podcast Feed</label>
895
+ <input type="text" name="Feed[itunes_new_feed_url_podcast]"style="width: 55%;" value="<?php echo $FeedSettings['itunes_new_feed_url_podcast']; ?>" maxlength="250" />
896
+ </p>
897
+ <p style="margin-left: 25%;margin-top: 0;font-size: 90%;">(Leave blank for no New Feed URL)</p>
898
+ <p>More information regarding the iTunes New Feed URL is available at <a href="http://www.apple.com/itunes/whatson/podcasts/specs.html#changing" target="_blank">Apple.com</a></p>
899
+ </div>
900
+ </td>
901
+ </tr>
902
+
903
  <tr valign="top">
904
  <th scope="row">
905
 
925
  <?php _e("iTunes Program Keywords"); ?> <br />
926
  </th>
927
  <td>
928
+ <input type="text" name="Feed[itunes_keywords]" style="width: 60%;" value="<?php echo $FeedSettings['itunes_keywords']; ?>" maxlength="250" />
929
  <p>Enter up to 12 keywords separated by commas.</p>
930
  </td>
931
  </tr>
935
  <?php _e("iTunes Category 1"); ?>
936
  </th>
937
  <td>
938
+ <select name="Feed[itunes_cat_1]" style="width: 60%;">
939
  <?php
940
  $linkoptions = array("On page", "Disable");
941
 
957
  <?php _e("iTunes Category 2"); ?>
958
  </th>
959
  <td>
960
+ <select name="Feed[itunes_cat_2]" style="width: 60%;">
961
  <?php
962
  $linkoptions = array("On page", "Disable");
963
 
978
  <?php _e("iTunes Category 3"); ?>
979
  </th>
980
  <td>
981
+ <select name="Feed[itunes_cat_3]" style="width: 60%;">
982
  <?php
983
  $linkoptions = array("On page", "Disable");
984
 
998
  <?php _e("iTunes Explicit"); ?>
999
  </th>
1000
  <td>
1001
+ <select name="Feed[itunes_explicit]" class="bpp_input_med">
1002
  <?php
1003
  $explicit = array(0=>"no - display nothing", 1=>"yes - explicit content", 2=>"clean - no explicit content");
1004
 
1078
  </table>
1079
  <p style="font-size: 85%; text-align: center;">
1080
  <a href="http://www.blubrry.com/powerpress/" title="Blubrry Powerpress" target="_blank">Blubrry Powerpress</a> <?php echo POWERPRESS_VERSION; ?>
1081
+ &#8212; <a href="http://help.blubrry.com/blubrry-powerpress/" target="_blank" title="Blubrry Powerpress Documentation">Documentation</a> | <a href="http://twitter.com/blubrry" target="_blank" title="Blubrry on Twitter">Twitter</a>
1082
  </p>
1083
  <p class="submit">
1084
+ <input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes' ) ?>" />
1085
  </p>
1086
 
1087
  </form>
1088
  </div>
 
1089
 
1090
  <?php
1091
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Angelo Mandato, Blubrry.com
3
  Tags: podcast, podcasting, itunes, enclosure, zune, iphone, audio, video, rss2, feed, player, media, rss
4
  Requires at least: 2.5.0
5
  Tested up to: 2.7
6
- Stable tag: 0.5.2
7
 
8
  Add podcasting support to your blog.
9
 
@@ -84,8 +84,17 @@ Added options to report media duration and file size next to download links. Rem
84
  0.5.1 released on 12/10/2008
85
  Added podcast to pages option (Thanks @Frumph), added code to make sure the itunes:subtitle, keywords and summary feed tags never exceed their size limits.
86
 
 
 
 
 
 
 
87
  == Feedback ==
88
  http://www.blubrry.com/powerpress/
89
 
90
  == Support ==
91
  http://help.blubrry.com/blubrry-powerpress/
 
 
 
3
  Tags: podcast, podcasting, itunes, enclosure, zune, iphone, audio, video, rss2, feed, player, media, rss
4
  Requires at least: 2.5.0
5
  Tested up to: 2.7
6
+ Stable tag: 0.6.0
7
 
8
  Add podcasting support to your blog.
9
 
84
  0.5.1 released on 12/10/2008
85
  Added podcast to pages option (Thanks @Frumph), added code to make sure the itunes:subtitle, keywords and summary feed tags never exceed their size limits.
86
 
87
+ 0.5.2 released on 12/14/2008
88
+ Fixed bug with the feed channel itunes:summary being limited to 255 characters, the limit is now set to 4,000.
89
+
90
+ 0.6.0 released on 12/17/2008
91
+ Fixed bug with podcast feed in Wordpress 2.7, added defaults for file size and duration, and added iTunes New Feed URL option.
92
+
93
  == Feedback ==
94
  http://www.blubrry.com/powerpress/
95
 
96
  == Support ==
97
  http://help.blubrry.com/blubrry-powerpress/
98
+
99
+ == Twitter ==
100
+ http://twitter.com/blubrry