• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Lack of interest Soundcloud player

gib

Active member
#1
Would be cool to see a SoundCloud.com player added when a post is made with a soundcloud link.
Could this be added as a BB code or to the HTML parser ?
 

Carl

Well-known member
#2
Agree it would be good to see this added :)

Surely a little mod for some of the talented coders around here. :)
 

HoddzDJ

Active member
#3
I have already made this possible!! I am gonna find the post for you now... cos it's awesome!! But needs some knowledge of how to put it in the post.
 

HoddzDJ

Active member
#4
It used the embed code on the Soundcloud site, so you have to grab the ID from that, but it works great. Go into the admin CP and then on the left hand side click on 'BB Code Media Sites' and then 'Add BB Code Media Site'

Then use the details below to create the site.

Media Site ID: soundcloud
Site Title: SoundCloud
Site URL: http://www.soundcloud.com
Match URLs: http://api.soundcloud.com/tracks/{$id}&secret_url=false, http://api.soundcloud.com/tracks/{$id}
Embed HTML:
HTML:
<object height="81" width="75%">
 <param name="movie" value="http://player.soundcloud.com/player.swf?url=http://api.soundcloud.com/tracks/{$id}&secret_url=false"></param>
 <param name="allowscriptaccess" value="always"></param>
 <embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=http://api.soundcloud.com/tracks/{$id}&secret_url=false" type="application/x-shockwave-flash" width="100%"></embed>
</object>
Now that you have done that, if you want to embed a SoundCloud media player go to the SoundCloud page, click on the 'Share' button of the SpundCloud player. Scroll through the embed code and look for the numbers after the .com/tracks/ section of the URL, then put them in the [soundcloud][/soundcloud] tags in your past on the forum.

It may seem like a rather long winded way to do it, but for now it's the only working way that I know!!
 

gib

Active member
#5
Thanks Hoddz, it's working fine on my site now, hopefully it will work posting an id with a / in it in future, but the numeric id works fine in the mean time
 

HoddzDJ

Active member
#6
Thanks Hoddz, it's working fine on my site now, hopefully it will work posting an id with a / in it in future, but the numeric id works fine in the mean time :D
What do you mean with a forward slash in it? Could you give me an example, cos I'll be able to have a look and see if it can be done ;-P!!
 

gib

Active member
#7

HoddzDJ

Active member
#9
for example http://soundcloud.com/max-cooper/max-cooper-live-modus-free-download
the ID part of the URL would be max-cooper/max-cooper-live-modus-free-download, but this doesn't work, even if passed within "", maybe something to do with what soundcloud not accepting a / in the id.
so I view the source page of the soundcloud page and go down to around line 95 to 100 to find out the track id data-sc-track="8439038" and pass the number as the id, which works, but a bit fiddly
Yeah because SoundCloud don't use the text for the flash player. I am thinking about looking into it more once XenForo is released as a full forum, and I will see if I can get a work around for it. But I will keep everyone on here informed. Also, you don't have to go to the Source code, you could go to the embed code that is on the SoundCloud player, but it will have the same number so it's all about personal preferences.
I couldnt link to youtube videos through the media button when installed this bb code.
I can't see as it would make any difference what so ever Carl, I can embed all media in the same post (including SC and YT) so not sure. I am just about to update to Beta 6 and check this, can you confirm what version of XF you are running?