How to use [youtube] if you're Picklepower and bad at life

  • 🐕 I am attempting to get the site runnning as fast as possible. If you are experiencing slow page load times, please report it.
Status
Not open for further replies.

Null

Ooperator
kiwifarms.net
Joined
Nov 14, 2012
The youtube and youtube player tags require the ID of the video. Not the URL, not everything after the /, just what "v" equals.

When you submit a URL sometimes the website will display different information based on the value of certain values passed through the URL bar. These are called $_GET arguments. The $_GET argument for a youtube video is v.

Lets look at this URL:
http://www.youtube.com/watch?v=ZsBwfWLXu5k&list=PLB72A6607F9CC1653&index=1

There are several parts.
http:// is the protocol.
www.youtube.com is the sub-domain, domain name, and top-level domain.
/watch is the requested webpage.

? indicates the start of variable argument list.
& indicates the start of another argument.

The parameters of this URL are:
v = ZsBwfWLXu5k
list = PLB72A6607F9CC1653
index = 1


This tells youtube we are watching a video in a playlist and the playlist is playing the first video (index=1).

None of that matters. Pasting all of that into [youtube] causes it to break. All we want it v.

?v=VIDEOID
?v=VIDEOID&someshit=somecrap

The information we want is VIDEOID, nothing else. In the URL I gave, the video ID is ZsBwfWLXu5k.

[youtube]ZsBwfWLXu5k[/youtube]
 
Re: How to use [youtube] if you're Picklepower and bad at li

Flooding of videos in this thread in 5... 4... 3... 2... 1...
 
Re: How to use [youtube] if you're Picklepower and bad at li

[youtube]najZjeluxG0[/youtube]
 
Status
Not open for further replies.
Back