Bandcamp/Soundcloud

User avatar
Heathen
Rank This Poster
Posts: 3988
Joined: Wed January 30, 2013 4:30 pm

Bandcamp/Soundcloud

Post by Heathen »

Let's have tags to embed that shit. THANK YOU.
cutuphalfdead wrote:so glad i don't see signatures
User avatar
Norah
Poster of the Year
Posts: 37327
Joined: Tue January 01, 2013 2:04 pm
Location: September 2020 Poster of the Month

Re: Bandcamp/Soundcloud

Post by Norah »

Mods, admins, make it happen.
User avatar
Sgt. Crackpot
F.U.B.A.R
Posts: 9104
Joined: Wed July 03, 2013 11:21 pm
Twitter: RobertDowneyJr
Location: Lft Craquepeau
Contact:

Re: Bandcamp/Soundcloud

Post by Sgt. Crackpot »

Custom BB codes need to be created. This one's for Soundcloud. Apparently the Bandcamp one is a little trickier, but I'll see if I can find one.

Soundcloud:

BBCODE USAGE:

Code: Select all

[soundcloud]{URL}[/soundcloud]
BBCODE EXAMPLE:

Code: Select all

[soundcloud]http://soundcloud.com/user-name/song-title[/soundcloud]
HTML REPLACEMENT:

Code: Select all

