طھظƒط¨ظٹط± ط¹ط±ط¶ ط§ظ„ظٹظˆطھظٹظˆط¨ ظپظٹ طµظ†ط¯ظˆظ‚ ط§ظ„ظ…ظˆط¯ظ‡ ظ„ظ„طھط*ط±ظٹط± ط§ظ„ط£طµط¯ط§ط± ط§ظ„ط±ط§ط¨ط¹



السلام عليكم ورحمه الله وبركاته

شرح طريقة تكبير عرض اليوتيوب في صندوق الموده للتحرير الأصدار الرابع

اذهب الى


التحكم بالإضافات البرمجية 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&#91;&#93; = array (
'string' => '#(?:<a&#91;^\<\>&#93;+href=\")?(?:http://)?(?:&#91;a-zA-Z&#93;{1,4}\.)?youtube.com/watch\?v=(.{11}?)&#91;^"&#93;*(?:\"&#91;^\<\>&#93; *>)?(&#91;^\<\>&#93;*)(?:</a>)?#',
'replacement' => '$PASSIVETITLE = $matches&#91;2&#93;; $PASSIVEEMBED = \'<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/\'.$matches&#91;1&#93;.\'&rel=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\'.$matches&#91;1&#93;.\'&rel=0" type="application/x-shockwave-flash" wmode="transparent" width="640" height="385"></embed></object>\'; return "'.$customstring.'";',
'id' => 1
);
$passiveVid&#91;&#93; = array (
'string' => '#\&#91;youtube\&#93;(&#91;^\&#91;\&#93;&#93;+)\&# 91;/youtube\&#93;#',
'replacement' => 'return \'<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\'.$matches&#91;1&#93;.\'&rel=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\'.$matches&#91;1&#93;.\'&rel=0" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>\';',
'id' => 1
);
// Google
$passiveVid&#91;&#93; = array (
'string' => '#(?:<a&#91;^\<\>&#93;+href=\")?(?:http://)?video.google.(?:&#91;A-Za-z\.&#93;{2,5})/videoplay\?docid=(&#91;0-9\-&#93;+)(?:&#91;^"&#93;+)?&#91;^"&#93;*(?:\"&#91;^\ <\>&#93;*>)?(&#91;^\<\>&#93;*)(?:</a>)?#',
'replacement' => '$PASSIVETITLE = $matches&#91;2&#93;; $PASSIVEEMBED = \'<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=\'.$matches&#91;1&#93;.\'&h l=en" flashvars=""> </embed>\'; return "'.$customstring.'";',
'id' => 2
);
$passiveVid&#91;&#93; = array (
'string' => '#\&#91;googlevideo\&#93;(&#91;^\&#91;\&#93;&#93;+ )\&#91;/googlevideo\&#93;#',
'replacement' => 'return \'<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=\'.$matches&#91;1&#93;.\'&h l=en" flashvars=""> </embed>\';',
'id' => 2
);
// MySpace
$passiveVid&#91;&#93; = array (
'string' => '#(?:<a&#91;^\<\>&#93;+href=\")?(?:http://)?vids.myspace.com/index.cfm\?fuseaction=vids\.individual&amp;videoid =(\d{8,15})(?:&#91;^"&#93;+)?&#91;^"&#93;*(?:\"&#9 1;^\<\>&#93;*>)?(&#91;^\<\>&#93;*)(?:</a>)?#',
'replacement' => '$PASSIVETITLE = $matches&#91;2&#93;; $PASSIVEEMBED = \'<embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=\'.$matches&#91;1&#93;.\'&v=2&type=vi deo" type="application/x-shockwave-flash" width="430" height="346"></embed>\'; return "'.$customstring.'";',
'id' => 4
);
$passiveVid&#91;&#93; = array (
'string' => '#\&#91;myspace\&#93;(&#91;^\&#91;\&#93;&#93;+)\&# 91;/myspace\&#93;#',
'replacement' => 'return \'<embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=\'.$matches&#91;1&#93;.\'&v=2&type=vi deo" type="application/x-shockwave-flash" width="430" height="346"></embed>\';',
'id' => 4
);
// MetaCafe
$passiveVid&#91;&#93; = array (
'string' => '#(?:<a&#91;^\<\>&#93;+href=\")?(?:http://)?(?:www\.)?metacafe.com/watch/(&#91;0-9&#93;*\/&#91;A-Za-z0-9_&#93;*)(?:&#91;^"&#93;+)?&#91;^"&#93;*(?:\"&#91; ^\<\>&#93;*>)?(&#91;^\<\>&#93;*)(?:</a>)?#',
'replacement' => '$PASSIVETITLE = $matches&#91;2&#93;; $PASSIVEEMBED = \'<embed src="http://www.metacafe.com/fplayer/\'.$matches&#91;1&#93;.\'.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&#91;&#93; = array (
'string' => '#\&#91;metacafe\&#93;(&#91;^\&#91;\&#93;&#93;+)\& #91;/metacafe\&#93;#',
'replacement' => 'return \'<embed src="http://www.metacafe.com/fplayer/\'.$matches&#91;1&#93;.\'.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>\';',
'id' => 8
);
// Yahoo
$passiveVid&#91;&#93; = array (
'string' => '#(?:<a&#91;^\<\>&#93;+href=\")?(?:http://)?video.yahoo.com/video/play\?vid=(\d+)&amp;matchid=(\d+)(?:&#91;^"&#93;+) ?&#91;^"&#93;*(?:\"&#91;^\<\>&#93;*>)?(&#91;^\<\>& #93;*)(?:</a>)?#',



'replacement' => '$PASSIVETITLE = $matches&#91;3&#93;; $PASSIVEEMBED = \'<embed src="http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf" flashvars="vid=\'.$matches&#91;1&#93;.\'&id=\'.$ma tches&#91;2&#93;.\'" type="application/x-shockwave-flash" width="425" height="350"></embed>\'; return "'.$customstring.'";',
'id' => 16
);
$passiveVid&#91;&#93; = array (
'string' => '#(?:<a&#91;^\<\>&#93;+href=\")?(?:http://)?video.yahoo.com/watch/(\d+)/(\d+)(?:&#91;^"&#93;+)?&#91;^"&#93;*(?:\"&#91;^\<\ >&#93;*>)?(&#91;^\<\>&#93;*)(?:</a>)?#',
'replacement' => '$PASSIVETITLE = $matches&#91;3&#93;; $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&#91;1&#93;.\'&vid=\'.$matche s&#91;2&#93;.\'&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&#91;1&#93;.\'&vid=\'.$ma tches&#91;2&#93;.\'&embed=1" ></embed></object>\'; return "'.$customstring.'";',
'id' => 16
);
}
</code> </code>

والنتيجه





بالتوفيق







الملفات المرفقة [TR]
الكود.txt (5.2 كيلوبايت, عدد مرات المشاهدة 99 مرة) [/TR]



©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى©