Bandcamp embedd code anyone?

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Anti-Spam Guide
Post Reply
User avatar
deepndark
Registered User
Posts: 166
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Bandcamp embedd code anyone?

Post by deepndark » Sun Jan 18, 2015 12:48 pm

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 » Sun Jan 18, 2015 1:08 pm

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: 166
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: Bandcamp embedd code anyone?

Post by deepndark » Sun Jan 18, 2015 1:20 pm

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 » Sun Jan 18, 2015 1:22 pm

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: 166
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: Bandcamp embedd code anyone?

Post by deepndark » Sun Jan 18, 2015 1:36 pm

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 » Sun Jan 18, 2015 1:38 pm

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

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

Re: Bandcamp embedd code anyone?

Post by deepndark » Sun Jan 18, 2015 2:02 pm

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 » Sun Jan 18, 2015 2:03 pm

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: 166
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: Bandcamp embedd code anyone?

Post by deepndark » Sun Jan 18, 2015 2:29 pm

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 » Sun Jan 18, 2015 2:45 pm

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: 166
Joined: Thu Nov 03, 2011 12:48 pm
Location: Finland
Contact:

Re: Bandcamp embedd code anyone?

Post by deepndark » Sun Jan 18, 2015 3:29 pm

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

Post Reply

Return to “phpBB Discussion”

Who is online

Users browsing this forum: Google [Bot], hewmac06 and 22 guests