MyBB Community Forums
YouTube Playlist MyCode - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: MyCodes (https://community.mybb.com/forum-117.html)
+--- Thread: YouTube Playlist MyCode (/thread-80961.html)



YouTube Playlist MyCode - -AW- - 2010-10-25

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-el-canadiano-s-youtube-located-at-elcanadianosh (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.


RE: YouTube Playlist MyCode - spork985 - 2010-12-07

This looks cool, I'm going to test it out on my forums. Thanks.


RE: YouTube Playlist MyCode - ccfreedom36 - 2011-01-10

Thank you very much.



RE: YouTube Playlist MyCode - -AW- - 2011-01-11

(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.


RE: YouTube Playlist MyCode - mtoy - 2011-01-12

thanks you


RE: YouTube Playlist MyCode - ccfreedom36 - 2011-01-14

Thanks again acknowledged.



RE: YouTube Playlist MyCode - matooba - 2011-03-28

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?