Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Youtube Playlist Embedding
#1
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]
Reply
#2
Bug 
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)