Page 1 of 1

Spotify BBcode

Posted: Tue Feb 26, 2013 12:06 pm
by TheDani
Need help with this.

BBCode usage

Code: Select all

[spotify]{SIMPLETEXT}[/spotify]
HTML replacement

Code: Select all

<iframe src="https://embed.spotify.com/?uri={SIMPLETEXT}" width="380" height="80" frameborder="0" allowtransparency="true"></iframe>
Help line

Code: Select all

[spotify]Spotify URI[/spotify]
Examples

Code: Select all

[spotify]spotify:album:2XQwZUu0MM9ECgwHbcc8qR[/spotify]

[spotify]spotify:track:5v3TSHYm8BzbON2u6QBEG7[/spotify]

Problem: the bbcode is simply not parsed!

Re: Spotify BBcode

Posted: Tue Feb 26, 2013 3:46 pm
by Brf
ACP wrote:{SIMPLETEXT} Characters from the latin alphabet (A-Z), numbers, spaces, commas, dots, minus, plus, hyphen and underscore
It does not say "colons"

Re: Spotify BBcode

Posted: Tue Feb 26, 2013 4:07 pm
by TheDani
I tried {TEXT} which gave me a XSS warning and no diff.

Re: Spotify BBcode

Posted: Tue Feb 26, 2013 4:10 pm
by Lumpy Burgertushie
the only way I can figure it out is to use two different bbcodes. one for track and one for album.

track:


[track]{SIMPLETEXT}[/track]

html replacement:

Code: Select all

<iframe src="https://embed.spotify.com/?uri=spotify:track:{SIMPLETEXT}" width="380" height="80" frameborder="0" allowtransparency="true"></iframe>
do the same for album but replace track with album.


robert

Re: Spotify BBcode

Posted: Tue Feb 26, 2013 4:17 pm
by TheDani
Yeah that could work. No ideal solution as it will require me to have 3 different bbcodes, on for tracks, one for albums and one for playlists.

[spotify_album]...[/spotify_album]
[spotify_track]...[/spotify_track]
[spotify_playlist]...[/spotify_playlist]

instead of just

[spotify]...[/spotify]

Re: Spotify BBcode

Posted: Tue Feb 26, 2013 4:25 pm
by Lumpy Burgertushie
TheDani wrote:Yeah that could work. No ideal solution as it will require me to have 3 different bbcodes, on for tracks, one for albums and one for playlists.

[spotify_album]...[/spotify_album]
[spotify_track]...[/spotify_track]
[spotify_playlist]...[/spotify_playlist]

instead of just

[spotify]...[/spotify]
the problem is the colon in the address. that is not even valid for urls anyway, but it works.

there is no bbcode varible for a colon.

you could make it all in one, however, to use it you would have to copy and paste two different parts of the url into your bbcode brackets and that would be very confusing for everyone.

separate buttons for each would be the best.


robert

Re: Spotify BBcode

Posted: Tue Feb 26, 2013 4:55 pm
by TheDani
Lumpy Burgertushie wrote:the problem is the colon in the address. that is not even valid for urls anyway, but it works.
What do you mean by that? All urls have a colon.

https://www.phpbb.com/

But ok, Ill consider making three buttons then...

Re: Spotify BBcode

Posted: Tue Feb 26, 2013 5:12 pm
by Lumpy Burgertushie
TheDani wrote:
Lumpy Burgertushie wrote:the problem is the colon in the address. that is not even valid for urls anyway, but it works.
What do you mean by that? All urls have a colon.

https://www.phpbb.com/

But ok, Ill consider making three buttons then...
well, technically you are correct, I meant in the actual file/folder name section.

spotify:album: etc.

that is not valid as far as I know. certain characters are not allowed

robert

Re: Spotify BBcode

Posted: Wed Feb 27, 2013 3:55 pm
by TheDani
How do I embed a playlist? Say I want to embed this playlist: http://open.spotify.com/user/nme.com/pl ... kIILZYkPYL

I tried:
BBCode usage:

Code: Select all

[spotify_plist]{SIMPLETEXT1} {SIMPLETEXT2}[/spotify_plist]
HTML replacement

Code: Select all

<iframe src="https://embed.spotify.com/?uri=spotify:user:{SIMPLETEXT1}:playlist:{SIMPLETEXT2}" width="300" height="380" frameborder="0" allowtransparency="true"></iframe>
ยจ


EDIT: updated and solved.

Re: Spotify BBcode

Posted: Sat Sep 08, 2018 12:49 am
by millipede
Can this still be done?
Oh, and since this post has a nice red check-mark, will it still get noticed that I responded?

I originally planned on putting some playlists on a /tunes page on my site. Then I considered some sticky topics in the forum instead so as to keep people engaged with the forum more.
So, I just went and tried and of course, it doesn't work... so I started searching, and searching, and this was one of the topics I found. Tried what was posted at the end and, trying to submit it I get a 403 forbidden page.
Was hoping to share music on my site, and hoping to do it more on the forum...
Will it work on the forum? Do I need to do it just on a regular page instead?

EDIT: Well, weird. I figured I couldn't get it to work so, while making a post, I just pasted the url of the playlist so people could go off site to play it if they want. The player popped up... in the forum. A little confused how that happened... just posted what I thought was a direct link and, there's the playlist in the post.

If that will work again for another list, problem solved. This isn't a danger though right? or is it? Should that have not happened?

Re: Spotify BBcode

Posted: Sat Sep 08, 2018 8:16 am
by Mick
What extensions have you got installed? You should start your own topic (you can link back to this one if you wish) as this one is marked solved as you mentioned.