تكبير عرض اليوتيوب في صندوق الموده للتحرير الأصدار الرابع
http://www.dzbatna.com/images/icons/iconrote.gif طھظƒط¨ظٹط± ط¹ط±ط¶ ط§ظ„ظٹظˆطھظٹظˆط¨ ظپظٹ طµظ†ط¯ظˆظ‚ ط§ظ„ظ…ظˆط¯ظ‡ ظ„ظ„طھط*ط±ظٹط± ط§ظ„ط£طµط¯ط§ط± ط§ظ„ط±ط§ط¨ط¹
السلام عليكم ورحمه الله وبركاته
شرح طريقة تكبير عرض اليوتيوب في صندوق الموده للتحرير الأصدار الرابع
اذهب الى
التحكم بالإضافات البرمجية Plugin
ثم
المنتج plugin/Product : أدوات المودة المطورة للتحرير ــ الإصدار الرابع
سوف تجد اسفلها
الفيديو
جنبها كلمه تعديل .. اضغط عليها
وراح يطلع معاك مثل الصوره الموضحه
http://www.dzbatna.com/attachments/5...96910350-2.png
وستبدل كود code PHP الخاص بالإضافة بالكود code هذا
رمز 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' => '#(?:]+href=\")?(?:http://)?(?:[a-zA-Z]{1,4}\.)?youtube.com/watch\?v=(.{11}?)[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:)?#',
'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'\'; return "'.$customstring.'";',
'id' => 1
);
$passiveVid[] = array (
'string' => '#\[youtube\]([^\[\]]+)\[/youtube\]#',
'replacement' => 'return \'\';',
'id' => 1
);
// Google
$passiveVid[] = array (
'string' => '#(?:]+href=\")?(?:http://)?video.google.(?:[A-Za-z\.]{2,5})/videoplay\?docid=([0-9\-]+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:)?#',
'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'\'; return "'.$customstring.'";',
'id' => 2
);
$passiveVid[] = array (
'string' => '#\[googlevideo\]([^\[\]]+)\[/googlevideo\]#',
'replacement' => 'return \'\';',
'id' => 2
);
// MySpace
$passiveVid[] = array (
'string' => '#(?:]+href=\")?(?:http://)?vids.myspace.com/index.cfm\?fuseaction=vids\.individual&videoid=(\d {8,15})(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:)?#',
'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'\'; return "'.$customstring.'";',
'id' => 4
);
$passiveVid[] = array (
'string' => '#\[myspace\]([^\[\]]+)\[/myspace\]#',
'replacement' => 'return \'\';',
'id' => 4
);
// MetaCafe
$passiveVid[] = array (
'string' => '#(?:]+href=\")?(?:http://)?(?:www\.)?metacafe.com/watch/([0-9]*\/[A-Za-z0-9_]*)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:)?#',
'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'\'; return "'.$customstring.'";',
'id' => 8
);
$passiveVid[] = array (
'string' => '#\[metacafe\]([^\[\]]+)\[/metacafe\]#',
'replacement' => 'return \'\';',
'id' => 8
);
// Yahoo
$passiveVid[] = array (
'string' => '#(?:]+href=\")?(?:http://)?video.yahoo.com/video/play\?vid=(\d+)&matchid=(\d+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:)?#',
'replacement' => '$PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'\'; return "'.$customstring.'";',
'id' => 16
);
$passiveVid[] = array (
'string' => '#(?:]+href=\")?(?:http://)?video.yahoo.com/watch/(\d+)/(\d+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:)?#',
'replacement' => '$PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'\'; return "'.$customstring.'";',
'id' => 16
);
}
والنتيجه
http://www.dzbatna.com/attachments/5...96910350-1.png
بالتوفيق
الملفات المرفقة [TR]
http://www.traidnt.net/vb/images/attach/txt.gif الكود.txt (5.2 كيلوبايت, عدد مرات المشاهدة 99 مرة) [/TR]
https://fbcdn-sphotos-d-a.akamaihd.n...93518507_n.png
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى©