Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
388 views
in Plugins by

I want the embed script as this = <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/3DKDaSd-4nY?rel=0" frameborder="0" allowfullscreen></iframe>

 

Not this <iframe width="560" height="315" src="https://www.youtube.com/embed/3DKDaSd-4nY" frameborder="0" allowfullscreen></iframe>

 

This is the code in the plugin 

$types = array(
                'youtube'=>array(
                    array(
                        'https{0,1}:\/\/w{0,3}\.*youtube\.com\/watch\?\S*v=([A-Za-z0-9_-]+)[^< ]*',
                        '<iframe width="'.$w.'" height="'.$h.'" src="http://www.youtube.com/embed/$1?wmode=transparent" frameborder="0" allowfullscreen></iframe>'
                    ),
                    array(
                        'https{0,1}:\/\/w{0,3}\.*youtu\.be\/([A-Za-z0-9_-]+)[^< ]*',
                        '<iframe width="'.$w.'" height="'.$h.'" src="http://www.youtube.com/embed/$1?wmode=transparent" frameborder="0" allowfullscreen></iframe>'
                    )
                ),

by
The rel=0 has to be added to the end of all youtube videos.

Please log in or register to answer this question.

...