DeliciousPlaytagger
Questions answered by this recipe
- How can I embed mp3's on a webpage using the [semi-defunct] Delicious.com playtagger?
Description
The Delicious playtagger [originally maintained by Delicious.com] was and still is a very simple way to embed mp3's into a webpage so that they're instantly playable. This code as been updated so that the playtagger will still work, even though Delicious no longer supports it.
*Please note that the playtagger still works!*
At some point in 2011, the Delicious playtagger stopped working, likely due to Yahoo's purge of the social bookmarking company, Delicious.com. Since then some folks have come along and rolled their own version of the very handy playtagger.
By adding this recipe and the accompanying files to your PmWiki installation, any regular link to an mp3 will automatically appear with a blue play-/stop-button preceding it. These buttons can also be re-designed to your liking using a program like Gimp, Inkscape, Photoshop, or Illustrator.
This recipe involves javascript that then accesses a Flash .swf audio player.
Working Example / Demo
http://plus1plus1plus.org/Resources/PmWiki-Playtagger
Installation
Note: For those who may have been using the first version of this recipe (prior to 2012-04-04), you will need to clear out any old playtagger files (except any custom play and stop buttons you made), and then install the following files.
1. download playtagger_mod.zipΔ
, then unzip and move the playtagger_mod
directory to /pmwiki/pub/
/pmwiki/pub/playtagger_mod/ -> play.gif -> stop.gif -> playtagger.swf
2. add the playtagger.modified.phpΔ recipe to /pmwiki/cookbook/
3. the following code should then be included in your PmWiki config.php
:
## DELICIOUS PLAYTAGGER $PubDirUrl = "http://YOURDOMAIN.COM/pmwiki/pub"; include_once("$FarmD/cookbook/playtagger.modified.php");
After adding this code, any link to an mp3 will automatically appear with a blue-play-button preceding it. Any of the following bits of code will be transformed:
http://mysite.com/recordings/recording.mp3
(an mp3 from an external site)Attach:recording.mp3
(an mp3 uploaded to your group)[[Attach:recording.mp3 | link to my mp3]]
(again, but with text link)
Notes
Special thanks to Improbulus (http://www.consumingexperience.com/2005/11/playing-mp3s-on-your-blog-beginners.html) who's original code wrested the playtagger from the cold dying grip of Delicious.com...
... And thanks to Barrett Golding (BG) who fixed Improbulus's code in 2011: http://hearingvoices.com/news/2011/10/playtagger-mod/
Release Notes
- 2012-04-04 - updated entire recipe after playtagger stopped working; now works again, incorporating changes made by Barrett Golding (BG) – overtones99
- 2009-09-28 - added modified version of playtagger, that adds ability to change button images, based on Improbulus's playtagger mod – overtones99
- 2008-11-28 - Added to PmWiki Cookbook... – overtones99
See Also
- QuickTime - Embed QuickTime content on wiki sites.
- Delicious - Insert a delicious.com user's links or tags into PmWiki
- Flash#audioo - embedding Audioo.com content
Contributors
Comments
See discussion at DeliciousPlaytagger-Talk
User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.