MyBB Community Forums

Full Version: Youtube Playlist Embedding
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Seeing as how youtube change how stuff embeds every so often and the fact the last playlist embed I found was not working and was trailing code, I fixed this up.


Regex is not my strong suit so this can probably be done a lot more effectively, but as-is, it works.

Regular Expression

\[ytplaylist\](https?:\/\/(.*?)?youtube\.com\/playlist\?list\=([a-z0-9\-\/]*))\[/ytplaylist\]

Replacement

<iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries?list=$3" frameborder="0" allowfullscreen></iframe>


Example of appearance
[Image: seg3wG7.png]
Hi p00lz thanks for the code

The PlayList Embedding  it  was looking for but it does not work...  Confused

in my test forum not work, can see the test thread

Note: In That Forum Test has the correct fix of YouTube Video Embedded 

thanks in advance for the support