RSS
 

Nazdrave-MP3

Nazdrave-MP3 is a WordPress plugin which allows you to embed an Adobe Flash MP3-player in your blog, using simple [mp3] tags like this:

[mp3]/wp-content/uploads/malmsteen – amberdawn.mp3[/mp3]

Go get Adobe Flash Player!

This plugin supports passing tag attributes to the player, like standard HTML. Here’s an example:

[mp3 autostart="true" repeat="true"]song.mp3[/mp3]

A full list of all attributes accepted is available here

CREDITS

This plugin uses Jeroen Wijering’s JW MP3 PLAYER v3.99. It was heavily inspired by MP3-o-Matic!, which I tried to modify to suit my needs, but I reached a point where I have replaced almost all of the initial code, so it was actually another plugin! Currently the only thing that remains from MP3-o-Matic is the tag syntax ([mp3][/mp3]).

The plugin also makes use of Geoff Stearns’ Javascript SWFObject.

DOWNLOAD

The most current version is 1.2
Download nazdrave-mp3-1.2.zip (36.1KB)

INSTALL

Just extract the contents of this archive to the “wp-content/plugins” directory of your blog. Then go to the Plugins page of your admin screen and activate the plugin.

USE

It’s really simple – if you don’t want any fancy control over the player, just enter the URL of any MP3 file in the post/page editor, and surround it with [mp3][/mp3] tags, just like a HTML link. The only limitation is the file location – it must be a valid URL (either absolute or relative), because the player runs on the client machine and must be able to get the file via Internet. So, you can’t point to a file outside the document root. You can, however, point to a file on another site, if you specify the full URL (like http://example.com/file.mp3).

You can use the player in your posts and pages, but not in comments.

VERSION LOG

1.01:
Since I’ve lost my original source code, this is a complete rewrite of the plugin. The functionality is the same though, so I changed only the subversion code

1.02:
Updated the JW MP3 Player to version 3.99

1.1 (24/Nov/2007):
This one’s for all of you standard-freaks out there
(cheers to all of you! ;) )

The plugin is now XHTML compliant! Thanks to Geoff Stearns’ SWFObject, the plugin outputs just SPAN and SCRIPT tags, which means it conforms with pretty much every HTML/XHTML standard today. The old version produced the more common EMBED, OBJECT and PARAM tags, which made all XHTML validators go nuts :)

Another benefit from the use of SWFObject is that the IE7 users no longer need to click the player in order to use it. As you may know, some time ago Microsoft released an update to IE7 which requires the user to activate the user interfaces of ActiveX controls prior to using them. Fortunately, this applies only to static APPLET, EMBED, and OBJECT elements, but not to controls created by external scripts. By using SWFObject the plugin gets round this problem and enables the user to directly interact with the player.

1.2 (19/Jan/2008):
Happy new year with this new version, it’s a bugfix release for an issue occurring when the “Blog address” and “WordPress address” in your blog’s options are different. If you have given WordPress its own directory as described here, the previous version of the plugin wouldn’t work for you. Credit goes to Ryan for spotting this problem. Cheers, mate :)

FUTURE PLANS
None. I’ve lost interest in this project long ago, so don’t expect anything more than bug fixes. That said, the plugin is so simple I don’t believe there are any more bugs hanging around ;)

p.s. Nazdrave means “cheers” in Bulgarian :P

