الحب الباقي |
11-02-11 03:18 AM |
تكبير عرض اليوتيوب في صندوق الموده للتحرير الأصدار الرابع
1 مرفق
السلام عليكم ورحمه الله وبركاته
شرح تكبير عرض اليوتيوب في صندوق الموده للتحرير الأصدار الرابع
اذهب الى
التحكم بالإضافات البرمجية Plugin
ثم
المنتج/Product : أدوات المودة المطورة للتحرير ــ الإصدار الرابع
سوف تجد اسفلها
الفيديو
جنبها كلمه تعديل .. اضغط عليها
وراح يطلع معاك مثل الصوره الموضحه
http://www.traidnt.net/vb/attachment...1&d=1296910350
وستبدل كود PHP الخاص بالإضافة بالكود هذا
كود PHP:
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\]([^\[\]]+)\[/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].\'&hl=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].\'&hl=en" flashvars=""> </embed>\';',
'id' => 2
);
// MySpace
$passiveVid[] = array (
'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?vids.myspace.com/index.cfm\?fuseaction=vids\.individual&videoid=(\d{8,15})(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=\'.$matches[1].\'&v=2&type=video" type="application/x-shockwave-flash" width="430" height="346"></embed>\'; return "'.$customstring.'";',
'id' => 4
);
$passiveVid[] = array (
'string' => '#\[myspace\]([^\[\]]+)\[/myspace\]#',
'replacement' => 'return \'<embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=\'.$matches[1].\'&v=2&type=video" 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\]([^\[\]]+)\[/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+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</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=\'.$matches[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=\'.$matches[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=\'.$matches[2].\'&embed=1" ></embed></object>\'; return "'.$customstring.'";',
'id' => 16
);
}
والنتيجه
http://www.traidnt.net/vb/attachment...1&d=1296910350
بالتوفيق
|