Lack of interest Soundcloud player

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

gib

Well-known member
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 ?
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
Agree it would be good to see this added :)

Surely a little mod for some of the talented coders around here. :)
 
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.
 
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!!
 
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
biggrin.png
 
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!!
 
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?
 
Top Bottom