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

Discussion in 'Closed Suggestions' started by gib, Jan 15, 2011.

  1. gib

    gib Active 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 ?
     
  2. Carl

    Carl Well-Known Member

    Agree it would be good to see this added :)

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

    HoddzDJ Active Member

    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.
     
  4. HoddzDJ

    HoddzDJ Active Member

    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!!
     
    ragtek and gib like this.
  5. gib

    gib Active Member

    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 [​IMG]
     
  6. HoddzDJ

    HoddzDJ Active Member

    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!!
     
  7. gib

    gib Active Member

  8. Carl

    Carl Well-Known Member

    I couldnt link to youtube videos through the media button when installed this bb code.
     
  9. HoddzDJ

    HoddzDJ Active Member

    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 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?
     
  10. Carl

    Carl Well-Known Member

    Beta 6
     

Share This Page