Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Auto Resizing Youtube Video Widths
shootingtars
New
This plugin works on mobile use but it doesnt auto resize the video. The video just extends out the mobile layout. How can I fix this to autoresize to fit to the screen? Just like how images are resized when in mobile use.
0
Comments
/** * ViewYoutube * @param Array $Matches * @return String */ protected function ViewYoutube($Matches) { if($this->IsValueAttribute($this->Comment, $Matches[0])) { return $Matches[0]; } else { return "<object width=\"425\" height=\"344\"> <param name=\"movie\" value=\"http://www.youtube." . $Matches[5] . "/v/" . $Matches[7] . "&fs=1&rel=0\"></param> <param name=\"allowFullScreen\" value=\"true\"> </param><param name=\"allowscriptaccess\" value=\"always\"></param> <embed src=\"http://www.youtube." . $Matches[5] . "/v/" . $Matches[7] . "&hl=fs=1&rel=0\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"425\" height=\"344\"></embed> </object>"; } }
I think this is the code where I can change this. But Im not sure how to to change the widths and height so it can autoresize to fit to the mobile page.
@shootingtars please try the ControllSize plugin
http://vanillaforums.org/addon/controllsize-plugin
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
This is what I needed ! Works perfectly!! THANK YOU !!
you are very Welcome !
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