افتح ملف : includes/pbboardCodeparse.class.php
وابحث في السطر 410 عن :
CODE
return "<span id='ytplayer'><object id='ytplayer' width='560' height='315'><param name='movie' value='$linky'></param><param name='allowFullScreen' value='true'></param><param id='ytplayer' name='allowscriptaccess' value='always'></param><embed id='ytplayer' src='$linky' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' allownetworking='internal' width='560' height='315'></embed></object></span>";
واستبدله بهذا الكود :
CODE
if (strstr($PowerBB->_SERVER['HTTP_USER_AGENT'],"Opera"))
{
$linky = str_replace("youtube.com/v/", "youtube.com/embed/", $linky);
}
if (strstr($linky,"https://www.youtube.com/"))
{
return "<span id='ytplayer'><object id='ytplayer' width='560' height='315'><param name='movie' value='$linky'></param><param name='allowFullScreen' value='true'></param><param id='ytplayer' name='allowscriptaccess' value='always'></param><embed id='ytplayer' src='$linky' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' allownetworking='internal' width='560' height='315'></embed></object></span>";
}
else
{
return $linky;
}
واحفظ الملف ..
أنتهى