<object height="81" width="100%"><param name="movie" value="http://player.soundcloud.com/player.swf?url={URL}&g=bb"></param><param name="allowscriptaccess" value="always"></param><embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url={URL}&g=bb" type="application/x-shockwave-flash" width="100%"></embed></object>
ICON:
Image
Last edited by Sgt. Crackpot on Mon October 21, 2013 12:42 am, edited 2 times in total.
Rangi Guy wrote:So skating back to the train station after work today things went wrong.....now my skateboard is at the bottom of the harbour :(
User avatar
Sgt. Crackpot
F.U.B.A.R
Posts: 9104
Joined: Wed July 03, 2013 11:21 pm
Twitter: RobertDowneyJr
Location: Lft Craquepeau
Contact:

Re: Bandcamp/Soundcloud

Post by Sgt. Crackpot »

The custom BB code for Bandcamp is certainly a little trickier.

Bandcamp:

BBCODE USAGE:

Code: Select all

[bandcamp album={NUMBER} bgcol={SIMPLETEXT1} linkcol={SIMPLETEXT2} size={SIMPLETEXT3}][/bandcamp]
BBCODE EXAMPLE:

Code: Select all

[bandcamp album=1848888471  bgcol=FFFFFF linkcol=4285BB size=venti][/bandcamp]
HTML REPLACEMENT:

Code: Select all

<iframe width="400" height="100" style="position: relative; display: block; width: 400px; height: 100px;" src="http://bandcamp.com/EmbeddedPlayer/v=2/album={NUMBER}/size=venti/bgcol=FFFFFF/linkcol=4285BB/" allowtransparency="true" frameborder="0"></iframe>
I'm not 100% sure if this one will work correctly, but it's worth a try.
Rangi Guy wrote:So skating back to the train station after work today things went wrong.....now my skateboard is at the bottom of the harbour :(
User avatar
malice
post-structuralist
Posts: 4377
Joined: Tue January 01, 2013 2:22 pm
Location: faked by jorge

Re: Bandcamp/Soundcloud

Post by malice »

my company wants to hire you
Dev wrote:you're delusional. you are a sad sad person. fuck off. you're mentally ill beyond repair. i don't need your shit. dissapear.
Spoiler: show
people change. people stay the same. people are so often disappointing - random PM, person unnamed
User avatar
Sgt. Crackpot
F.U.B.A.R
Posts: 9104
Joined: Wed July 03, 2013 11:21 pm
Twitter: RobertDowneyJr
Location: Lft Craquepeau
Contact:

Re: Bandcamp/Soundcloud

Post by Sgt. Crackpot »

malice wrote:my company wants to hire you
:lol: What does your company do?
Rangi Guy wrote:So skating back to the train station after work today things went wrong.....now my skateboard is at the bottom of the harbour :(
User avatar
malice
post-structuralist
Posts: 4377
Joined: Tue January 01, 2013 2:22 pm
Location: faked by jorge

Re: Bandcamp/Soundcloud

Post by malice »

Sgt. Crackpot wrote:
malice wrote:my company wants to hire you
:lol: What does your company do?
the official answer is (essentially) a software product company providing business intelligence via web based subscription services
the actual answer is they don't have a fucking clue these days, but they want to hire you anyway in case they figure it out.
Dev wrote:you're delusional. you are a sad sad person. fuck off. you're mentally ill beyond repair. i don't need your shit. dissapear.
Spoiler: show
people change. people stay the same. people are so often disappointing - random PM, person unnamed
User avatar
Sgt. Crackpot
F.U.B.A.R
Posts: 9104
Joined: Wed July 03, 2013 11:21 pm
Twitter: RobertDowneyJr
Location: Lft Craquepeau
Contact:

Re: Bandcamp/Soundcloud

Post by Sgt. Crackpot »

malice wrote:
Sgt. Crackpot wrote:
malice wrote:my company wants to hire you
:lol: What does your company do?
the official answer is (essentially) a software product company providing business intelligence via web based subscription services
the actual answer is they don't have a fucking clue these days, but they want to hire you anyway in case they figure it out.
As enticing as it sounds, I think the 14,170 KM commute is going to kill me after a while.
Rangi Guy wrote:So skating back to the train station after work today things went wrong.....now my skateboard is at the bottom of the harbour :(
User avatar
Sgt. Crackpot
F.U.B.A.R
Posts: 9104
Joined: Wed July 03, 2013 11:21 pm
Twitter: RobertDowneyJr
Location: Lft Craquepeau
Contact:

Re: Bandcamp/Soundcloud

Post by Sgt. Crackpot »

It's a shame we couldn't have had our 9 coffee breaks a day together though, Mary. They would've been great.
Rangi Guy wrote:So skating back to the train station after work today things went wrong.....now my skateboard is at the bottom of the harbour :(
User avatar
Heathen
Rank This Poster
Posts: 3988
Joined: Wed January 30, 2013 4:30 pm

Re: Bandcamp/Soundcloud

Post by Heathen »

The bandcamp one doesn't even have to be that complicated/customized. Let's say we opt for an unique size for the player on the board (the 400x120 one for instance), people would just have get the album ID within the BC embed code:

Code: Select all

<iframe style="border: 0; width: 100%; height: 120px;" src="http://bandcamp.com/EmbeddedPlayer/album=*****JUST THIS NUMBER RIGHT HERE*****/size=medium/bgcol=ffffff/linkcol=0687f5/transparent=true/" seamless><a href="http://ihadanaccident.bandcamp.com/album/boogie-boy-metal-mouth">Boogie Boy Metal Mouth by Boogie Boy Metal Mouth</a></iframe>
and use it like this:

Code: Select all

[bandcamp]2421209730[/bandcamp]
That would look like this:

Code: Select all

[bandcamp]{NUMBER}[/bandcamp]

Code: Select all

<iframe style="border: 0; width: 100%; height: 120px;" src="http://bandcamp.com/EmbeddedPlayer/album={NUMBER}/size=medium/bgcol=ffffff/linkcol=0687f5/transparent=true/" seamless></iframe>

But the easiest way for the user would of course be to let them grab the full embed code without worrying about which part is important. Maybe the wordpress embed code, as it's shorter and simpler.

Code: Select all

[bandcamp][bandcamp width={SIMPLETEXT1} height={SIMPLETEXT2} album={NUMBER} size={SIMPLETEXT3} bgcol={SIMPLETEXT4} linkcol={SIMPLETEXT5}][/bandcamp]

Code: Select all

<iframe style="border: 0; width: 100%; height: 120px;" src="http://bandcamp.com/EmbeddedPlayer/album={NUMBER}/size=medium/bgcol=ffffff/linkcol=0687f5/transparent=true/" seamless></iframe>
The only problem with that is that if you select the large player on bandcamp, you get a slightly different embed code with an additional parameter, which is going to fuck things up.


So maybe the first option of just getting the album ID from either embed code and having a fixed size/display might be easier to implement. I reckon the people who are going to embed bandcamp streams are internet-savvy enough to know how to get the album ID within the full embed code.


(note: I can't test any of that right now, so there could be mistakes)
cutuphalfdead wrote:so glad i don't see signatures
User avatar
Sgt. Crackpot
F.U.B.A.R
Posts: 9104
Joined: Wed July 03, 2013 11:21 pm
Twitter: RobertDowneyJr
Location: Lft Craquepeau
Contact:

Re: Bandcamp/Soundcloud

Post by Sgt. Crackpot »

That's probably a better way, nice work heathen. :thumbsup:
Rangi Guy wrote:So skating back to the train station after work today things went wrong.....now my skateboard is at the bottom of the harbour :(
User avatar
Norah
Poster of the Year
Posts: 37327
Joined: Tue January 01, 2013 2:04 pm
Location: September 2020 Poster of the Month

Re: Bandcamp/Soundcloud

Post by Norah »

Just the id code would be best.
User avatar
Heathen
Rank This Poster
Posts: 3988
Joined: Wed January 30, 2013 4:30 pm

Re: Bandcamp/Soundcloud

Post by Heathen »

Yeah, but there's something I hadn't thought about. This was for embedding albums, embedding single tracks is yet another code :?

Code: Select all

[bandcamp width=100% height=120 album=1725912726 size=medium bgcol=ffffff linkcol=0687f5]
vs.

Code: Select all

[bandcamp width=100% height=120 album=1725912726 size=medium bgcol=ffffff linkcol=0687f5 t=6]
It's been a while since I've used BBcodes and I'm not sure if the syntax allows for more complicated patterns (where part of the text would be optional to account for the presence or absence of the track parameter). If not that means using two different bbcodes, which is kinda shitty.
cutuphalfdead wrote:so glad i don't see signatures
User avatar
Norah
Poster of the Year
Posts: 37327
Joined: Tue January 01, 2013 2:04 pm
Location: September 2020 Poster of the Month

Re: Bandcamp/Soundcloud

Post by Norah »

What if it was set up similar to the URL code so it's something like [bandcamp=ALBUMID]track number[\bandcamp]?

It would at least be a syntax that's somewhat familiar to codes we already use.
User avatar
Heathen
Rank This Poster
Posts: 3988
Joined: Wed January 30, 2013 4:30 pm

Re: Bandcamp/Soundcloud

Post by Heathen »

cutuphalfdead wrote:What if it was set up similar to the URL code so it's something like [bandcamp=ALBUMID]track number[\bandcamp]?

It would at least be a syntax that's somewhat familiar to codes we already use.
I don't know how that would work when you're embedding the full set (meaning there's no track number). We'd have to be able to write a code that does "if there's a track number use the code for the track player otherwise use the code for the album player", and while this is easily doable in general I'm not certain the custom BBcode feature of the board allows it.

Or did you mean having this code as a separate BBcode for embedding tracks?
cutuphalfdead wrote:so glad i don't see signatures
User avatar
Norah
Poster of the Year
Posts: 37327
Joined: Tue January 01, 2013 2:04 pm
Location: September 2020 Poster of the Month

Re: Bandcamp/Soundcloud

Post by Norah »

Heathen wrote:
cutuphalfdead wrote:What if it was set up similar to the URL code so it's something like [bandcamp=ALBUMID]track number[\bandcamp]?

It would at least be a syntax that's somewhat familiar to codes we already use.
I don't know how that would work when you're embedding the full set (meaning there's no track number). We'd have to be able to write a code that does "if there's a track number use the code for the track player otherwise use the code for the album player", and while this is easily doable in general I'm not certain the custom BBcode feature of the board allows it.

Or did you mean having this code as a separate BBcode for embedding tracks?
The if/then statement regarding the track is ideal, but is it the end of the world having 2 codes?

[BCalbum]ID[/BCalbum]
[BCtrack=track#]albumid[/BCtrack]
User avatar
malice
post-structuralist
Posts: 4377
Joined: Tue January 01, 2013 2:22 pm
Location: faked by jorge

Re: Bandcamp/Soundcloud

Post by malice »

they're never gonna do any of this, btw.
Dev wrote:you're delusional. you are a sad sad person. fuck off. you're mentally ill beyond repair. i don't need your shit. dissapear.
Spoiler: show
people change. people stay the same. people are so often disappointing - random PM, person unnamed
User avatar
Norah
Poster of the Year
Posts: 37327
Joined: Tue January 01, 2013 2:04 pm
Location: September 2020 Poster of the Month

Re: Bandcamp/Soundcloud

Post by Norah »

Why not? They've added twitter and vine embed codes recently. Having the soundcloud one would have been very useful in the last pearl jam tourament and would be huge in any thread McParadigm makes in Release.
User avatar
malice
post-structuralist
Posts: 4377
Joined: Tue January 01, 2013 2:22 pm
Location: faked by jorge

Re: Bandcamp/Soundcloud

Post by malice »

cutuphalfdead wrote:Why not? They've added twitter and vine embed codes recently. Having the soundcloud one would have been very useful in the last pearl jam tourament and would be huge in any thread McParadigm makes in Release.
must you ruin every good shot i take at the mods around here with your confounded logic and reason, chud. jesus.
Dev wrote:you're delusional. you are a sad sad person. fuck off. you're mentally ill beyond repair. i don't need your shit. dissapear.
Spoiler: show
people change. people stay the same. people are so often disappointing - random PM, person unnamed
User avatar
E.H. Ruddock
Guys, I am not a moderator! I swear to God! Why does everyone think I'm a moderator?
Posts: 51787
Joined: Tue January 01, 2013 2:48 pm

Re: Bandcamp/Soundcloud

Post by E.H. Ruddock »

Just be patient.
Clouuuuds Rolll byyy...BANG BANG BANG BANG
Post Reply