PDA

View Full Version : BB Code Enhancements - Soundcloud Embed


utahraves
07-14-2009, 10:00 PM
I run a music based board and so I figured I'd come up with something a lot of my users use. It's called Soundcloud. It's like Twitter for music. This will embed the flash player onto the page where they post it.

Bibbo
07-21-2009, 01:46 AM
Could you give a little more information?
And screenshots if possible..

HMBeaty
07-21-2009, 01:48 AM
Basically a BB Code that embeds soundcloud videos?

gwerzal
07-21-2009, 10:30 AM
screenshots would be nice please

incurable
08-22-2009, 11:59 PM
i installed it but soundcloud disabled hotlinking now..sooooo it's useless now. :(

lm3a.net
08-23-2009, 08:40 AM
thanks,,

TeknoSounds
10-20-2009, 03:38 AM
Woo utahraves! Rave site from TX here ;)

Hey so soundcloud has changed its format, theres now a username preceeding the trackname. To fix the embed, I just changed "track" to "url" and now just need to embed the whole URL is all.

Groovejunk
12-04-2009, 07:01 PM
Nice! Works like a charm!

COL NIL SATIS
12-06-2009, 06:08 PM
lol...works well ..installed

pixelpunk
12-08-2009, 10:38 PM
how does this work with tracks that are in a user directory?

ie: http://soundcloud.com/jeff-service/do-it-right

because [sc]do-it-right[sc] is pulling up an entirely different track

pixelpunk
12-08-2009, 11:43 PM
So I've made a few changes to get this to work with tracks behind user directories.

Please note that this also works by pasting the full URL for the track within the [sc] tags.


<object height="81" width="100%">
<param name="movie" value="http://player.soundcloud.com/player.swf?url={param}"></param>
<param name="allowscriptaccess" value="always"></param>
<param name="wmode" value="transparent"></param>
<embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url={param}" type="application/x-shockwave-flash" width="100%" wmode="transparent"></embed></object>

Enjoy!

Kosmic1
12-14-2009, 12:18 PM
So I've made a few changes to get this to work with tracks behind user directories.

Please note that this also works by pasting the full URL for the track within the [sc] tags.


<object height="81" width="100%">
<param name="movie" value="http://player.soundcloud.com/player.swf?url={param}"></param>
<param name="allowscriptaccess" value="always"></param>
<param name="wmode" value="transparent"></param>
<embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url={param}" type="application/x-shockwave-flash" width="100%" wmode="transparent"></embed></object>

Enjoy!

Humm but it's just working with the full URL.

pixelpunk
12-14-2009, 02:42 PM
You're right, it is. I find it's easier to copy & paste as opposed to using just a segment of the address.

Kosmic1
12-14-2009, 04:18 PM
Okay, now I have to change the old URL's to full address :D

I think it's easier too :) Thanks

Benedict
01-02-2010, 12:08 PM
Hi,

Does this work in version 4.0?

Thanks

therapist
01-19-2010, 04:47 PM
boh....

awesome

utahraves
01-25-2010, 10:02 PM
Should work in 4.0 as it is just BBCode

theque
07-20-2010, 05:05 PM
Hi,

Does this work in version 4.0?

Thanks

I cant get this to work in 4.05 i keep getting a warning message about double quotes.

Does anyone have some working code for versions 4.0.4 or 4.0.5

theque
07-23-2010, 07:58 PM
The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.

•<object height="81" width="100%"><param name="movie" value="http://player.soundcloud.com/player.swf?url={param}&amp;g=bb"></param><param name="allowscriptaccess" value="always"></param><embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url={param}&amp;g=bb" type="application/x-shockwave-flash" width="100%"></embed></object> <a href="{param}">{param}</a>

john102774
07-25-2010, 03:03 AM
Installed! Thank you!!!

mp3u
10-28-2010, 02:57 PM
How do I upload this mod? Do I have to put this on the server (if so where?) or do I upload it through the Admin CP? Not sure what to do with the text file but I would like to have this mod on my board.

pete_brady
11-01-2010, 09:29 PM
How do I upload this mod? Do I have to put this on the server (if so where?) or do I upload it through the Admin CP? Not sure what to do with the text file but I would like to have this mod on my board.

add it in as a new BBCode. installed & working on vb4.08

slight modification for Soundcloud playlists:

Title: Soundcloud Playlist

BBCode Tag Name: scpl

Replacement:
<object height="360" width="100%">
<param name="movie" value="http://player.soundcloud.com/player.swf?url={param}&secret_url=false"></param>
<param name="allowscriptaccess" value="always"></param>
<embed allowscriptaccess="always" height="360" src="http://player.soundcloud.com/player.swf?url={param}&secret_url=false" type="application/x-shockwave-flash" width="100%"></embed>
</object>

Example: http://soundcloud.com/fresh_air/sets/small-hours-autumn-leaves

Use option: No

Remove Tag If Empty: Yes

Disable BB Code Within This BB Code: Yes

Disable Smilies Within This BB Code : Yes

Disable Word Wrapping Within This BB Code: Yes

bigtree
11-17-2010, 02:55 AM
I'm new at adding code the VB. Where do I add this exactly. How do I find the bbcode variable location?

unnetboardguy
11-21-2010, 02:39 AM
sidewaysfive.net (old unnet) has it loaded and it works great!
thanks!

Wird0
01-22-2011, 10:07 PM
Thanks for the code Pete, works great on 4.1.1

six58
03-17-2011, 02:41 AM
anyone have this working on 4.1.2? it isn't for me.
i get the soundcloud bar but it doesn't play

six58
03-21-2011, 12:41 AM
anyone have this working on 4.1.2? it isn't for me.
i get the soundcloud bar but it doesn't play

i went into BBCode and rewrote over the replacement code as from this page here http://blog.soundcloud.com/2009/07/28/soundcloud-player-in-forums-5-step-guide-for-soundcloud-bb-code/ and it started working.

luckywaf
03-27-2011, 11:35 AM
...does not work with version 4.0.6 ? ive use also the blog post http://blog.soundcloud.com/2009/07/28/soundcloud-player-in-forums-5-step-guide-for-soundcloud-bb-code/

why ist the track currently not available?

this is the code iam using:

<object height="81" width="100%"><param name="movie" value="http://player.soundcloud.com/player.swf?url="{param}"&amp;g=bb"></param><param name="allowscriptaccess" value="always"></param><embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url="{param}"&amp;g=bb" type="application/x-shockwave-flash" width="100%"></embed></object> <a href="{param}">{param}</a>

can you help me?

jamesbondhf
10-16-2014, 06:28 PM
Here is a better code that I use
<object height="81" width="100%">
<param name="wmode" value="transparent">
<param name="movie" value="http://player.soundcloud.com/player.swf?url={param}&secret_url=false"></param>
<param name="allowscriptaccess" value="always"></param>
<embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url={param}&secret_url=false" type="application/x-shockwave-flash" width="100%"></embed>
</object>

creativepart
11-15-2015, 03:27 PM
As I understand it, SoundCloud has again disabled embedding in 3rd party websites. This mod worked fine on all of my sites and now is now longer working anywhere.

Does anyone know if this is so? Or did they just make a change in their format?