MP3-jPlayer - Version 1.3.1

Version Description

  • Fixed image rollover on buttons when wordpress not installed in root of site.
Download this release

Release Info

Developer simon.ward
Plugin Icon 128x128 MP3-jPlayer
Version 1.3.1
Comparing to
See all releases

Code changes from version 1.3.0 to 1.3.1

css/images/Thumbs.db CHANGED
Binary file
js/mp3-jplayer.js CHANGED
@@ -1,15 +1,7 @@
1
  <!--
2
  // MP3-jPlayer for Wordpress - www.sjward.org
3
 
4
- if (document.images) { pic1= new Image(138,32); pic1.src="/wp-content/plugins/mp3-jplayer/css/images/buttons.png";
5
- pic2= new Image(138,32); pic2.src="/wp-content/plugins/mp3-jplayer/css/images/buttonsH.png";
6
- pic3= new Image(12,13); pic3.src="/wp-content/plugins/mp3-jplayer/css/images/pos-handle.gif";
7
- pic4= new Image(12,13); pic4.src="/wp-content/plugins/mp3-jplayer/css/images/pos-handleH.gif";
8
- pic5= new Image(12,13); pic5.src="/wp-content/plugins/mp3-jplayer/css/images/pos-handle3.gif";
9
- pic6= new Image(12,13); pic6.src="/wp-content/plugins/mp3-jplayer/css/images/pos-handle3H.gif";
10
- pic7= new Image(12,13); pic7.src="/wp-content/plugins/mp3-jplayer/css/images/vol-handle2.gif";
11
- pic8= new Image(12,13); pic8.src="/wp-content/plugins/mp3-jplayer/css/images/vol-handleH.gif";
12
- }
13
 
14
  var foxcurrentstate = "open";
15
  var togglediv = "playlist-wrap";
