SoundCloud in Posts

This is where all forum related help and how to... information will be posted

SoundCloud in Posts

Postby Arcada » Thu Mar 15, 2018 6:01 pm

I've created a new BBCode tag for embedding SoundCloud tracks right into your posts.

To do this, go to the track on SoundCloud, press the share button. On the popup choose embed and look for the track id. It will be immediately after /tracks/ in the URL, and it'll be a series of numbers only.

Simply take this track id and put it between [soundcloud][/soundcloud] tags in your post. I've also added a soundcloud BBCode button which you'll see when you post a message, just click on it and then add the track id of the soundcloud track.

The result should look something like this: -

Code: Select all
[soundcloud]400479678[/soundcloud]


For which the end result would be: -



NOTE: For this to work embedding must be enabled in the soundcloud settings for the track.

Enjoy :)
User avatar
Arcada
Site Admin
Site Admin
 
Posts: 746
Joined: Tue Jul 06, 2010 4:28 pm
Location: Edinburgh, UK
Real Name: Marc

Re: SoundCloud in Posts

Postby jonshack » Thu Mar 15, 2018 9:47 pm

Thanks Marc! Just gave it a go, seems to work fine. Just as you described I had to grab the number from the middle of a longer line of code e.g.
from:

<iframe width="100%" height="300" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/402440994&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe>

...I picked out 402440994. If I can do it anyone can :D

Jonathan
jonshack
Seasoned Member
Seasoned Member
 
Posts: 395
Joined: Sun Apr 29, 2012 8:00 pm
Real Name: Jonathan Shacklock

Re: SoundCloud in Posts

Postby Arcada » Fri Mar 16, 2018 12:43 pm

jonshack wrote:Thanks Marc! Just gave it a go, seems to work fine....If I can do it anyone can :D


Yes, it's a little trickier than the YouTube embed, which is simply pasting the URL. For this, as you say, it's the number after /tracks/ in the code that you need, which you get from SoundCloud's embed sharing option (currently the second tab in the "share" popup there).
User avatar
Arcada
Site Admin
Site Admin
 
Posts: 746
Joined: Tue Jul 06, 2010 4:28 pm
Location: Edinburgh, UK
Real Name: Marc


Return to Forum How To

Who is online

Users browsing this forum: No registered users and 1 guest