Jump to content
IGNORED

Support for new Bandcamp players


Recommended Posts

  • 3 months later...

I'm a moron. I can't figure out how to do this.

 

This is the embed code from bandcamp:

 

<iframe style="border: 0; width: 100%; height: 42px;" src="http://bandcamp.com/EmbeddedPlayer/album=3331732813/size=small/bgcol=ffffff/linkcol=0687f5/t=1/transparent=true/" seamless><a href="http://rvng.bandcamp.com/album/tactile-galactics-4">Tactile Galactics by Secret Circuit</a></iframe>

 

Where / how do i paste this?

Yeah it's a bit of a pain but you're nearly there. The URL you'd paste here would be

 

http://bandcamp.com/EmbeddedPlayer/album=3331732813/size=medium/
(I got that number from the bit in your link that says src="......)

 

Which makes -

 

http://bandcamp.com/EmbeddedPlayer/album=3331732813/size=medium/

I haven't eaten a Wagon Wheel since 07/11/07... ilovecubus.co.uk - 25ml of mp3 taken twice daily.

Thanks MCBPete

 

It looks like I can only embed the album which defaults to the first track. What if I want to embed a certain track from the album? For example, I want to post Sync or Swim (track 4). Bandcamp gives album=3331732813 for that track too and when I paste the URL (obviously) I get just an embedded player for the first track of the album.

  On 10/24/2013 at 3:24 PM, coolandfrank said:

Thanks MCBPete

 

It looks like I can only embed the album which defaults to the first track. What if I want to embed a certain track from the album? For example, I want to post Sync or Swim (track 4). Bandcamp gives album=3331732813 for that track too and when I paste the URL (obviously) I get just an embedded player for the first track of the album.

 

You need to add /t=n/ (where n - track number) to what you already have. My example

http://bandcamp.com/EmbeddedPlayer/album=2112615858/size=medium/t=3/

http://bandcamp.com/EmbeddedPlayer/album=2112615858/size=medium/t=3/

  • 2 months later...
Guest deferlow

Test

<iframe style="border: 0; width: 100%; height: 142px;" src="https://bandcamp.com/EmbeddedPlayer/album=3595070575/size=large/bgcol=ffffff/linkcol=0687f5/tracklist=false/artwork=small/transparent=true/" seamless><a href="http://deferlow.bandcamp.com/album/mental-health-ep">Mental Health EP by Deferlow</a></iframe>
Edited by deferlow
  • 3 years later...

Yeah I think things got broken a while back, tried embedding something a few weeks ago but just got a blank square.

 

In the super big forum update I've got the feeling it'll be much easier to embed without my funky code workaround above

I haven't eaten a Wagon Wheel since 07/11/07... ilovecubus.co.uk - 25ml of mp3 taken twice daily.

  On 2/22/2017 at 9:21 AM, mcbpete said:

Yeah I think things got broken a while back, tried embedding something a few weeks ago but just got a blank square.

 

In the super big forum update I've got the feeling it'll be much easier to embed without my funky code workaround above

I see. This never-ending forum update thing is taking on Duke Nukem forever proportions :emotawesomepm9: , just release the fucker already and tweak on the go.  

I imagine with a forum database this huuuuuuuuuuuuuugggeeee Joyrex is just making 100% sure the whole thing is stable before making the switch to ensure the whole place doesn't come crashing down. Database upgrades/migrations are (well for an inexperienced person like me) like playing a game of jenga on top of a very high scaffolding with a strong breeze ...

I haven't eaten a Wagon Wheel since 07/11/07... ilovecubus.co.uk - 25ml of mp3 taken twice daily.

The thing slowing down the forum upgrade is unfortunately me - I have the dev environment set up, but there's a configuration error I haven't had time to sort out yet. I really want to get the forum upgraded so everyone can complain about how much better this version was, etc. :dadjoke:

 

I think Bandcamp might have changed their player; I'll see about fixing that today if possible.

WATMM-Records-Signature-Banner-500x80.jpg

 

Follow WATMM on Twitter: @WATMMOfficial

  On 2/22/2017 at 5:04 PM, Joyrex said:

The thing slowing down the forum upgrade is unfortunately me - I have the dev environment set up, but there's a configuration error I haven't had time to sort out yet. I really want to get the forum upgraded so everyone can complain about how much better this version was, etc. :dadjoke:

lolinevitable 

Okay, the long and the short of it is this:

 

Because Bandcamp does not expose the album/track ID (not the name) in the URL, there is no easy way to have a paste the URL into the forum and have it translate to an embedded player.

 

There is an addon that accomplishes this with a PHP script (and still requires you to copy the WordPress embed BBCode versus just a URL), and it's for this version of the forum - since we will be updating soon, the new forum uses oEmbed for stuff like this, but Bandcamp currently does not support the oEmbed standard. There's really no point installing an addon we'll only use for a short time and then it breaks again.

 

So, unless an enterprising PHP developer can write an addon for the new forum software (that accomplishes what the PHP script did for this version, but using the updated API for the new forum software), Bandcamp embeds will probably not work well.

WATMM-Records-Signature-Banner-500x80.jpg

 

Follow WATMM on Twitter: @WATMMOfficial

There's this script for 3.4+, so don't know if it'll work for 4.x: https://github.com/sherblot/ipb-bandcamp-bbcode

 

EDIT: Just noticed the Wordpress bit, so imagine this was the script you were talking out....

I haven't eaten a Wagon Wheel since 07/11/07... ilovecubus.co.uk - 25ml of mp3 taken twice daily.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   1 Member

×
×