A place for Site Announcements, Suggestions, Bug Reports and Unadulterated Praise..
pogo
Sheepie Whore
Posts: 14180 Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham
Post
by pogo » Sun May 29, 2016 7:40 pm 0
Soundcloud embeds no longer work. E.g. this which I posted 17 months ago.
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.
pogo
Sheepie Whore
Posts: 14180 Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham
Post
by pogo » Mon Jul 04, 2016 9:06 pm 0
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>
gravy
Sheepie Whore
Posts: 19572 Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place
Post
by gravy » Tue Oct 04, 2016 1:53 pm 0
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.
pogo
Sheepie Whore
Posts: 14180 Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham
Post
by pogo » Tue Oct 04, 2016 11:26 pm 0
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.
gravy
Sheepie Whore
Posts: 19572 Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place
Post
by gravy » Wed Oct 05, 2016 6:38 am 0
What do you mean by 'new code'?
pogo
Sheepie Whore
Posts: 14180 Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham
Post
by pogo » Wed Oct 05, 2016 6:49 am 0
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>
gravy
Sheepie Whore
Posts: 19572 Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place
Post
by gravy » Wed Oct 05, 2016 7:04 am 0
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.
pogo
Sheepie Whore
Posts: 14180 Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham
Post
by pogo » Wed Oct 05, 2016 7:19 am 0
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" /]
gravy
Sheepie Whore
Posts: 19572 Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place
Post
by gravy » Wed Oct 05, 2016 7:37 am 0
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
I'm not adding that. There's a simpler media embed ad-on for phpbb. I'll have a look at that
pogo
Sheepie Whore
Posts: 14180 Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham
Post
by pogo » Wed Oct 05, 2016 7:47 am 0
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.
gravy
Sheepie Whore
Posts: 19572 Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place
Post
by gravy » Wed Oct 05, 2016 8:01 am 0
Yep, sounds like typical coder autism