YouTube Playlist MyCode
#1
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: http://www.rockbandhelp.com/forum/Thread...anadianosh (second post contains three playlists, all being mine).

Title: YouTube Playlist MyCode

Description: Embed Playlists from YouTube via. MyCode.

Regular Expression:
\[yplaylist\](.*?)\[/yplaylist\]

Replacement:
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/p/$1?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/$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.
Reply
#2
This looks cool, I'm going to test it out on my forums. Thanks.
RedHat Certified Systems Administrator
Reply
#3
Thank you very much.
Reply
#4
(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.
Reply
#5
thanks you
Reply
#6
Thanks again acknowledged.
Reply
#7
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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)