Spotify BBCode plus Youtube Fix

Users who are viewing this thread

Jordan

I'm useless. I know.
Administrator
Messages
899
Reaction score
427
Tokenz
1,027.05z
Spotify BB Code
There was an addon I made for XenForo back at the beginning of December. It was a Spotify BB code:
I have now installed this addon here at Off Topicz. It is part of the "Media" code.
This can be helpful if you are sharing music in the "What are you listening to" thread
http://offtopicz.net/threads/what-are-you-listening-to-part-ii.71435/

There are two ways a user can link to the Spotify song.

1) Using the BB code:
Code:
[media=spotify][/media]
Inside the Media tag will be the track number such as:
Code:
[media=spotify]spotify:track:4bz7uB4edifWKJXSDxwHcs[/media]

2) Link to the content itself:
Code:
https://embed.spotify.com/?uri=spotify:track:4bz7uB4edifWKJXSDxwHcs

using both the Link and the bbcode will generate it.

Alternately, user are able to use the media embed link on the text editor bar:
b2b0.png


Users can get the URL's by right clicking any song, album, or playlist in spotify:
zXbdyKH.png

YouTube Fix:
After browsing that "What are you listening to" thread I had discorvered there was a little bug with the youtube media code. It would not link videos with links that where generated from right clicking the video. This has been fixed.

The supported URL's from youtube are as follows:
Code:
youtube.com/watch?v={$id}
youtube.com/v/{$id}
youtu.be/{$id}
youtube.com/*/u/*/{$id}
youtube.com/watch?feature=player_embedded&v={$id}
youtube.com/watch?feature=player_detailpage&v={$id}
This is with http://, https:// or www or without www don't matter.
 
Last edited by a moderator:
  • 2
    Replies
  • 1K
    Views
  • 0
    Participant count
    Participants list

Jordan

I'm useless. I know.
Administrator
Messages
899
Reaction score
427
Tokenz
1,027.05z
78,865Threads
2,185,201Messages
4,953Members
Back
Top