We present you the music selection that our friends from @ShareMyPlaylist have handpicked for May. Tune in here: http://t.co/b9qoq7YQ
Two of the world’s biggest DJs, Ingrosso+ Alesso, are hosting a house party and you’re invited! Join now - http://t.co/8BQLlijB
Spotify London are standing up for REAL food with @jamieoliver's @FoodRev http://t.co/95IRjtxj Get involved May 19! #foodrevolution
Congrats to our Chief Content Officer, Ken Parks, for being one of @FastCompany's 100 Most Creative People in Business! http://t.co/5fH9ZIKZ
Happy #MusicMonday! Check out some new music recommendations from @MonaFims and tell us - what are you listening to? http://t.co/cnVcQ0uF
It's Mother's Day on Sunday and we're compiling a playlist dedicated to Mom. What songs should we add to the list? Suggest a track here!
A new Spotify Desktop Version is rolling out with some awesome new features! Check out our blog for all the details: http://t.co/rWM8Kj3g
Your taste in music is a great way to spark a conversation. Meet new people with the @Tastebuds #SpotifyApp http://t.co/gsKqoX7B
Looking for romance, or just some new friends with fantastic taste in music? Check out @Fellody's #SpotifyApp http://t.co/chpPwsXp
Do you live in the UK? #FollowFriday @SpotifyUK and stay up to date on our local music news and competitions.
Inspired by Peter Saint-Andre’s blog post, we decided to patch MediaWiki to make it recognize the spotify: URI scheme. (And we threw xmpp: in there as well, because we use it internally for instant messaging.)
First we added spotify: and xmpp: lines to the $wgUrlProtocols array in LocalSettings.php:
$wgUrlProtocols = array(
’http://’,
’https://’,
’spotify:’,
’xmpp:’,
’ftp://’,
’irc://’,
’gopher://’,
’telnet://’, // Well if we’re going to support the above.. -Ævar
’nntp://’, // @bug 3808 RFC 1738
’worldwind://’,
’mailto:’,
’news:’,
’file:’
);
See also the MediaWiki manual!
Then we added some styling to MediaWiki:Common.css to get the nice icons:
#bodyContent a[href ^="spotify:"],
.link-spotify {
background: url(”spotify-external-link-tag-icon.png”) center right no-repeat;
padding-right: 11px;
}
#bodyContent a[href ^="xmpp:"],
.link-xmpp {
background: url(”xmpp-external-link-tag-icon.png”) center right no-repeat;
padding-right: 11px;
}
This is the result:
Nice, huh? Well, it’s Friday after all.
You must log in to comment