MyBB Community Forums

Full Version: YouTube Playlist MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys,

YouTube Video embed by default is nice, but let's take it a step further. This MyCode will allow one to not embed a video, but an entire playlist to your MyBB forum. I basically got this done by looking at the embed code and taking it from there.

Demo: (second post contains three playlists, all being mine).

Title: YouTube Playlist MyCode

Description: Embed Playlists from YouTube via. MyCode.

Regular Expression:

<object width="480" height="385"><param name="movie" value="$1?hl=en_US&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="$1?hl=en_US&fs=1" type="application/x-shockwave-flash" width="480" height="385" allowscriptaccess="always" allowfullscreen="true"></embed></object>

Leave the rest as default. Questions, comments, feedback, and whatnot appreciated.
This looks cool, I'm going to test it out on my forums. Thanks.
Thank you very much.
(2011-01-10, 07:38 AM)ccfreedom36 Wrote: [ -> ]Thank you very much.

Any time.

You can also replace yplaylist if you don't like that.
thanks you
Thanks again acknowledged.
I'm getting double videos with trailing code text beside video.
this is next to first video: ( ?hl=en_US&fs=1"> )
this is next to second video: ( ?hl=en_US&fs=1" type="application/x-shockwave-flash" width="480" height="385" allowscriptaccess="always" allowfullscreen="true"> )

Any clues?