Extension:DeezerSong
From MediaWiki.org
|
DeezerSong Release status: beta |
|
|---|---|
| Implementation | Tag |
| Description | Allows to include a Deezersong in your Wiki |
| Author(s) | Bernhard Eisele (User:Boerni) |
| Last version | 0.1 Beta (2008-01-31) |
| License | No license specified |
| Download | [Code] |
| Check usage and version matrix | |
DeezerSong extension embeds a DeezerSong in a wiki page.
Contents |
Install [edit]
Copy the files in the zip file to extensions/ Download zip filer [here]
Then, add the following code to LocalSettings.php:
require_once("$IP/extensions/deezersong.php");
Have fun!
Syntax [edit]
Simple [edit]
<deezersong>songid</deezersong>
- How I find the path ?
- Go by deezer to the song, who you will include and click by blog
Now you see this code:
<div style="width:180px;height:25px;"><object width="180" height="25"><param name="movie" value="http://www.deezer.com/embedded/small-widget.swf?idSong=63597&colorBackground=0x4ECC11&colorButtons=0x4AC111&textColor1=0x000000&autoplay=1"></param><embed src="http://www.deezer.com/embedded/small-widget.swf?idSong=63597&colorBackground=0x4ECC11&colorButtons=0x4AC111&textColor1=0x000000&autoplay=1" type="application/x-shockwave-flash" width="180" height="25"></embed></object><a href="http://www.deezer.com/" style="border:none;margin:0;padding:0;"><img src="http://www.deezer.com/embedded/footer.jpg" alt="free music" title="free music" border="0" style="border:none;margin:0;padding:0;" /></a></div>
The part you are looking for is http://www.deezer.com/embedded/small-widget.swf?idSong=63597", so you would then use <deezersong>63597</deezersong>
Expert [edit]
You can also define some custom parameters for use in this extension, include them in the opening tag, like <deezersong autoplay="1">path</deezersong>
- autoplay="?"
- Here can you sett the autostart 0 and off =no 1 and on =yes
- color="?"
- Optionally put one of these five skins to stylize the playlist: grey-white, green-black, red-white, blue-yellow and oranges-grey
- If you wish to use your own style, use the following:
- bgcolor="?"
- buttonscolor="?"
- text1color="?"
Colour codes are hexidecimal prefixed by "0x", such as 0x525252 or 0x6A752E and colors names
What color can I tipp in [edit]
Many, more then 100 colors.
|
|
|
|
