Changeset 477444
- Timestamp:
- 12/19/2011 12:42:24 PM (14 years ago)
- Location:
- jetpack-easy-playlists
- Files:
-
- 4 edited
- 2 copied
-
tags/0.02 (copied) (copied from jetpack-easy-playlists/trunk)
-
tags/0.03 (copied) (copied from jetpack-easy-playlists/trunk)
-
tags/0.03/jetpack_easy_playlists.php (modified) (4 diffs)
-
tags/0.03/readme.txt (modified) (5 diffs)
-
trunk/jetpack_easy_playlists.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jetpack-easy-playlists/tags/0.03/jetpack_easy_playlists.php
r444328 r477444 4 4 Plugin URI: http://www.jamesfishwick.com/software/auto-jetpack-playlist/ 5 5 Description: A simple [audio] shortcode wrapper to generate playlists automatically from mp3s attached to your post/page. Requires Jetpack. 6 Version: 0.0 26 Version: 0.03 7 7 Author: James Fishwick 8 8 Author URI: http://www.jamesfishwick.com/ … … 79 79 /* -------- end dependancy --------- */ 80 80 81 function 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 81 92 add_shortcode('jplaylist', 'easyjp_playlists'); 82 93 … … 87 98 // these will store location, and artist and title info for the player 88 99 $urls = $titles = $artists = array(); 100 101 // prepares attributes to be passed in the way [audio] wants them 102 $results = array_implode('=',"|", $atts); 89 103 90 104 // gets all the audio attachments. To do: only return mp3s … … 112 126 113 127 //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.']'); 115 129 //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.'] -->'; 117 131 return $playlist.PHP_EOL.$shortcode; 118 132 } -
jetpack-easy-playlists/tags/0.03/readme.txt
r444358 r477444 4 4 Tags: playlists, jetpack, audio, mp3, player 5 5 Requires at least: 3.0.5 6 Tested up to: 3. 2.17 Stable tag: 0.0 26 Tested up to: 3.3 7 Stable tag: 0.03 8 8 9 9 Generate playlists automatically from mp3s attached to your post/page. Requires Jetpack. … … 15 15 And 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. 16 16 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 23 17 This 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. 24 18 … … 28 22 29 23 30 == Installation ==24 == Installation == 31 25 32 1. Install Jetpack33 1. Upload the plugin, either via ftp or the Plugin-in dash.34 1. Activate the plugin through the ‘Plugins’ menu in WordPress.35 26 27 1. Upload `jetpack_easy_playlists.php` to the `/wp-content/plugins/` directory 28 1. Activate the plugin through the 'Plugins' menu in WordPress 29 1. Use the [jplaylist] shortcode to display a playist of all the mp3s attached to your post 36 30 37 31 == Frequently Asked Questions == … … 51 45 = What about accessing the player options (color, size, etc)? Can I do that? = 52 46 53 No. You have to use the default player for now. I'll add access to these options soon. 47 Yes! 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 49 Example: 50 51 [jplaylist bgcolor="000000" lefticon="00ff00" righticon="FF0000" animation="no" loop="yes"] 52 53 or 54 55 [jplaylist bgcolor=000000|lefticon=00ff00|righticon=FF0000|animation=no|loop=yes] 54 56 55 57 = Can you support my favorite player WordPess player plugin xyz? = … … 60 62 61 63 Welp, 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 4 4 Plugin URI: http://www.jamesfishwick.com/software/auto-jetpack-playlist/ 5 5 Description: A simple [audio] shortcode wrapper to generate playlists automatically from mp3s attached to your post/page. Requires Jetpack. 6 Version: 0.0 26 Version: 0.03 7 7 Author: James Fishwick 8 8 Author URI: http://www.jamesfishwick.com/ … … 79 79 /* -------- end dependancy --------- */ 80 80 81 function 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 81 92 add_shortcode('jplaylist', 'easyjp_playlists'); 82 93 … … 87 98 // these will store location, and artist and title info for the player 88 99 $urls = $titles = $artists = array(); 100 101 // prepares attributes to be passed in the way [audio] wants them 102 $results = array_implode('=',"|", $atts); 89 103 90 104 // gets all the audio attachments. To do: only return mp3s … … 112 126 113 127 //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.']'); 115 129 //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.'] -->'; 117 131 return $playlist.PHP_EOL.$shortcode; 118 132 } -
jetpack-easy-playlists/trunk/readme.txt
r444358 r477444 4 4 Tags: playlists, jetpack, audio, mp3, player 5 5 Requires at least: 3.0.5 6 Tested up to: 3. 2.17 Stable tag: 0.0 26 Tested up to: 3.3 7 Stable tag: 0.03 8 8 9 9 Generate playlists automatically from mp3s attached to your post/page. Requires Jetpack. … … 15 15 And 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. 16 16 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 23 17 This 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. 24 18 … … 28 22 29 23 30 == Installation ==24 == Installation == 31 25 32 1. Install Jetpack33 1. Upload the plugin, either via ftp or the Plugin-in dash.34 1. Activate the plugin through the ‘Plugins’ menu in WordPress.35 26 27 1. Upload `jetpack_easy_playlists.php` to the `/wp-content/plugins/` directory 28 1. Activate the plugin through the 'Plugins' menu in WordPress 29 1. Use the [jplaylist] shortcode to display a playist of all the mp3s attached to your post 36 30 37 31 == Frequently Asked Questions == … … 51 45 = What about accessing the player options (color, size, etc)? Can I do that? = 52 46 53 No. You have to use the default player for now. I'll add access to these options soon. 47 Yes! 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 49 Example: 50 51 [jplaylist bgcolor="000000" lefticon="00ff00" righticon="FF0000" animation="no" loop="yes"] 52 53 or 54 55 [jplaylist bgcolor=000000|lefticon=00ff00|righticon=FF0000|animation=no|loop=yes] 54 56 55 57 = Can you support my favorite player WordPess player plugin xyz? = … … 60 62 61 63 Welp, 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.