Open main menu

Extension:DeezerSong

MediaWiki extensions manual
OOjs UI icon advanced.svg
DeezerSong
Release status: beta
Implementation Tag
Description Allows to include a Deezersong in your Wiki
Author(s) Bernhard Eisele (User:Boerni)
Latest version 0.1 Beta (2008-01-31)
License No license specified
Download [Code]
Translate the DeezerSong extension if it is available at translatewiki.net
Check usage and version matrix.

DeezerSong extension embeds a DeezerSong in a wiki page.

Contents

InstallEdit

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!

SyntaxEdit

SimpleEdit

<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>

ExpertEdit

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 inEdit

Many, more then 100 colors.

maroon
darkred
firebrick
red
salmon
tomato
coral
orangered
chocolate
sandybrown
darkorange
orange
darkgoldenrod
goldenrod
gold
olive
yellow
yellowgreen
greenyellow
chartreuse
lawngreen
green
lime
limegreen
springgreen
mediumspringgreen
turquoise
lightseagreen
mediumturquoise
teal
darkcyan
aqua
cyan
darkturquoise
deepskyblue
dodgerblue
royalblue
navy
darkblue
mediumblue
blue
blueviolet
darkorchid
darkviolet
purple
darkmagenta
fuchsia
magenta
mediumvioletred
deeppink
hotpink
crimson
brown
indianred
lightcoral
snow
mistyrose
darksalmon
lightsalmon
sienna
seashell
saddlebrown
peachpuff
peru
linen
bisque
burlywood
tan
antiquewhite
navajowhite
blanchedalmond
papayawhip
moccasin
wheat
oldlace
floralwhite
cornsilk
khaki
lemonchiffon
palegoldenrod
darkkhaki
beige
lightgoldenrodyellow
lightyellow
ivory
olivedrab
darkolivegreen
darkseagreen
darkgreen
forestgreen
lightgreen
palegreen
honeydew
seagreen
mediumseagreen
mintcream
mediumaquamarine
aquamarine
darkslategray
paleturquoise
lightcyan
azure
cadetblue
powderblue
lightblue
skyblue
lightskyblue
steelblue
aliceblue
slategray
lightslategray
lightsteelblue
cornflowerblue
lavender
ghostwhite
midnightblue
slateblue
darkslateblue
mediumslateblue
mediumpurple
indigo
mediumorchid
plum
violet
thistle
orchid
lavenderblush
palevioletred
pink
lightpink
black
dimgray
gray
darkgray
silver
lightgrey
gainsboro
whitesmoke
white