Soundcloud embeds no longer work

A place for Site Announcements, Suggestions, Bug Reports and Unadulterated Praise..
Post Reply
User avatar
pogo
Sheepie Whore
Sheepie Whore
Posts: 14180
Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham

Soundcloud embeds no longer work

Post by pogo »

Soundcloud embeds no longer work. E.g. this which I posted 17 months ago.
pogo wrote:
It’s not been deleted, it’s still on Soundcloud here:



No idea if this can be fixed or if it’s even worth it. Few people use this or know about it and Soundcloud is going downhill with adverts anyway.
User avatar
pogo
Sheepie Whore
Sheepie Whore
Posts: 14180
Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham

Re: Soundcloud embeds no longer work

Post by pogo »

Thought I’d have a look at this again. Here‘s the embed code from the example I posted above, not sure why I did not find this earlier. It does look like a simple replacement. But again it’s hardly a priority as it’s little used.

Code: Select all

<iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/183257731&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe>
User avatar
pogo
Sheepie Whore
Sheepie Whore
Posts: 14180
Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham

Re: Soundcloud embeds no longer work

Post by pogo »

Bump !

Just noticed lots of people linking to Soundcloud here:

http://www.yakyak.org/viewtopic.php?f=31&t=86809

So surely a strong case for fixing this?!
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Soundcloud embeds no longer work

Post by gravy »

I had a quick go and it's not working.

Phpbb embeds will only substitute your param into a string. That used to work but Soundcloud has changed the way things are embedded so that you'd need to decompose the URL and them reconstruct it into a new URL.
User avatar
pogo
Sheepie Whore
Sheepie Whore
Posts: 14180
Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham

Re: Soundcloud embeds no longer work

Post by pogo »

Do it based on the new code even if it breaks the old instances? They’re broken anyway, so no big loss. Any which are worth preserving can be reposted working.
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Soundcloud embeds no longer work

Post by gravy »

What do you mean by 'new code'?
User avatar
pogo
Sheepie Whore
Sheepie Whore
Posts: 14180
Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham

Re: Soundcloud embeds no longer work

Post by pogo »

I mean the new embed HTML/code I posted above, and again here:

Code: Select all

<iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/183257731&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe>
It looks like the only unique part of that is the 183257731. So use that, or whatever the ID for the track is. To get the ID for a track click on the share button (looks like a rectangle with an arrow coming out of it) then click on Embed. The above are only the default options, you can change the size and have it autoplay (probably a bad idea here), or use a more compact player:

Code: Select all

<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/183257731&color=ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false"></iframe>
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Soundcloud embeds no longer work

Post by gravy »

The id isn't in the song URL

Even if it was phpbb doesn't let you slice up a URL and reform it into a new one you can embed into the code you posted that embeds one specific song.

The only way to get the song id is in the page source HTML and it's a few numbers in the middle of loads of text.
User avatar
pogo
Sheepie Whore
Sheepie Whore
Posts: 14180
Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham

Re: Soundcloud embeds no longer work

Post by pogo »

Or look at the embed code, copied above, where I found it, where it’s the only unique bit and quite distinctive.

You can also click the “WordPress code” checkbox next to the embed string which makes it even clearer, e.g.

Code: Select all

[soundcloud url="https://api.soundcloud.com/tracks/183257731" params="auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true" width="100%" height="450" iframe="true" /]
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Soundcloud embeds no longer work

Post by gravy »

I get what you're saying.

To embed a song you would be go to the song page, click on share, click on embed, click on wordpress, copy out the song id and then type in

Code: Select all

[soundcloud]song id[/soundcloud]
I'm not adding that. There's a simpler media embed ad-on for phpbb. I'll have a look at that
User avatar
pogo
Sheepie Whore
Sheepie Whore
Posts: 14180
Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham

Re: Soundcloud embeds no longer work

Post by pogo »

Fair enough. That is exactly what I was thinking of and I see no problems with it but I stare at pages of code for a living. Even the Youtube embed trips people up here sometimes, so we want something as simple as possible.
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Soundcloud embeds no longer work

Post by gravy »

Yep, sounds like typical coder autism ;)
Post Reply