@@ -41,6 +33,18 @@ function toggleplaylist(){
41
 
42
  jQuery(document).ready(function(){
43
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  var playItem = 0;
45
  var global_lp = 0;
46
  var jpPlayTime = jQuery("#jplayer_play_time");
1
  <!--
2
  // MP3-jPlayer for Wordpress - www.sjward.org
3
 
4
+
 
 
 
 
 
 
 
 
5
 
6
  var foxcurrentstate = "open";
7
  var togglediv = "playlist-wrap";
33
 
34
  jQuery(document).ready(function(){
35
 
36
+
37
+ if (document.images) { pic1= new Image(138,32); pic1.src=foxpathtoimages+"buttons.png";
38
+ pic2= new Image(138,32); pic2.src=foxpathtoimages+"buttonsH.png";
39
+ pic3= new Image(12,13); pic3.src=foxpathtoimages+"pos-handle.gif";
40
+ pic4= new Image(12,13); pic4.src=foxpathtoimages+"pos-handleH.gif";
41
+ pic5= new Image(12,13); pic5.src=foxpathtoimages+"pos-handle3.gif";
42
+ pic6= new Image(12,13); pic6.src=foxpathtoimages+"pos-handle3H.gif";
43
+ pic7= new Image(12,13); pic7.src=foxpathtoimages+"vol-handle2.gif";
44
+ pic8= new Image(12,13); pic8.src=foxpathtoimages+"vol-handleH.gif";
45
+ }
46
+
47
+
48
  var playItem = 0;
49
  var global_lp = 0;
50
  var jpPlayTime = jQuery("#jplayer_play_time");
mp3jplayer.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: MP3-jPlayer
4
  Plugin URI: http://sjward.org/jplayer-for-wordpress
5
  Description: Adds an mp3 player with a playlist to any Wordpress pages and posts that you have assigned mp3's to.
6
- Version: 1.3.0
7
  Author: Simon Ward
8
  Author URI: http://www.sjward.org
9
  License: GPL2
@@ -439,7 +439,7 @@ if (!class_exists("mp3Fox"))
439
  echo "var foxpathtoswf = \"" .$wpinstallpath. "/wp-content/plugins/mp3-jplayer/js\";\n";
440
  echo "var foxAutoPlay =" . $this->theSettings['auto_play'] . ";\n";
441
  echo "var foxInitialVolume =" . $this->theSettings['initial_vol'] . ";\n";
442
-
443
  if ( $count < 2 ) {
444
  echo "var foxShowPlaylist = \"false\";\n";
445
  }
3
  Plugin Name: MP3-jPlayer
4
  Plugin URI: http://sjward.org/jplayer-for-wordpress
5
  Description: Adds an mp3 player with a playlist to any Wordpress pages and posts that you have assigned mp3's to.
6
+ Version: 1.3.1
7
  Author: Simon Ward
8
  Author URI: http://www.sjward.org
9
  License: GPL2
439
  echo "var foxpathtoswf = \"" .$wpinstallpath. "/wp-content/plugins/mp3-jplayer/js\";\n";
440
  echo "var foxAutoPlay =" . $this->theSettings['auto_play'] . ";\n";
441
  echo "var foxInitialVolume =" . $this->theSettings['initial_vol'] . ";\n";
442
+ echo "var foxpathtoimages = \"" .$wpinstallpath. "/wp-content/plugins/mp3-jplayer/css/images/\";\n";
443
  if ( $count < 2 ) {
444
  echo "var foxShowPlaylist = \"false\";\n";
445
  }
readme.txt CHANGED
@@ -2,73 +2,67 @@
2
  Author URI: http://www.sjward.org
3
  Plugin URI: http://www.sjward.org/jplayer-for-wordpress
4
  Contributors: simon.ward
5
- Tags: mp3, player, jplayer, music player, jplayer wordpress, mp3 player
6
  Requires at least: 2.8
7
  Tested up to: 3.0.1
8
- Stable tag: 1.3.0
 
 
9
 
10
- Adds an mp3 player with playlist to any Wordpress pages/posts that you make a playlist for.
11
 
12
 
13
- <br />
14
  == Description ==
15
 
16
- MP3-jPlayer automatically adds an mp3 player to any posts/pages that you have created a playlist for. The plugin makes it simple to play mp3's from your Wordpress media library, or from a default folder, or from another domain, It also lets you add your own titles and captions, or can use your media library titles/captions. No setup is required, just install, activate and start adding tracks.
 
 
 
 
 
 
 
17
 
18
- You can see a demo at [www.sjward.org/jplayer-for-wordpress](http://sjward.org/jplayer-for-wordpress).
19
 
20
- MP3-jPlayer integrates Happyworm's popular open source jPlayer code into an easy-to-use Wordpress plugin, it also provides you with an admin panel for some useful settings, and a simple method of building playlists on your pages and posts using Wordpress' existing custom fields that are on all post/page edit screens.
21
 
22
 
23
- <br />
24
- **Features**
25
 
26
- 1. Allows you to add titles and captions to tracks that aren't in your Wordpress media library.
27
- 2. Allows you to over-ride your media library titles and captions with different ones.
28
- 3. Provides an admin settings page with various player and playlist settings, a default folder/URI setting for easy playing of non-library tracks. Some position and style options.
29
- 4. Lets you to include a 'Download mp3' button on the player.
30
- 5. Is CSS styleable.
31
 
 
32
 
33
- **Making A Playlist**
34
 
35
- Add your mp3's on the page's or post's edit screen using the custom fields (below the content box). Enter them as follows:
36
 
37
- 1. Enter <code>mp3</code> into the left box of a new custom-field line.
38
- 2. Write the filename (or URI)* of the mp3 into the right box and hit 'Add custom field'.
39
- 3. Repeat the above to add more tracks, and hit the 'update/publish' button when you're done.
40
 
41
- *You only need a full URI when the mp3 is not in either your library or your specified default folder (set at the admin settings page), otherwise just enter the filename (you can leave off the file extension).
42
 
43
 
44
- **Adding Titles and Captions**
45
 
46
- *Add the title in the right hand box before the filename/uri, separate with an @ sign.*
47
- For example if your mp3 filename is happysong.mp3 and you want the title to be 'Happy Song' then write:
48
 
49
- <code>Happy Song@happysong</code>
50
 
51
- If no title is available (from either your Wordpress library or the custom fields) then the filename is used as the title.
52
 
53
- *Add the caption in the left hand box after mp3, separate with a dot.*
54
- For example if the track was by 'The Horse' then you could write:
55
 
56
- <code>mp3.The Horse</code>
57
 
58
- Note: Your previous caption is normally given to subsequent tracks when they don't have a caption of their own (this saves you having to write the same caption each time when all tracks on the playlist are by 'The horse'). To stop this and blank out the caption again add just the dot like so:
59
 
60
- <code>mp3.</code>
61
 
62
 
63
- **Ordering the Tracks**
64
 
65
- *To control the playlist order simply number the left hand boxes, for example:*
66
 
 
67
  <code>1 mp3</code>
 
 
68
 
69
- Any numbered tracks take priority at the top of the playlist with un-numbered tracks underneath. The single space after the number is optional.
70
-
71
- Note: The A-Z sorting option at the settings panel will over-ride any number ordering in the playlists.
72
 
73
 
74
  == Installation ==
@@ -87,42 +81,20 @@ To Install manually:
87
  3. Activate the plugin via your Wordpress 'Plugins' menu.
88
 
89
 
90
- == Screenshots ==
91
-
92
- 1. Player new style in blue, green, and neutral
93
- 2. Player original style in cyan
94
- 3. The admin settings page
95
- 4. An example playlist on an edit post/page screen
96
-
97
-
98
- == Frequently Asked Questions ==
99
-
100
- = Can I have more than one player on the posts index page? =
101
- No, only the one player will be added, it's added to the first post in the displayed list of posts that has a playlist.
102
 
103
- = Can I choose which mp3's will show a download button? =
104
- Currently no, but it's on the list of additions for the next release.
105
-
106
- = How do I put the player in my sidebar? =
107
- Again, this is on the list for the next release!
108
-
109
- = I want the player to appear somewhere down the page content and not at the top, is there a shortcode? =
110
- Not yet, it's another thing on the to do list!!
111
 
112
- = The player doesn't show up, how do I know that the player is working on my site? =
113
- The player will not appear if it doesn't think there's at least one mp3 to play on the page. You can test it as follows:
114
- 1. Using the player's default settings, go to any post/page edit screen.
115
- 2. In a new custom field write 'mp3' into the left box, and write 'test' in the right hand box.
116
- 3. Save the page and view it.
117
 
118
- The player should now appear and will try to play a test track from the plugin author's domain.
119
 
120
- = How do I restore the default settings? =
121
- Go to the settings page, uncheck the box labeled 'Remember my settings when plugin is deactivated' and click 'Update Settings', go to the 'Plugins' menu and de-activate MP3-jPlayer, then activate it again to restore the defaults.
122
-
123
 
124
  == Changelog ==
125
 
 
 
 
126
  = 1.3.0 =
127
  * Updated jquery.jplayer.min.js to version 1.2.0 (including the new .swf file). The plugin should now work on the iPad.
128
  * Fixed admin side broken display of the uploads folder path that occured when a path had been specified but didn't yet exist.
@@ -131,40 +103,17 @@ Go to the settings page, uncheck the box labeled 'Remember my settings when plug
131
  * Modified the css for compatibility with Internet Explorer 6. The player should now display almost the same in IE6 as in other browsers.
132
 
133
  = 1.2.12 =
134
- * Added a new player style option on the settings page, and 3 colour variations including a neutral grey.
135
- * Changed download button display states to give a better visual cue.
136
-
137
- = 1.2.11 =
138
- * Added an option to include a 'download mp3' link on the player.
139
-
140
- = 1.2.10 =
141
- * Fixed bug (created in v1.2.9) where player was breaking if remote tracks were filtered from the playlist.
142
-
143
- = 1.2.9 =
144
- * Added a play order setting method to allow ordering of some or all tracks on a playlist. Any numbered custom keys (eg "1 mp3") appear in order at the top of the playlist.
145
- * Added ability to show/hide the playlist, and to choose it's default state from the admin settings page.
146
- * Added a 'connecting' state and animated gifs to player status for more visual indication that player is functioning when the connection is slow.
147
- * Restructured/improved the code a little. When on a single page/post now grabbing the meta keys/values while in the head to avoid enqueueing scripts or writing js if there's no tracks on a page. This should eventually be done for posts index page as well. Currently the adding of the the player on the index is left until the posts loop runs which should be fail-safe against any other plugin modifying the displayed posts during the loop.
148
- * Updated jquery to version 1.4.2 (this shouldn't affect WP versions proir to 3 as WP uses it's included jquery version in preference).
149
  * The 'Default folder' option can now be a remote uri to a folder, if it is then it doesn't get filtered from the playists when 'allow remote' is unticked.
150
 
151
  = 1.2.0 =
152
- * Added media library integration to allow adding of mp3's in the same way as from the default folder (ie. by entering just a filename). If the track is in the library then using it's full uri and conditionally using the titles and captions. User does not have to specify where the tracks reside (recognises library file, default folder file, and local or remote uri's).
153
- * Added an admin option to filter out any off-site mp3's from the playlists if desired.
154
- * Added an admin option to hide the file extension should a filename be displayed.
155
- * Fixed bug where using @ signs in a title would break the track (the filename/uri was written incorrectly). Titles can now include @ signs. Similarly fixed bug where using dots in a caption truncated the caption.
156
  * The plugin now clears out it's settings from the database by default upon deactivation. This can be changed from the settings page.
157
- * The A-Z sort now ignores capitalisation.
158
  * It's no longer necessary to include the file extension when writing filenames.
159
 
160
  = 1.1.0 =
161
- * Added detecting of urls in the playlist allowing over-rides of default folder and playing of off-site mp3's.
162
- * Added status info in player display to show player's current state (ready, buffering, playing, stopped, paused).
163
- * Added admin option to put a player on posts index page, the player is now added to the first post that has a playlist when on the index.
164
- * Added ability to give mp3's a caption along with the title.
165
- * Added some basic player positioning options.
166
- * Added field checking/correction when the admin default folder value is updated.
167
- * Added a-z sort option.
168
  * Fixed bug where using unescaped double quotes in a title broke the playlist, quotes are now escaped automatically and can be used.
169
 
170
  = 1.0 =
2
  Author URI: http://www.sjward.org
3
  Plugin URI: http://www.sjward.org/jplayer-for-wordpress
4
  Contributors: simon.ward
5
+ Tags: mp3, audio, mp3 player, music, jplayer, music player, audio player, playlist
6
  Requires at least: 2.8
7
  Tested up to: 3.0.1
8
+ Stable tag: 1.3.1
9
+
10
+ Auto adds an mp3 audio player to pages/posts that you make a playlist on.
11
 
 
12
 
13
 
 
14
  == Description ==
15
 
16
+ - Easy playing of mp3's from your wordpress library, a default folder, another domain
17
+ - Use custom fields to make ordered playlists
18
+ - Add titles and captions, use or overide media library titles and captions
19
+ - No setup
20
+ - Simple admin panel
21
+ - Uses jPlayer
22
+
23
+ The player has a loader bar and position/vol sliders, status info, hideable playlist, and optional download mp3 button.
24
 
25
+ [See a Demo here](http://sjward.org/jplayer-for-wordpress)
26
 
 
27
 
28
 
29
+ **Making a Playlist**
 
30
 
31
+ Add tracks on the page/post edit screen using the custom fields (below the content box). Enter them as follows:
 
 
 
 
32
 
33
+ 1. In the left box of a new custom-field line enter:
34
 
35
+ <code>mp3</code>
36
 
37
+ 2. Write the filename (or URI)* of the mp3 into the right box and hit 'Add custom field'. Repeat the above to add more tracks, and hit the 'update/publish' button when you're done.
38
 
39
+ *NOTE - You only need a full URI when the mp3 is not in the library/default folder , otherwise just the filename will do (can leave off the file extension).
 
 
40
 
 
41
 
42
 
43
+ **Adding a Title and Caption**
44
 
45
+ Add the title in the right hand box before the filename(or uri), separate with an @ sign, eg:
 
46
 
47
+ <code>MyTitle@myfilename</code>
48
 
 
49
 
 
 
50
 
51
+ **Adding Captions**
52
 
53
+ Add the caption in the left hand box after <code>mp3</code>, separate with a dot.
54
 
55
+ <code>mp3.My Caption</code>
56
 
57
 
 
58
 
59
+ **Play Order**
60
 
61
+ To control the playlist order number the left hand boxes, eg:
62
  <code>1 mp3</code>
63
+ <code>2 mp3.some caption</code>
64
+ <code>3 mp3.Another Caption</code>
65
 
 
 
 
66
 
67
 
68
  == Installation ==
81
  3. Activate the plugin via your Wordpress 'Plugins' menu.
82
 
83
 
 
 
 
 
 
 
 
 
 
 
 
 
84
 
85
+ == Screenshots ==
 
 
 
 
 
 
 
86
 
87
+ 1. Player style
88
+ 2. Admin settings page
89
+ 3. Playlist example
 
 
90
 
 
91
 
 
 
 
92
 
93
  == Changelog ==
94
 
95
+ = 1.3.1 =
96
+ * Fixed image rollover on buttons when wordpress not installed in root of site.
97
+
98
  = 1.3.0 =
99
  * Updated jquery.jplayer.min.js to version 1.2.0 (including the new .swf file). The plugin should now work on the iPad.
100
  * Fixed admin side broken display of the uploads folder path that occured when a path had been specified but didn't yet exist.
103
  * Modified the css for compatibility with Internet Explorer 6. The player should now display almost the same in IE6 as in other browsers.
104
 
105
  = 1.2.12 =
106
+ * Added play order setting, a 'download mp3' link option, show/hide playlist and option, a connecting state, a new style.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
  * The 'Default folder' option can now be a remote uri to a folder, if it is then it doesn't get filtered from the playists when 'allow remote' is unticked.
108
 
109
  = 1.2.0 =
110
+ * Added playing of media library mp3's in the same way as from the default folder (ie. by entering just a filename). User does not have to specify where the tracks reside (recognises library file, default folder file, and local or remote uri's).
111
+ * Added filter option to remove off-site mp3's from the playlists.
 
 
112
  * The plugin now clears out it's settings from the database by default upon deactivation. This can be changed from the settings page.
 
113
  * It's no longer necessary to include the file extension when writing filenames.
114
 
115
  = 1.1.0 =
116
+ * Added captions, player status info, a-z sort option, basic player positioning, detecting of urls/default folder
 
 
 
 
 
 
117
  * Fixed bug where using unescaped double quotes in a title broke the playlist, quotes are now escaped automatically and can be used.
118
 
119
  = 1.0 =
screenshot-1.png CHANGED
Binary file
screenshot-2.png CHANGED
Binary file
screenshot-3.gif DELETED
Binary file
screenshot-3.png ADDED
Binary file
screenshot-4.gif DELETED
Binary file