Leave a Reply

 
 
  1. DarkGiank.com

    7 April 2007 at 00:37

    Hi, great modification of my plugin, i have made mine in 30 minutes so it has not too much caracteristics, thanx for adding it, I see that the of your plugin is very similar to mine, you have added a flashvars parser :D nice :D I will be very happy if you put me as one of the authors in the info part of the code :D thanx in advance, great work!.

     
  2. SoulSmasher

    12 April 2007 at 14:30

    Thank you i was expğecting for a plugin like this!

    btw i’ve a question, can we update mp3player.swf with new releases??

     
  3. inSInc

    14 April 2007 at 12:08

    oooh, gg^^ me like v-much =)

     
  4. Pez

    16 April 2007 at 17:29

    Do you have version 2 of your MP3 player available. The one on myflashfetish.com?

    Thanks!

     
  5. admin

    18 April 2007 at 15:50

    @SoulSmasher: Yes, swapping the .swf file should work

     
  6. Jason

    2 May 2007 at 21:42

    Is it possible to use your plugin to do playlists like you can if you embed with the Flash MP3 Player? Or can you only do one file at a time?

     
  7. Цветан Дичев

    19 November 2007 at 18:34

    Поздравления. Много добър плъгин. :)

     
  8. david

    23 November 2007 at 20:50

    i am interested in using an mp3 player like the link listed here:

    http://www.jonathancoulton.com/store/downloads

    would your player work in wordpress – like this?

     
  9. Stylius.NET » Blog Archive » “Валиден” Flash

    24 November 2007 at 00:58

    [...] дена си инсталирах един плъгин за WordPress-а, наречен Nazdrave-MP3. Най-общо казано, това е Flash MP3 плеър, на който просто се [...]

     
  10. Stylius

    24 November 2007 at 03:12

    Поздравления за плъгина! Много е добър. Само едно нещо му липсваше и за това му направих малка модификация. Проблема е, че не се валидизира страницата, ако се използва този плъгин. В моя блог съм постнал една публикация какво съм направил: http://www.stylius.net/?p=39

     
  11. WordPress Plugins Database » Plugin Details » Nazdrave-MP3

    24 November 2007 at 07:39

    [...] Visit [...]

     
  12. admin

    24 November 2007 at 11:31

    @Stylius: Поздравления и на теб! Метода с OBJECT тага е наистина добро предложение :)
    Успях да намеря и друг начин да направя плъгина съвместим със стандартите, който обаче има и друг, доста полезен страничен ефект ;) Виж описанието на версия 1.1

     
  13. WordPress 2.3 compatiblity Plugins | Dreamer's Blog

    7 December 2007 at 01:20

    [...] Nazdrave-Mp3 (http://blog.nazdrave.net/?page_id=13) 1.02 [...]

     
  14. jwqlb

    7 December 2007 at 15:23

    very nice, thank you.
    but the fake equalizer doesn’t work.
    what can i do?

    greetings
    jwqlb

     
  15. Pete

    15 December 2007 at 18:24

    I keep getting “Go get Adobe Flash Player!” instead of the flash player. I know I have the latest version of Flash, and I have a valid mp3 file. What am I missing? I tested in Safari and Firefox on a Mac.

     
  16. Ryan

    18 December 2007 at 08:25

    I’m getting the same result as Pete. Downloaded the Flash 9 plugin and still get the result.

     
  17. admin

    18 December 2007 at 11:16

    Guys, could you please give me some more details on the Macs you’re using? The plugin seems to work fine on our iMac in the office, and I don’t have access to another one for testing.

     
  18. Ryan

    18 December 2007 at 18:27

    Sorry for that. I’m on 10.4.11 running Safari 3 and FF 2.0.0.11. It was the upgrade from 1.0 that broke it for me. Thanks for the quick reply

     
  19. Whatever I Feel Like Blogging About » Plugins I Use

    20 December 2007 at 00:09

    [...] Nazdrav-MP3 – Simplifies the process of embedding mp3’s. [...]

     
  20. Ryan

    23 December 2007 at 23:09

    Got some time to debug the issue and it turns out it wasn’t finding my wp installation correctly as my blog address and wp install address are different. Changed (in mp3.php) the $url var on line 46 from get_bloginfo(‘url’) to get_bloginfo(‘wpurl’)

    This fixed the url issue. Then found that the $path var on line 20 was doing the same thing when finding the media file location. Changed the var in the function on line 78 from so.addVariable(“file”, “$path”); to so.addVariable(“file”, “main$path”);

    Now the player’s play and pause buttons are on top of each other. Haven’t figured this out. Hope this helps. You can see what I mean at http://ryanfitzer.com/?p=587

    I’ll post back when I figure that part out.

     
  21. Ryan

    23 December 2007 at 23:40

    The player button problem was the result of trying to play an .m4a file. Once I encoded it as an .mp3 things went back to normal. Sorry for all the smiley faces up there.

     
  22. MaxTR.org » Blog Archive » Wordpress Mp3 Player

    4 January 2008 at 00:30

    [...] Eklenti sayfası : Buradan [...]

     
  23. admin

    4 January 2008 at 15:33

    Ryan, thanks about pointing out the “url” vs “wpurl” issue! You are absolutely right :)

    I’ll fix this as soon as I can

     
  24. ana paula

    9 January 2008 at 01:01

    sem comentarios….

    adorei

     
  25. ankara nakliyat

    17 January 2008 at 11:14

    Very nice thank you friends.

     
  26. Tony

    18 January 2008 at 22:30

    Hi,

    I am having trouble I with the plugin because of a setting I have inside of WordPress. My wordpress address (URL) is different from my Blog Address (URL) so when the swbobject goes to find the mp3player its looking for it at the Blog Address and not the wordpress address. In other words,

    http://www.mywebsite/blogaddress/postitle (Blog address) would look like this
    http://www.mywebsite/news/something-interesting

    http://www.mywebsite/wordpressaddress/postitle (wordpress address)
    http://www.mywebsite/wordpress/something-interesting

    This is what happens and the script doesnt account for the setting in wordpress to allow you the security feature of making your visible blog address different from that of your wordpress address

    Any help would be most appreciated!!

    Thanks!!!

     
  27. admin

    21 January 2008 at 13:55

    Hi Tony,

    Version 1.2 fixes this issue. You should give it a try.

    Thanks for the feedback :)

     
  28. Cam balkon

    9 February 2008 at 21:08

    Playlists
    - An options page in the admin, specifying default attributes and some other settings
    - Ability to put a player in comments
    - Checking for and applying updates

    p.s. Nazdrave means “cheers” in Bulgarian
    what is that

     
  29. s.karal

    21 February 2008 at 00:14

    Currently the only thing that remains from MP3-o-Matic is the tag syntax.. Rightly..

     
  30. 3. Cadde Bahcesehir

    30 March 2008 at 00:30

    Can you only do one file at a time?

     
  31. baron

    30 April 2008 at 20:17

    hi there plugin but :

    Does anybody know if tis script is compatible with WordPress 2.5.1?

    Thanks in advance for any help on this!

     
  32. Интернет маркетинг

    20 May 2008 at 12:38

    Страшен плугин веднага го пускам в деиствие :) Благодаря отново.

     
  33. Finally — an mp3 player for WordPress that works out of the box | Karen Arnold Design, LLC

    28 June 2008 at 20:28

    [...] I have tried off and on over the last few months to find an mp3 player that I can embed in a post or page in a site powered by WordPress. No luck. But today my luck has changed. I found Nazdrav. [...]

     
  34. wordpress防盗链 | 无心

    30 August 2008 at 07:57

    [...] 去安装一个插件nazdrave-mp3,装完这个,以后插入MP3的时候就不用自带的那个播放器空间了.用这个. [...]

     
  35. Wordpress için mp3 çalar (2) | CANARKADAŞ

    2 March 2009 at 18:22

    [...] Wijering’s JW MP3 PLAYER v3.99 kullanılarak geliştirilen Nazdrave-MP3 eklentisi ile WordPress ile kurulu sitelerinizde mp3 uzantılı dosyalarınızı [...]

     
  36. Chin Chin

    9 April 2009 at 09:21

    The song comes out very jagged and there’s a time lag – i.e music is not smoothly streamed. What do I do

     
  37. Teresa

    30 April 2009 at 18:56

    Nazdrave! Works perfectly in WordPress 2.7.1

     
  38. Teresa

    30 April 2009 at 18:58

    Chin Chin: It could be your internet connection or it might be the Chipmunk Effect: The Macromedia Flash player has a problem playing files that are encoded at a rate that is not a multiple of 11.025 kHz. This effect is sometimes called the “chipmunk” effect: the file is played at double speed. To avoid this, encode MP3’s at 11.025 kHz 22.050 kHz or 44.100 kHz.

     
  39. John Bates

    1 May 2009 at 16:29

    Thank you SOOO much for creating an mp3 player that really does work straight out of the box. I tried two other players before finding yours. Thank goodness I found yours.

    Cheers,
    JB

     
  40. Nazdrav: mp3 player for WordPress « Cherished Solutions Blog - “Solutions to Cherish”

    10 May 2009 at 07:34

    [...] Learn more about Nazdrav here. [...]

     
  41. mp3 players

    12 May 2009 at 08:47

    nice post, thanks for sharing it, like it

     
  42. Leader Mp3

    25 May 2009 at 21:00

    This plugin is exactly what I am looking for.More power.

     
  43. wordpress

    14 March 2010 at 03:07

    Thanks,
    İt is my favorite wordpress mp3 player and I want to make an exhibition on sidebar. How can I add this plugin on sidebar in addition if it dosn’t exist this fonksiyon are you thinking to develop this fonksiyon.
    Thanks so much again

     
  44. osu

    13 May 2010 at 09:51

    Hi,

    Good plugin, but I keep getting Russian spam that seems to be related to this plugin (they even refer to the plugin url: var so = new SWFObject( “http://www.domain.com/wp-content/plugins/nazdrave-mp3/mp3player))

    Is this still being developed and has anyone else been getting spam as a result of it? Haven’t seen an update for a while….

     
  45. Rosko

    19 May 2010 at 10:14

    Hi osu – it looks like the spammers are simply trying to use the SWF player which is hosted on a website using the plugin. I’m not even sure what they are trying to achieve – are they trying to use JS in the email?!?

     
  46. istek-muzik.net

    4 July 2010 at 01:02

    Nazdrave! it works very well in WordPress 3.0 too. thanks