Plugin Directory

Changeset 588156


Ignore:
Timestamp:
08/21/2012 03:38:06 AM (14 years ago)
Author:
Captin Shmit
Message:

Updating to version 1.1.1 which fixes WP_DEBUG errors, adds screenshots, and more usage examples

Location:
message-flow
Files:
5 added
2 edited
7 copied

Legend:

Unmodified
Added
Removed
  • message-flow/tags/1.1.1/main.php

    r588075 r588156  
    44Plugin URI: http://JoeAnzalone.com/plugins/message-flow
    55Description: Provides a shortcode that generates a cover flow-like interface for all podcasts in a given category or feed: [message-flow category="11"]
    6 Version: 1.1
     6Version: 1.1.1
    77Author: Joe Anzalone
    88Author URI: http://JoeAnzalone.com
     
    1111?>
    1212<?PHP
    13    
     13
    1414class shmit_message_flow {
    1515   
     
    2525        foreach($items as $k => $item){
    2626
    27             $posts_array[$k]->podcast_episode_url = $item['child']['']['enclosure'][0]['attribs']['']['url'];
    28             $posts_array[$k]->post_title = $item['child']['']['title'][0]['data'];
    29             $posts_array[$k]->post_content = $item['child']['http://purl.org/rss/1.0/modules/content/']['encoded'][0]['data'];
    30            
    31             $posts_array[$k]->thumbnail = $item['child']['http://www.itunes.com/dtds/podcast-1.0.dtd']['image'][0]['attribs']['']['href'];
     27            if(!empty($item['child']['']['enclosure'][0]['attribs']['']['url'])){
     28                $posts_array[$k]->podcast_episode_url = $item['child']['']['enclosure'][0]['attribs']['']['url'];
     29            }
     30           
     31            if(!empty($item['child']['']['title'][0]['data'])){
     32                $posts_array[$k]->post_title = $item['child']['']['title'][0]['data'];
     33            }
     34           
     35            if(!empty($item['child']['http://purl.org/rss/1.0/modules/content/']['encoded'][0]['data'])){
     36                $posts_array[$k]->post_content = $item['child']['http://purl.org/rss/1.0/modules/content/']['encoded'][0]['data'];
     37            }
     38           
     39            if(!empty($item['child']['http://www.itunes.com/dtds/podcast-1.0.dtd']['image'][0]['attribs']['']['href'])){
     40                $posts_array[$k]->thumbnail = $item['child']['http://www.itunes.com/dtds/podcast-1.0.dtd']['image'][0]['attribs']['']['href'];
     41            }
    3242           
    3343            $posts_array[$k]->ID = $k;
     
    95105   
    96106        foreach($posts_array as $post){
     107            if(empty($post->from_external_feed)){
     108                $post->from_external_feed = FALSE;
     109            }
    97110            $enclosure = get_post_meta($post->ID, 'enclosure', TRUE);
    98111            if(!empty($post->podcast_episode_url) OR (!$post->from_external_feed && !empty($enclosure))){
     
    110123                    $thumbnail_src = $thumbnail[0];
    111124                } else {
    112                     $thumbnail_src = $post->thumbnail;
     125                    if(!empty($post->thumbnail)){
     126                        $thumbnail_src = $post->thumbnail;
     127                    } else {
     128                        $thumbnail_src = NULL;
     129                    }
    113130                }
    114131               
     
    145162        if(!empty($params['download_link_rel'])){
    146163            $download_link_rel = 'rel="'.$params['download_link_rel'].'" ';
     164        } else {
     165            $download_link_rel = NULL;
    147166        }
    148167       
  • message-flow/tags/1.1.1/readme.txt

    r588075 r588156  
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 Provides a shortcode that generates a cover flow-like interface for posts in a given category: [message-flow category="11"]
     11Message Flow generates a CoverFlow-like interface for your podcast episodes.
    1212
    1313== Description ==
    1414
    15 Message Flow provides you with a shortcode you can use on your posts and pages that can be used for displaying your posts or external RSS feeds in a JavaScript widget powered by [ContentFlow](http://www.jacksasylum.eu/ContentFlow/)
     15Message Flow provides you with a shortcode you can use on your posts and pages to display your podcasts (either driven by [PowerPress](http://wordpress.org/extend/plugins/powerpress/) or an external RSS feed) in a JavaScript widget powered by [ContentFlow](http://www.jacksasylum.eu/ContentFlow/).
    1616
    17 The thumbnails used int he widget are taken from the posts' featured images.
    18 If you're using the [PowerPress](http://wordpress.org/extend/plugins/powerpress/) podcasting plugin, the default image will be taken from the iTunes image. PowerPress users can configure this in the "iTunes Feed Settings" section of PowerPress' configuration.
    19 (/wp-admin/admin.php?page=powerpress/powerpressadmin_basic.php)
    2017
    2118= Usage =
     19Show the ten latest podcast episodes
     20`[message-flow]`
     21
    2222Show the five latest posts from category number 11:
    2323`[message-flow numberposts="5" category="11"]`
     
    2626`[message-flow numberposts="3" feed="http://example.com/feed.rss"]`
    2727
     28= Defining the thumbnails (Album Art) =
     29The thumbnails used in the widget are taken from the posts’ featured images. In the event that a podcast does not have a featured image available, Message Flow will check the following locations for a suitable fallback image:
     30
     311. A URL to the fallback image in the shortcode: `[message-flow fallback_image="http://example.com/default_image.png"]`
     322. If you’re using the [PowerPress](http://wordpress.org/extend/plugins/powerpress/) podcasting plugin, the default image will be taken from the iTunes image. PowerPress users can configure this in the "iTunes Feed Settings" section of PowerPress’ configuration. (/wp-admin/admin.php?page=powerpress/powerpressadmin_basic.php)
     333. In your theme’s directory. Just make sure it’s 165 pixels square and named "unknown-album_165.png"
     34
    2835== Installation ==
    2936
     
    31382. Insert the shortcode into a post or page: `[message-flow numberposts="5" category="11"]`
    3239
     40== Screenshots ==
     411. Simply add the shortcode to your post or page
     422. The Message Flow widget will be placed wherever you put the shortcode
     43
    3344== Changelog ==
     45
     46= 1.1.1 =
     47* Fixed WP_DEBUG errors
     48* Added screenshots
     49* Added more usage examples
    3450
    3551= 1.1 =
  • message-flow/trunk/main.php

    r588075 r588156  
    44Plugin URI: http://JoeAnzalone.com/plugins/message-flow
    55Description: Provides a shortcode that generates a cover flow-like interface for all podcasts in a given category or feed: [message-flow category="11"]
    6 Version: 1.1
     6Version: 1.1.1
    77Author: Joe Anzalone
    88Author URI: http://JoeAnzalone.com
     
    1111?>
    1212<?PHP
    13    
     13
    1414class shmit_message_flow {
    1515   
     
    2525        foreach($items as $k => $item){
    2626
    27             $posts_array[$k]->podcast_episode_url = $item['child']['']['enclosure'][0]['attribs']['']['url'];
    28             $posts_array[$k]->post_title = $item['child']['']['title'][0]['data'];
    29             $posts_array[$k]->post_content = $item['child']['http://purl.org/rss/1.0/modules/content/']['encoded'][0]['data'];
    30            
    31             $posts_array[$k]->thumbnail = $item['child']['http://www.itunes.com/dtds/podcast-1.0.dtd']['image'][0]['attribs']['']['href'];
     27            if(!empty($item['child']['']['enclosure'][0]['attribs']['']['url'])){
     28                $posts_array[$k]->podcast_episode_url = $item['child']['']['enclosure'][0]['attribs']['']['url'];
     29            }
     30           
     31            if(!empty($item['child']['']['title'][0]['data'])){
     32                $posts_array[$k]->post_title = $item['child']['']['title'][0]['data'];
     33            }
     34           
     35            if(!empty($item['child']['http://purl.org/rss/1.0/modules/content/']['encoded'][0]['data'])){
     36                $posts_array[$k]->post_content = $item['child']['http://purl.org/rss/1.0/modules/content/']['encoded'][0]['data'];
     37            }
     38           
     39            if(!empty($item['child']['http://www.itunes.com/dtds/podcast-1.0.dtd']['image'][0]['attribs']['']['href'])){
     40                $posts_array[$k]->thumbnail = $item['child']['http://www.itunes.com/dtds/podcast-1.0.dtd']['image'][0]['attribs']['']['href'];
     41            }
    3242           
    3343            $posts_array[$k]->ID = $k;
     
    95105   
    96106        foreach($posts_array as $post){
     107            if(empty($post->from_external_feed)){
     108                $post->from_external_feed = FALSE;
     109            }
    97110            $enclosure = get_post_meta($post->ID, 'enclosure', TRUE);
    98111            if(!empty($post->podcast_episode_url) OR (!$post->from_external_feed && !empty($enclosure))){
     
    110123                    $thumbnail_src = $thumbnail[0];
    111124                } else {
    112                     $thumbnail_src = $post->thumbnail;
     125                    if(!empty($post->thumbnail)){
     126                        $thumbnail_src = $post->thumbnail;
     127                    } else {
     128                        $thumbnail_src = NULL;
     129                    }
    113130                }
    114131               
     
    145162        if(!empty($params['download_link_rel'])){
    146163            $download_link_rel = 'rel="'.$params['download_link_rel'].'" ';
     164        } else {
     165            $download_link_rel = NULL;
    147166        }
    148167       
  • message-flow/trunk/readme.txt

    r588075 r588156  
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 Provides a shortcode that generates a cover flow-like interface for posts in a given category: [message-flow category="11"]
     11Message Flow generates a CoverFlow-like interface for your podcast episodes.
    1212
    1313== Description ==
    1414
    15 Message Flow provides you with a shortcode you can use on your posts and pages that can be used for displaying your posts or external RSS feeds in a JavaScript widget powered by [ContentFlow](http://www.jacksasylum.eu/ContentFlow/)
     15Message Flow provides you with a shortcode you can use on your posts and pages to display your podcasts (either driven by [PowerPress](http://wordpress.org/extend/plugins/powerpress/) or an external RSS feed) in a JavaScript widget powered by [ContentFlow](http://www.jacksasylum.eu/ContentFlow/).
    1616
    17 The thumbnails used int he widget are taken from the posts' featured images.
    18 If you're using the [PowerPress](http://wordpress.org/extend/plugins/powerpress/) podcasting plugin, the default image will be taken from the iTunes image. PowerPress users can configure this in the "iTunes Feed Settings" section of PowerPress' configuration.
    19 (/wp-admin/admin.php?page=powerpress/powerpressadmin_basic.php)
    2017
    2118= Usage =
     19Show the ten latest podcast episodes
     20`[message-flow]`
     21
    2222Show the five latest posts from category number 11:
    2323`[message-flow numberposts="5" category="11"]`
     
    2626`[message-flow numberposts="3" feed="http://example.com/feed.rss"]`
    2727
     28= Defining the thumbnails (Album Art) =
     29The thumbnails used in the widget are taken from the posts’ featured images. In the event that a podcast does not have a featured image available, Message Flow will check the following locations for a suitable fallback image:
     30
     311. A URL to the fallback image in the shortcode: `[message-flow fallback_image="http://example.com/default_image.png"]`
     322. If you’re using the [PowerPress](http://wordpress.org/extend/plugins/powerpress/) podcasting plugin, the default image will be taken from the iTunes image. PowerPress users can configure this in the "iTunes Feed Settings" section of PowerPress’ configuration. (/wp-admin/admin.php?page=powerpress/powerpressadmin_basic.php)
     333. In your theme’s directory. Just make sure it’s 165 pixels square and named "unknown-album_165.png"
     34
    2835== Installation ==
    2936
     
    31382. Insert the shortcode into a post or page: `[message-flow numberposts="5" category="11"]`
    3239
     40== Screenshots ==
     411. Simply add the shortcode to your post or page
     422. The Message Flow widget will be placed wherever you put the shortcode
     43
    3344== Changelog ==
     45
     46= 1.1.1 =
     47* Fixed WP_DEBUG errors
     48* Added screenshots
     49* Added more usage examples
    3450
    3551= 1.1 =
Note: See TracChangeset for help on using the changeset viewer.