Latest topics
» Widget : Recent Members
by WinaTickets Today at 03:11

» How To Install the Code Snippet Button
by SLGray Yesterday at 20:56

» Select Button
by SLGray Yesterday at 20:25

» FM Themes
by SLGray Yesterday at 16:48

» User - Made Creations
by SLGray Yesterday at 16:48

» The Football Forums
by Mati Yesterday at 15:22

» [BUG] Avatar doesn't resize when reading the profile
by Samantha NL Yesterday at 12:33

» Search Bar Options
by Samantha NL Yesterday at 11:38

» Chit Chat Thread
by Jazeon Yesterday at 05:42

» Christmas logo
by Teo! Yesterday at 03:56

» SyncEditor
by keko_ferkeko Yesterday at 00:31

» Private message bg color
by Mr.Alam Thu 08 Dec 2016, 22:54

» Multi-step Login Form
by Samantha NL Thu 08 Dec 2016, 12:54

» Member of the Month
by Samantha NL Thu 08 Dec 2016, 12:38

» Forumactif Edge - Dutch Translation
by Samantha NL Thu 08 Dec 2016, 10:49

Recent Tutorials
Who is online?
In total there are 8 users online :: 1 Registered, 0 Hidden and 7 Guests :: 1 Bot

WinaTickets

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

[TUTORIAL] Adding a YouTube Playlist to your topic / post

View previous topic View next topic Go down

Guest
Guest
View all awards

PostGuest on Sat 16 Apr 2016, 13:38

Embedding a YT playlist on your site:
Add the following code to your post:
Code:
<center><object width="700" height="450"><param name="movie" value="http://www.youtube.com/p/4BD0B3B989298176?hl=en_US&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/p/D213ECF2E68683D2?hl=en_US&fs=1" type="application/x-shockwave-flash" width="700" height="450" allowscriptaccess="always" allowfullscreen="true"></embed></object></center>

OK, this one works fine Smile It just needs replacing this bit http://www.youtube.com/p/D213ECF2E68683D2 with your own playlist ID (marked in bold). Width and height can be adjusted to your needs.

Note: v = video / p = playlist

Adding autoplay:
Replace src="http://www.youtube.com/p/D213ECF2E68683D2?hl=en_US&fs=1" with src="http://www.youtube.com/p/D213ECF2E68683D2?hl=en_US&fs=1&autoplay=1"

Hide controls:
Replace src="http://www.youtube.com/p/D213ECF2E68683D2?hl=en_US&fs=1" with src="http://www.youtube.com/p/D213ECF2E68683D2?hl=en_US&fs=1&controls=0"

Want both?
Replace src="http://www.youtube.com/p/D213ECF2E68683D2?hl=en_US&fs=1" with src="http://www.youtube.com/p/D213ECF2E68683D2?hl=en_US&fs=1&autoplay=1&controls=0"

Geek sidenote: HTML must be ON on your site Wink


HUGE TIP: Create your own YT playlists, then create your own (hidden) widgets to have some variety in your background music added to your forums!


Want to see it in action? Check out http://fcnl.actieforum.com/t34p150-muziek-topic#2667 if you're registered or hit the preview button in the "Muziek Topic" on http://www.friendcodes.nl :

Btw, found a nice resource on those YouTube APIs: https://developers.google.com/youtube/player_parameters#Selecting_Content_to_Play

Samantha.

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum