Discuz Thai

 ลืมรหัสผ่าน
 สมัครสมาชิก

ข้อตกลงการใช้งานกระดานข่าวดิสคัสไทย DiscuzThai Agreement (English Version) ประกาศดิสคัสไทย - ทำเนียบดิสคัสภาษาไทย

Discuz! X3.5 Thai R20231001 Rev.8 (NEW) [วิดีโอช่วยสอน] อัปเกรด Discuz! X3.4 เป็น X3.5 Discord ของ Discuz! Thai Community อย่างเป็นทางการ

Discuz! X3.4 Thai R20220811 (REV.75) สิ้นสุดการสนับสนุน Discuz! X3.4 ภาษาไทยตั้งแต่วันนี้เป็นต้นไป (ขอแนะนำให้อัปเกรดเป็น X3.5 แทน)

ค้นหา
แท็กยอดนิยม: ดิสคัสภาษาไทย Discuz Thai
เจ้าของ: New2th

[X2] [New2th] โพสวีดีโอจาก Youtube Mthai Clipmass Sanook แบบอันเดียวครอบจักวาล

    [คัดลอกลิงก์]
3bbit โพสต์ 2011-9-21 13:15:27
function parseflv($url, $width = 0, $height = 0) {  
$lowerurl = strtolower($url);  
$flv = '';  
$imgurl = '';  
if(strpos($lowerurl, 'www.youtube.com/watch') !== FALSE) {  
if(preg_match("/http:\/\/www.youtube.com\/watch\?v=([\-_a-zA-Z0-9]+)(.*)?/i", $url, $matches)) {  
if(!$width) {  
$width = 640;  
}  
if(!$height){  
$height = 385;  
}  
return '<iframe class="youtube-player" type="text/html" width="'.$width.'" height="'.$height.'" src="http://www.youtube.com/embed/'.$matches[1].'" frameborder="0"></iframe>';  
}  
}elseif(strpos($lowerurl, 'video.mthai.com/player.php') !== FALSE){  
if(preg_match("/http:\/\/video\.mthai\.com\/player\.php.id=([0-9]+)M([0-9]+)M([0-9]+)(.*)?/i", $url, $matches)) {  
if(!$width) {  
$width = 480;  
}  
if(!$height){  
$height = 372;  
}  
return '<object id="mthai_player" width="'.$width.'" height="'.$height.'" data="http://video.mthai.com/Flash_player/flowplayer/flowplayer-3.1.5.swf" type="application/x-shockwave-flash" ><param name="allowFullScreen" value="true" ></param><param name="movie" value="http://video.mthai.com/Flash_player/flowplayer/flowplayer-3.1.5.swf"></param><param name="flashvars" value="config=http://video.mthai.com/get_config_event.php?id='.$matches[2].'"></param><param name="allowscriptaccess" value="always"></param><embed src="http://video.mthai.com/Flash_player/flowplayer/flowplayer-3.1.5.swf" type="application/x-shockwave-flash" allowscriptaccess="always" flashvars="config=http://video.mthai.com/get_config_event.php?id='.$matches[2].'" allowfullscreen="true" width="'.$width.'" height="'.$height.'"></object>';  
}  
}elseif(strpos($lowerurl, 'www.clipmass.com/movie') !== FALSE){  
if(preg_match("/http:\/\/www\.clipmass\.com\/movie\/((.+)\-\-\-)?([0-9]+)/i", $url, $matches)) {  
if(!$width) {  
$width = 425;  
}  
if(!$height){  
$height = 355;  
}  
$code2 = substr($matches[3],-6);  
return '<embed width="'.$width.'" height="'.$height.'" src="http://www.clipmass.com/player2010/cm/cmp.swf?config=http://www.clipmass.com/player2010/cm/econfig.php?video='.$matches[3].','.$code2.'" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" />';  
}  
}elseif(strpos($lowerurl, 'video.sanook.com') !== FALSE){  
if(preg_match("/http:\/\/video\.sanook\.com\/(.+)\-([0-9]+)\-player\.html/i", $url, $matches)) {  
if(!$width) {  
$width = 425;  
}  
if(!$height){  
$height = 355;  
}  
return '<embed width="'.$width.'" height="'.$height.'" src="http://video.sanook.com/player/playerver1.swf" allowfullscreen="true" allowscriptaccess="always" flashvars="contentId='.$matches[2].'&embed=true&autoplay=false&repeats=false"></embed>';  
}  
}  
return FALSE;  
}  

function parseimg($width, $height, $src, $lazyload) {
        global $_G;
        $extra = '';
        if($width > $_G['setting']['imagemaxwidth']) {
                $height = intval($_G['setting']['imagemaxwidth'] * $height / $width);
                $width = $_G['setting']['imagemaxwidth'];
                if(defined('IN_MOBILE') && !defined('TPL_DEFAULT')) {
                        $extra = '';
                } else {
                        $extra = ' onclick="zoom(this)" style="cursor:pointer"';
                }
        }
        $attrsrc = !IS_ROBOT && $lazyload ? 'file' : 'src';
        return bbcodeurl($src, '<img'.($width > 0 ? ' width="'.$width.'"' : '').($height > 0 ? ' height="'.$height.'"' : '').' '.$attrsrc.'="'.$src.'"'.$extra.' border="0" alt="" />');
}
---------------------
ของผมแบบนี้ผิดตรงไหนครับ
------------

แบบนี้ครับผิดตรงไหนแน่นำด้วย
aiteebman239 โพสต์ 2011-10-3 16:28:55
ยังงงอยู่เลยครับ แต่ก็ขอบคุรนะครับผม
3bbit โพสต์ 2011-10-6 12:57:54
แจ้งเว็บเข้าไม่ได้แล้ว
 เจ้าของ| New2th โพสต์ 2011-10-6 14:06:16
แก้แล้ว โฮสเก่าโดนปิด ปิดไปหลายวันละเพิ่งแก้ 55555
3bbit โพสต์ 2011-10-6 14:42:25
ลองแก้แล้โพส กระทู้ไม่ได้เลยครับ ค้างเลย
seasonthree โพสต์ 2011-10-11 15:50:46
ขอบใจมากครับ
kane โพสต์ 2011-10-25 12:39:08
ขอบคุณ ครับ กำลังหาเลย
iloveyou โพสต์ 2011-10-30 20:45:00
cord จาก 4shared ครับ
wisanu99 โพสต์ 2011-11-1 02:52:25
ช่วยชี้ชัดกว่านี้ได้ไหมคับ ผมมือใหม่ T_T
X_Master โพสต์ 2011-11-10 20:57:25
ว่าแต่ ไอรูป มันเปิดใช้งานตรงไหนครับ ในการตั้งกระทู้ของผมมันไม่มีรูป แบบนี้ขึ้นเลย

แสดงความคิดเห็น

ผมก็ไม่มีครับ  โพสต์ 2011-11-11 15:02
ขออภัย! คุณไม่ได้รับสิทธิ์ในการดำเนินการในส่วนนี้ กรุณาเลือกอย่างใดอย่างหนึ่ง ลงชื่อเข้าใช้ | สมัครสมาชิก

รายละเอียดเครดิต

รายชื่อผู้กระทำผิด|Archiver|ดิสคัส ไทย Follow us: Become a fan on facebook. Follow us on Twitter.

GMT+7, 2024-4-27 17:37

Powered by Discuz! X3.4, Rev.66

Copyright © 2001-2021 Tencent Cloud. Licensed

ตอบกระทู้ ขึ้นไปด้านบน ไปที่หน้ารายการกระทู้