السلام عليكم ورحمه الله وبركاته
شرح طريقة تكبير عرض اليوتيوب في صندوق الموده للتحرير الأصدار الرابع
اذهب الى
التحكم بالإضافات البرمجية Plugin
ثم
المنتج plugin/Product : أدوات المودة المطورة للتحرير ــ الإصدار الرابع
سوف تجد اسفلها
الفيديو
جنبها كلمه تعديل .. اضغط عليها
وراح يطلع معاك مثل الصوره الموضحه
وستبدل كود code PHP الخاص بالإضافة بالكود code هذا
رمز PHP:
<code style="white-space:nowrap"> <code> if ((in_array(THIS_SCRIPT,array('showthread','editpost','newreply','newthread','showpost','private','announcement','member','blog','adv_index','usernote')))) {
$customstring = '$PASSIVEEMBED';
// YouTube
$passiveVid[] = array (
'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:[a-zA-Z]{1,4}\.)?youtube.com/watch\?v=(.{11}?)[^"]*(?:\"[^\<\>] *>)?([^\<\>]*)(?:</a>)?#',
'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/\'.$matches[1].\'&rel=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\'.$matches[1].\'&rel=0" type="application/x-shockwave-flash" wmode="transparent" width="640" height="385"></embed></object>\'; return "'.$customstring.'";',
'id' => 1
);
$passiveVid[] = array (
'string' => '#\[youtube\]([^\[\]]+)\&# 91;/youtube\]#',
'replacement' => 'return \'<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\'.$matches[1].\'&rel=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\'.$matches[1].\'&rel=0" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>\';',
'id' => 1
);
// Google
$passiveVid[] = array (
'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?video.google.(?:[A-Za-z\.]{2,5})/videoplay\?docid=([0-9\-]+)(?:[^"]+)?[^"]*(?:\"[^\ <\>]*>)?([^\<\>]*)(?:</a>)?#',
'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=\'.$matches[1].\'&h l=en" flashvars=""> </embed>\'; return "'.$customstring.'";',
'id' => 2
);
$passiveVid[] = array (
'string' => '#\[googlevideo\]([^\[\]]+ )\[/googlevideo\]#',
'replacement' => 'return \'<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=\'.$matches[1].\'&h l=en" flashvars=""> </embed>\';',
'id' => 2
);
// MySpace
$passiveVid[] = array (
'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?vids.myspace.com/index.cfm\?fuseaction=vids\.individual&videoid =(\d{8,15})(?:[^"]+)?[^"]*(?:\"	 1;^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=\'.$matches[1].\'&v=2&type=vi deo" type="application/x-shockwave-flash" width="430" height="346"></embed>\'; return "'.$customstring.'";',
'id' => 4
);
$passiveVid[] = array (
'string' => '#\[myspace\]([^\[\]]+)\&# 91;/myspace\]#',
'replacement' => 'return \'<embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=\'.$matches[1].\'&v=2&type=vi deo" type="application/x-shockwave-flash" width="430" height="346"></embed>\';',
'id' => 4
);
// MetaCafe
$passiveVid[] = array (
'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?metacafe.com/watch/([0-9]*\/[A-Za-z0-9_]*)(?:[^"]+)?[^"]*(?:\"[ ^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://www.metacafe.com/fplayer/\'.$matches[1].\'.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>\'; return "'.$customstring.'";',
'id' => 8
);
$passiveVid[] = array (
'string' => '#\[metacafe\]([^\[\]]+)\& #91;/metacafe\]#',
'replacement' => 'return \'<embed src="http://www.metacafe.com/fplayer/\'.$matches[1].\'.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>\';',
'id' => 8
);
// Yahoo
$passiveVid[] = array (
'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?video.yahoo.com/video/play\?vid=(\d+)&matchid=(\d+)(?:[^"]+) ?[^"]*(?:\"[^\<\>]*>)?([^\<\>& #93;*)(?:</a>)?#',
'replacement' => '$PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed src="http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf" flashvars="vid=\'.$matches[1].\'&id=\'.$ma tches[2].\'" type="application/x-shockwave-flash" width="425" height="350"></embed>\'; return "'.$customstring.'";',
'id' => 16
);
$passiveVid[] = array (
'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?video.yahoo.com/watch/(\d+)/(\d+)(?:[^"]+)?[^"]*(?:\"[^\<\ >]*>)?([^\<\>]*)(?:</a>)?#',
'replacement' => '$PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<object width="512" height="322"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.30" /><param name="allowFullScreen" value="true" /><param name="AllowScriptAccess" VALUE="always" /><param name="bgcolor" value="#000000" /><param name="flashVars" value="id=\'.$matches[1].\'&vid=\'.$matche s[2].\'&embed=1" /><embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.30" type="application/x-shockwave-flash" width="512" height="322" allowFullScreen="true" AllowScriptAccess="always" bgcolor="#000000" flashVars="id=\'.$matches[1].\'&vid=\'.$ma tches[2].\'&embed=1" ></embed></object>\'; return "'.$customstring.'";',
'id' => 16
);
}
</code> </code>
والنتيجه
بالتوفيق