Plugin Directory

Changeset 477444


Ignore:
Timestamp:
12/19/2011 12:42:24 PM (14 years ago)
Author:
two7s_clash
Message:
 
Location:
jetpack-easy-playlists
Files:
4 edited
2 copied

Legend:

Unmodified
Added
Removed
  • jetpack-easy-playlists/tags/0.03/jetpack_easy_playlists.php

    r444328 r477444  
    44Plugin URI: http://www.jamesfishwick.com/software/auto-jetpack-playlist/
    55Description: A simple [audio] shortcode wrapper to generate playlists automatically from mp3s attached to your post/page. Requires Jetpack.
    6 Version: 0.02
     6Version: 0.03
    77Author: James Fishwick
    88Author URI: http://www.jamesfishwick.com/
     
    7979/* -------- end dependancy --------- */
    8080
     81function array_implode( $glue, $separator, $array ) {
     82            if ( ! is_array( $array ) ) return $array;
     83            $string = array();
     84            foreach ( $array as $key => $val ) {
     85                if ( is_array( $val ) )
     86                $val = implode( ',', $val );
     87            $string[] = "{$key}{$glue}{$val}";
     88            }
     89            return implode( $separator, $string );
     90        }
     91
    8192add_shortcode('jplaylist', 'easyjp_playlists');
    8293
     
    8798        // these will store location, and artist and title info for the player
    8899        $urls = $titles = $artists = array();
     100       
     101        // prepares attributes to be passed in the way [audio] wants them
     102        $results = array_implode('=',"|", $atts);
    89103       
    90104        // gets all the audio attachments. To do: only return mp3s
     
    112126       
    113127        //give data to jetpack
    114         $playlist = do_shortcode('[audio '.$comma_separated_urls.'|titles='.$comma_separated_titles.'|artists='.$comma_separated_artists.']');
     128        $playlist = do_shortcode('[audio '.$comma_separated_urls.'|titles='.$comma_separated_titles.'|artists='.$comma_separated_artists.'|'.$results.']');
    115129        //write generated shortcode to comment, in case you need to put it somewhere else
    116         $shortcode = '<!-- audio shortcode is [audio '.$comma_separated_urls.'|titles='.$comma_separated_titles.'|artists='.$comma_separated_artists.'] -->';
     130        $shortcode = '<!-- audio shortcode is [audio '.$comma_separated_urls.'|titles='.$comma_separated_titles.'|artists='.$comma_separated_artists.'|'.$results.'] -->';
    117131        return $playlist.PHP_EOL.$shortcode;
    118132    }
  • jetpack-easy-playlists/tags/0.03/readme.txt

    r444358 r477444  
    44Tags: playlists, jetpack, audio, mp3, player
    55Requires at least: 3.0.5
    6 Tested up to: 3.2.1
    7 Stable tag: 0.02
     6Tested up to: 3.3
     7Stable tag: 0.03
    88
    99Generate playlists automatically from mp3s attached to your post/page. Requires Jetpack.
     
    1515And what about the [gallery] shortcode for images? So easy to round up all your attached pictures and display them all automagically. Again, no love for audio.
    1616
    17 Take a look at the docs (obviously slanted towards wordpress.com users): http://en.support.wordpress.com/audio/
    18 
    19 "When inserting into a post, make sure to click the None button for Link URL and then click the Insert into Post button (as illustrated in the image below). If your file is an mp3 file, this will insert the audio player shortcode into your post or page."
    20 
    21 Nope! Doesn't work if you're hosting your own installation of WP.
    22 
    2317This plugin acts as a wrapper for Jetpack's [audio] shortcode. It rounds up all the mp3s attached to your post/page and adds them as a playlist in the Jetpack player. Simply attach your mp3s to your post/page and use the shortcode "[jp-playlist]" where you want your playlist.
    2418
     
    2822
    2923
    30 == Installation  ==
     24== Installation ==
    3125
    32 1. Install Jetpack
    33 1. Upload the plugin, either via ftp or the Plugin-in dash.
    34 1. Activate the plugin through the ‘Plugins’ menu in WordPress.
    3526
     271. Upload `jetpack_easy_playlists.php` to the `/wp-content/plugins/` directory
     281. Activate the plugin through the 'Plugins' menu in WordPress
     291. Use the [jplaylist] shortcode to display a playist of all the mp3s attached to your post
    3630
    3731== Frequently Asked Questions ==
     
    5145= What about accessing the player options (color, size, etc)? Can I do that? =
    5246
    53 No. You have to use the default player for now. I'll add access to these options soon.
     47Yes! You can use any of those options. You can either use the janky pipe (|) method to connect everything like you're told to with the [<em>audio</em>] shortcode, or you can use proper attributes.
     48
     49Example:
     50
     51[jplaylist bgcolor="000000" lefticon="00ff00" righticon="FF0000" animation="no" loop="yes"]
     52
     53or
     54
     55[jplaylist bgcolor=000000|lefticon=00ff00|righticon=FF0000|animation=no|loop=yes]
    5456
    5557= Can you support my favorite player WordPess player plugin xyz? =
     
    6062
    6163Welp, that's nothing to do with the plugin or even Wordpress. You can edit (or create) the php.ini file in your root directory to tweak this. Better yet, contact your host re: increasing your upload size.
    62 
    63 = This is pretty bare bones, my friend. What do I have to do to get some options around here? =
    64 
    65 Yeah, I know. Watch for options similar to the [gallery] shortcode coming soon!
    66 
    67 == Walkthrough ==
    68 
    69 Here's a link to [my Walkthrough](http://www.jamesfishwick.com/software/jetpack-easy-playlists/#attachment_184 "Your favorite software")
  • jetpack-easy-playlists/trunk/jetpack_easy_playlists.php

    r444328 r477444  
    44Plugin URI: http://www.jamesfishwick.com/software/auto-jetpack-playlist/
    55Description: A simple [audio] shortcode wrapper to generate playlists automatically from mp3s attached to your post/page. Requires Jetpack.
    6 Version: 0.02
     6Version: 0.03
    77Author: James Fishwick
    88Author URI: http://www.jamesfishwick.com/
     
    7979/* -------- end dependancy --------- */
    8080
     81function array_implode( $glue, $separator, $array ) {
     82            if ( ! is_array( $array ) ) return $array;
     83            $string = array();
     84            foreach ( $array as $key => $val ) {
     85                if ( is_array( $val ) )
     86                $val = implode( ',', $val );
     87            $string[] = "{$key}{$glue}{$val}";
     88            }
     89            return implode( $separator, $string );
     90        }
     91
    8192add_shortcode('jplaylist', 'easyjp_playlists');
    8293
     
    8798        // these will store location, and artist and title info for the player
    8899        $urls = $titles = $artists = array();
     100       
     101        // prepares attributes to be passed in the way [audio] wants them
     102        $results = array_implode('=',"|", $atts);
    89103       
    90104        // gets all the audio attachments. To do: only return mp3s
     
    112126       
    113127        //give data to jetpack
    114         $playlist = do_shortcode('[audio '.$comma_separated_urls.'|titles='.$comma_separated_titles.'|artists='.$comma_separated_artists.']');
     128        $playlist = do_shortcode('[audio '.$comma_separated_urls.'|titles='.$comma_separated_titles.'|artists='.$comma_separated_artists.'|'.$results.']');
    115129        //write generated shortcode to comment, in case you need to put it somewhere else
    116         $shortcode = '<!-- audio shortcode is [audio '.$comma_separated_urls.'|titles='.$comma_separated_titles.'|artists='.$comma_separated_artists.'] -->';
     130        $shortcode = '<!-- audio shortcode is [audio '.$comma_separated_urls.'|titles='.$comma_separated_titles.'|artists='.$comma_separated_artists.'|'.$results.'] -->';
    117131        return $playlist.PHP_EOL.$shortcode;
    118132    }
  • jetpack-easy-playlists/trunk/readme.txt

    r444358 r477444  
    44Tags: playlists, jetpack, audio, mp3, player
    55Requires at least: 3.0.5
    6 Tested up to: 3.2.1
    7 Stable tag: 0.02
     6Tested up to: 3.3
     7Stable tag: 0.03
    88
    99Generate playlists automatically from mp3s attached to your post/page. Requires Jetpack.
     
    1515And what about the [gallery] shortcode for images? So easy to round up all your attached pictures and display them all automagically. Again, no love for audio.
    1616
    17 Take a look at the docs (obviously slanted towards wordpress.com users): http://en.support.wordpress.com/audio/
    18 
    19 "When inserting into a post, make sure to click the None button for Link URL and then click the Insert into Post button (as illustrated in the image below). If your file is an mp3 file, this will insert the audio player shortcode into your post or page."
    20 
    21 Nope! Doesn't work if you're hosting your own installation of WP.
    22 
    2317This plugin acts as a wrapper for Jetpack's [audio] shortcode. It rounds up all the mp3s attached to your post/page and adds them as a playlist in the Jetpack player. Simply attach your mp3s to your post/page and use the shortcode "[jp-playlist]" where you want your playlist.
    2418
     
    2822
    2923
    30 == Installation  ==
     24== Installation ==
    3125
    32 1. Install Jetpack
    33 1. Upload the plugin, either via ftp or the Plugin-in dash.
    34 1. Activate the plugin through the ‘Plugins’ menu in WordPress.
    3526
     271. Upload `jetpack_easy_playlists.php` to the `/wp-content/plugins/` directory
     281. Activate the plugin through the 'Plugins' menu in WordPress
     291. Use the [jplaylist] shortcode to display a playist of all the mp3s attached to your post
    3630
    3731== Frequently Asked Questions ==
     
    5145= What about accessing the player options (color, size, etc)? Can I do that? =
    5246
    53 No. You have to use the default player for now. I'll add access to these options soon.
     47Yes! You can use any of those options. You can either use the janky pipe (|) method to connect everything like you're told to with the [<em>audio</em>] shortcode, or you can use proper attributes.
     48
     49Example:
     50
     51[jplaylist bgcolor="000000" lefticon="00ff00" righticon="FF0000" animation="no" loop="yes"]
     52
     53or
     54
     55[jplaylist bgcolor=000000|lefticon=00ff00|righticon=FF0000|animation=no|loop=yes]
    5456
    5557= Can you support my favorite player WordPess player plugin xyz? =
     
    6062
    6163Welp, that's nothing to do with the plugin or even Wordpress. You can edit (or create) the php.ini file in your root directory to tweak this. Better yet, contact your host re: increasing your upload size.
    62 
    63 = This is pretty bare bones, my friend. What do I have to do to get some options around here? =
    64 
    65 Yeah, I know. Watch for options similar to the [gallery] shortcode coming soon!
    66 
    67 == Walkthrough ==
    68 
    69 Here's a link to [my Walkthrough](http://www.jamesfishwick.com/software/jetpack-easy-playlists/#attachment_184 "Your favorite software")
Note: See TracChangeset for help on using the changeset viewer.