Bandcamp embedd code anyone?

Get help developing custom BBCodes or request one.
Post Reply
User avatar
deepndark
Registered User
Posts: 373
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Bandcamp embedd code anyone?

Post by deepndark »

I have added a youtube and soundcloud embedd BBCodes successfully. Some people requested to have bandcamp ones also. I googled and found this: http://fourtheye.net/f/viewtopic.php?f=32&t=793

Anyway, does someone know how to make it work?
Could you make the right & exact BBCode usage and HTML replacement for me?
Maybe the link I posted helps you a bit too.

Thanks!

User avatar
advocatus
Registered User
Posts: 290
Joined: Tue Aug 12, 2014 11:58 am
Location: Ontario, Canada.
Contact:

Re: Bandcamp embedd code anyone?

Post by advocatus »

There's way too much variation in the URL to be able to make an effective BBCode tag for embedding. Just from glancing at it, the subdomain changes depending on the band and the URL is song specific. It's still doable, but the tag will need to be structured in a way that isn't overly user friendly.

Oops. I wasn't paying attention to the embed URL and got it to work but not embed. Yeah, the embed URL has too much information to be able to make the tag work correctly. Plus, it requires the album ID which doesn't seem to be readily apparent without going through the embed process anyways. If your users are willing to do that, then this should work:

BBCode

Code: Select all

[band={SIMPLETEXT1},{SIMPLETEXT2},{SIMPLETEXT3}][/band]
HTML Replacement

Code: Select all

<iframe style="border: 0; width: 100%; height: 120px;" src="https://bandcamp.com/EmbeddedPlayer/album={SIMPLETEXT1}/size=large/bgcol=ffffff/linkcol=0687f5/tracklist=false/artwork=small/transparent=true/" seamless><a href="http://{SIMPLETEXT2}.bandcamp.com/album/{SIMPLETEXT3}"></a></iframe>
Help Line

Code: Select all

[band=AlbumID,Label,Song] where Album ID can be found in the embed link information, label is all one word and the song name has dashes for spaces. Do not put any text between the tags.
Note: This will not have any text for the description.

Alright, I got it to work.

Code: Select all

[band=1884856776,ynrproductions,in-morocco][/band]
Becomes:

Image
Last edited by advocatus on Sun Jan 18, 2015 1:20 pm, edited 1 time in total.
Hi, I'm advocatus and I own www.forumgames.in.

User avatar
deepndark
Registered User
Posts: 373
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: Bandcamp embedd code anyone?

Post by deepndark »

What part is the label? Could you make a demo of this bandcamp song? http://anushka.bandcamp.com/album/kisses

User avatar
advocatus
Registered User
Posts: 290
Joined: Tue Aug 12, 2014 11:58 am
Location: Ontario, Canada.
Contact:

Re: Bandcamp embedd code anyone?

Post by advocatus »

deepndark wrote:What part is the label? Could you make a demo of this bandcamp song? http://anushka.bandcamp.com/album/kisses
The label would be anushka in the URL.
Hi, I'm advocatus and I own www.forumgames.in.

User avatar
deepndark
Registered User
Posts: 373
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: Bandcamp embedd code anyone?

Post by deepndark »

Got it work on my site, thanks! One thing, could the tags be instead [bandcamp][/bancamp]? As people would recognise what it is then.

User avatar
advocatus
Registered User
Posts: 290
Joined: Tue Aug 12, 2014 11:58 am
Location: Ontario, Canada.
Contact:

Re: Bandcamp embedd code anyone?

Post by advocatus »

Yeah, just change it in the BBCode textbox.
Hi, I'm advocatus and I own www.forumgames.in.

User avatar
deepndark
Registered User
Posts: 373
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: Bandcamp embedd code anyone?

Post by deepndark »

advocatus wrote:Yeah, just change it in the BBCode textbox.
Done! Thanks a million! :D

User avatar
advocatus
Registered User
Posts: 290
Joined: Tue Aug 12, 2014 11:58 am
Location: Ontario, Canada.
Contact:

Re: Bandcamp embedd code anyone?

Post by advocatus »

No sweat. I just assumed you wanted that particular widget for embedding. There's two other ones if you want those also, or instead.
Hi, I'm advocatus and I own www.forumgames.in.

User avatar
deepndark
Registered User
Posts: 373
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: Bandcamp embedd code anyone?

Post by deepndark »

advocatus wrote:No sweat. I just assumed you wanted that particular widget for embedding. There's two other ones if you want those also, or instead.
Two other what? I run a music software forum for a program called Reason. I just wanted to let people embedd their bandcamp music to the posts. I have youtube and soundcloud embeddings already added.
My site: www.reasonheads.net/forum

User avatar
advocatus
Registered User
Posts: 290
Joined: Tue Aug 12, 2014 11:58 am
Location: Ontario, Canada.
Contact:

Re: Bandcamp embedd code anyone?

Post by advocatus »

BBCode

Code: Select all

[smallbandcamp={SIMPLETEXT1},{SIMPLETEXT2},{SIMPLETEXT3}][/smallbandcamp]
HTML Replacement

Code: Select all

<iframe style="border: 0; width: 100%; height: 42px;" src="http://bandcamp.com/EmbeddedPlayer/album={SIMPLETEXT1}/size=small/bgcol=ffffff/linkcol=0687f5/transparent=true/" seamless><a href="http://{SIMPLETEXT2}.bandcamp.com/album/{SIMPLETEXT3}"></a></iframe>

Code: Select all

[smallbandcamp=719812459,anushka,kisses][/smallbandcamp]
Becomes:

Image

and:

BBCode

Code: Select all

[bigbandcamp={SIMPLETEXT1},{SIMPLETEXT2},{SIMPLETEXT3}][/bigbandcamp]
HTML Replacement

Code: Select all

<iframe style="border: 0; width: 350px; height: 470px;" src="http://bandcamp.com/EmbeddedPlayer/album={SIMPLETEXT1}/size=large/bgcol=ffffff/linkcol=0687f5/tracklist=false/transparent=true/" seamless><a href="http://{SIMPLETEXT2}.bandcamp.com/album/{SIMPLETEXT3}"></a></iframe>

Code: Select all

[bigbandcamp=719812459,anushka,kisses][/bigbandcamp]
Becomes:

Image
Hi, I'm advocatus and I own www.forumgames.in.

User avatar
deepndark
Registered User
Posts: 373
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: Bandcamp embedd code anyone?

Post by deepndark »

I added all 3 options, cheers! ;-) 8-)

PVoid
Registered User
Posts: 1
Joined: Fri Jan 31, 2020 9:38 am

Re: Bandcamp embedd code anyone?

Post by PVoid »

Hello

Sorry for the newbie question but I'd need to add this feature on my brand new phpbb forum.
How can I do this ?

Thanks
Phil

Post Reply

Return to “Custom BBCode Development and Requests”