vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - Spotify BBCode (https://vborg.vbsupport.ru/showthread.php?t=295354)

deadlySniper 02-20-2013 11:00 PM

Spotify BBCode
 
1 Attachment(s)
This BBCode was inspired from here (This is also 3.8.x)

This BBCode will allow you to add a small player to a thread or post. This can link to individual tracks, albums or playlists.

Title: Spotify
BBCode Tag Name: spotify
Replacement:
Code:

<iframe src="https://embed.spotify.com/?uri=spotify:{param}" width="300" height="380" frameborder="0" allowtransparency="true"></iframe>
Example: [spotify]track:6VvLaPlFhhSNHKk4exLUx8[/spotify]
Description: Display a Spotify track, album or playlist with button
Use Option: No
Image: http://aireonetoronto.com/wp-content...tify-16x16.png (or save this image and upload and point to it)
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code : Yes
Disable Word Wrapping Within This BB Code: Yes
Disable Automatic Link Parsing Within This BB Code: Yes

NOTE: You can edit the replacement to be
Code:

<iframe src="https://embed.spotify.com/?uri={param}" width="300" height="380" frameborder="0" allowtransparency="true"></iframe>
Remove the spotify: before {param} and you can just paste in the URI spotify gives you. But also note that you will have to select continue because of the error it will throw up.

https://vborg.vbsupport.ru/external/2013/02/16.png

deadlySniper 02-21-2013 04:44 AM

Forgot to add

How to get spotify URI.
Right Click on track, album or playlist > Copy Spotify URI

madness85 03-30-2013 08:45 AM

Quote:

Originally Posted by deadlySniper (Post 2405532)
Forgot to add

How to get spotify URI.
Right Click on track, album or playlist > Copy Spotify URI

Nice works great. Would be amazing if u didn't need to be logged in to spotify to play :)

Natea 02-20-2015 02:57 AM

Thanks, works great!

Cem01 12-16-2016 10:42 AM

Works great on vB 4.2.3

Thanks for bbcode :)


All times are GMT. The time now is 12:01 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00958 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete