ธันวาคม 02, 2020, 12:32:09 AM *
ยินดีต้อนรับคุณ, บุคคลไม่รู้ว่าใคร กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น
หน้า: [1]   ลงล่าง
  พิมพ์  
แจก MOD สำหรับ SMF บอร์ด ให้สามารถ แสดง VDO Clip ได้ทันที  (อ่าน 18377 ครั้ง)
ไร้คอนเซปต์ ****** ออฟไลน์ ออฟไลน์ เพศ: ชาย พลังสะสม: 9130 นิค ณ ระยอง
ธันวาคม 28, 2007, 03:03:52 PM
ผลงาน: 6767
nick_indy
๛ เทพไร้คอนเซปต์ ๛
ไร้คอนเซปต์
******

ผลงาน: 6767
ออฟไลน์ ออฟไลน์

เพศ: ชาย
พลังสะสม: 9130


นิค ณ ระยอง

เว็บไซต์
« เมื่อ: ธันวาคม 28, 2007, 03:03:52 PM »
แจก MOD สำหรับ SMF บอร์ด ให้สามารถ แสดง VDO Clip ได้ทันที

อ้างถึง
รายระเอียด: ใครที่สนใจ Source นี้ ผม Download มาจาก
MOD SMF http://custom.simplemachines.org/mods/index.php?mod=977
ชื่อ Auto_Embed_ Video_Clips _v1.9

แก้ไข ให้ใส่ MTHAI ได้ แล้ว

Download ได้ที่ http://smf.na-man.com/index.php?action=downloads;sa=downfile;id=20
หรือ
http://www.up2box.com/download.php?file=071228a414e6dd832a04624fbf68d9a651aa232


การใช้งานพื้นฐาน เพื่อนๆ ต้องทราบก่อนครับว่า
อะไรสามารถ โพสลงในบอร์ดเราได้บ้าง  ซึ่งข้อบังครับ หรือการใช้งานบอร์ดเราเพื่อนๆ คงทราบกันแล้ว

คลิกจากไหนโพสได้บ้าง ?

Clip ที่เราอนุญาตให้โพสได้แก่คลิปที่มาจาก เวปไซต์
M Thai
AOL Uncut
AtomFilms
AtomFilms Uploads
Dave.tv
ESPN
Godtube
Koreus
LiveVideo
Megavideo
MSN Live/Soapbox Video
Mofile
OnSmash
Streetfire.net
videotube.de
VidMax
Yahoo (Except HK)
Yahoo HK Only
Veoh
Gametrailers
LiveLeak
CellFish
MyVideo.de
ClipFish.de
Liberio.it
123video.nl,
VSocial
IFilm
Sevenload
Revver
BrightCove
Aniboom
Vimeo
Guba
Glumbert
Tudou
dv.ouou
Biku
GameVideos



ตัวอย่างการโพส ไม่ยากเลย ครับ!

เพื่อนๆ แค่ Copy URL มาวางไว้ในนี้ได้เลย ไม่ต้องใช้ คำสั่ง แสดง อะไร ครับ
เช่น ผมอยากใส่ Clip ที่ผม Upload จาก YouTube หรือ MThai ก้ได้ แล้ว
ผมก้อแค่ COPY URL จากเวปมา ใส่  ที่หน้าตั้งกระทู้ หรือ ตอบ กระทู้
โค๊ด:
http://www.youtube.com/watch?v=Odtg4K_P5uI
แบบนี้
พอกด Supmit ปร๊าบบบบบบบบ
ก้อจะแสดงผล เป็น VDO ขึ้นมาให้ทันที ที่หน้าเราตั้ง/ตอบกระทู้ นั้นๆ



AUTO EMBED VIDEO CLIPS v1.9
By Karl Benson


Introduction
Automatically convert links into embedded clips for 47 various video clip sites including Youtube/MetaCafe/Stage6 without bbcode.

Just post a plain link to the page in the post and the mod will do the rest.
Its the ultimate user friendly way of posting clips and safe from a security standpoint.

Requires: Auto Convert Links to be enabled. (via Admin > Posts & Topics)

Features
o Supports 47 Video clip sites
- 123video.nl, Aniboom, AOL Uncut, AtomFilms, AtomFilms Uploads, Biku, BrightCove, CellFish, ClipFish.de, CollegeHumor, Dave.tv, dv.ouou, ESPN, Gametrailers, GameVideos, Glumbert, Godtube, Google Video, Guba, IFilm, Koreus, Libero.it, LiveLeak, LiveVideo, Megavideo, MetaCafe, MSN Live/Soapbox Video, Mofile, MySpaceTv, MyVideo.de, OnSmash, Revver, Sevenload, Stage6, Streetfire.net, Tudou, Veoh, videotube.de, Vidiac, VidMax, Vimeo, VSocial, Yahoo (Except HK), Yahoo HK Only, Youku, YouTube, YouTube Playlist
o Safe from security standpoint
- Properly validates/sanitizes/parses the video id before including it in the url
- Disables script access (allowScriptAccess="never")
o Use [noembed][/noembed] bbcode to prevent links being converted to embedded clips
o Hard-coded limit to number to converted links per page (to prevent flash overload)
- Applies only to links converted by this mod (not other video clip mods)
o Disabled for Printer Friendly pages
o Disabled for Signatures

There are no admin settings with this mod. To disable it, you must uninstall it.

Installation
Installation affects source files only. No manual theme/language edits will be required

If you have installed any other mods that add video embedding functionality, like my YouTube BBCode mod,
those mods will take precedent for bbcoded links, and this mod will work as normal for non-bbcoded links

This mod is compatible with SMF 1.1.x and
with SMF 2.0 Beta 1 (which is currently available to Charter Members).

Customizing
The mod has been designed to be fully functional 'out of the box' and not require any manual theme or language edits.
However some 'hardcoded' capability has been included for those who understand php/smf and maybe wish to customize the mod.
Note, any changes will prevent the mod from being automatically and fully uninstalled.

Enable/Disable Specific Sites
Eg to enable/disable Stage6

Open Sources/Subs.php
FIND
โค๊ด:
$embed[] = array(
'name' => 'Stage6',
'enabled' => 1,
Change number 1 to 0 to disable (1 = enabled, 0 = disabled)
And vice versa to enable for Stage6 and any of the other sites supported.

Increasing/Decreasing The Limit On The Number Of Links Converted Per Page
Open Sources/Subs.php
FIND
โค๊ด:
static $autoembedmax = 12 ;
Change 12 to another number. Use -1 for no limit (Not Recommended).

Disabling Embedding in Specific Area
By default (since v1.4) embedding is disabled in signatures.
Some people have asked for a way to disable it for other sections such as Shoutbox.
You must find in the relevant SOURCE file where that string or data is put through the function "parse_bbc"
And on the line BEFORE it, put
โค๊ด:
$context['disableautoembedvideo'] = 1 ;

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

I do NOT offer support for making or helping to make this mod support videos hosted on your OWN site.
I do not have the time nor the desire.  You may find someone able to help by posting a [paid] or [free] request in the Help Wanted board on the SimpleMachines forum.
Beware that by adding your own sites, unless the regular expressions are done by someone who fully understands them, you could be making your forum vulnerable.

Note: Before you request that this mod support another popular video clip site, it is NOT possible to add support for the following sites because the video id/filename in the embed code is not the same as in the url.
Dailymotion.com, break.com, ebaumsworld, garagetv.be, 56.com, Blip.Tv, slideshare.net, videojug, vidlife, Filefront, IGN, Gamespot
No adult/porn ones please (although most will NOT work anyway).

Changelog
1.7 - 6th December 2007
o Added support for new-style Stage6 urls (they changed them)
o Added support for new-style YouTube rss links
o Added support for 17 new video sites.
- AOL Uncut, AtomFilms, AtomFilms Uploads, Dave.tv, ESPN, Godtube, Koreus, LiveVideo, Megavideo, MSN Live/Soapbox Video, Mofile, OnSmash, Streetfire.net, videotube.de, VidMax, Yahoo (Except HK), Yahoo HK Only
1.8 - 7th December 2007
o Fixed Stage6 with www. & added autoplay=false param
o Added support for Youtube Canada
1.9 - 8th December 2007
o Fixed v1.8 Stage6 bug causing errors/missing data.
For the full changelog for previous versions please see changelog.txt

# www.na-man.com : www.facebook.com/nicknarayong
# บริการ Hosting, Domain, Website, Joomla, SMF,phpBB Webboard และอื่นๆ ในราคาพิเศษสุดๆ สนใจติดต่อสอบถามได้ครับ
# Email & MSN nick@na-man.com
# หรือโทรศัพท์ 0837690256
ไร้คอนเซปต์ ****** ออฟไลน์ ออฟไลน์ เพศ: ชาย พลังสะสม: 9130 นิค ณ ระยอง
ธันวาคม 28, 2007, 03:06:21 PM
ผลงาน: 6767
nick_indy
๛ เทพไร้คอนเซปต์ ๛
ไร้คอนเซปต์
******

ผลงาน: 6767
ออฟไลน์ ออฟไลน์

เพศ: ชาย
พลังสะสม: 9130


นิค ณ ระยอง

เว็บไซต์
« ตอบ #1 เมื่อ: ธันวาคม 28, 2007, 03:06:21 PM »
1.0 - 9th October 2007
o Initial release per request
1.1 - 19th October 2007
o Added support for Youtube embed player url
o Added support for Youtube playlists
o Added support for many more video sites
Veoh, Gametrailers, LiveLeak, CellFish, MyVideo.de, ClipFish.de, Liberio.it, 123video.nl,
VSocial, IFilm, Sevenload, Revver, BrightCove, Aniboom, Vimeo, Guba, Glumbert, Tudou, dv.ouou, Biku, GameVideos
o Improved security of mod by denying script access to flash objects (allowScriptAccess="never")
o Disables the convert for 'print' pages so is printer friendly. (Shows the link instead of object)
o Re-coded the arrays to be lighter, less html, using a generic object to embed
o Got rid of <embed> (forever?)
1.2 - 20th October 2007
o Fixed Gametrailers
o Added support for old style LiveLeak links
o Added support for different style Google video links
o Fixed Cellfish (their current player doesnt work, so switched to older one)
o Fixed Glumbert
o Fixed Gamevideos
1.3 - 29th October 2007
o Fixed a minor bug in the <object> code that affected xhtml validity
o Added warning to readme, requires auto convert urls to be enabled
o Added support for more YouTube localised versions
- Australia, Hong Kong, Mexico, New Zealand
o Fixed Metacafe sizes
o Fixed Googlevideo sizes
o Added a 'hard-coded' limit to the number of links PER PAGE that can be converted to embedded objects (default: 12)
o Added [noembed]LINK[/noembed] bbcode to protect links from being embedded.
1.4 - 28th November 2007
o Fixed [noembed] blank replacements
o Added <embed> version for non-ie browsers. Breaks xhtml validation.
o Added <noembed> link
o Changed extraparams, now added by an array
o Fixed Veoh
o Fixed YouTube default Playlist sizes (they changed them)
o Fixed Stage6
o Added Disabled for signatures.
o Added support for YouKu.com
o Improve preg subpatterns for speed/resource improvements.
1.5 - 29th November 2007
o Added support for Vidiac.com, collegehumor.com
o Added support for additional YouTube localised version
- Germany
1.6 - 30th November 2007
o Fixed count undefined variable
1.7 - 6th December 2007
o Added support for new-style Stage6 urls (they changed them)
o Added support for new-style YouTube rss links
o Added support for 17 new video sites.
- AOL Uncut, AtomFilms, AtomFilms Uploads, Dave.tv, ESPN, Godtube, Koreus, LiveVideo, Megavideo, MSN Live/Soapbox Video, Mofile, OnSmash, Streetfire.net, videotube.de, VidMax, Yahoo (Except HK), Yahoo HK Only
1.8 - 7th December 2007
o Fixed Stage6 with www. & added autoplay=false param
o Added support for Youtube Canada
1.9 - 8th December 2007
o Fixed v1.8 Stage6 bug causing errors/missing data.
ไร้คอนเซปต์ ****** ออฟไลน์ ออฟไลน์ เพศ: ชาย พลังสะสม: 9130 นิค ณ ระยอง
ธันวาคม 28, 2007, 03:07:50 PM
ผลงาน: 6767
nick_indy
๛ เทพไร้คอนเซปต์ ๛
ไร้คอนเซปต์
******

ผลงาน: 6767
ออฟไลน์ ออฟไลน์

เพศ: ชาย
พลังสะสม: 9130


นิค ณ ระยอง

เว็บไซต์
« ตอบ #2 เมื่อ: ธันวาคม 28, 2007, 03:07:50 PM »
ให้Copy ข้อมูลนี้ แล้วใส่ Notepad แล้ว  Save  เป็นไฟล์ ชื่อ install.xml

โค๊ด:
<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<name>Auto Embed Video Clips</name>
<id>karlbenson:autoembedvideoclips</id>
<version>1.9</version>
<homepage>http://www.youposted.com</homepage>
<file name="$sourcedir/Load.php">
<operation>
<search position="after"><![CDATA[$profile['signature'] = parse_bbc($profile['signature'], true, 'sig' . $profile['ID_MEMBER']);
]]></search>
<add><![CDATA[
$context['disableautoembedvideo'] = 1 ;
]]></add>
</operation>
</file>

<file name="$sourcedir/Subs.php">
<operation>
<search position="before"><![CDATA[$message = strtr($message, array('  ' => ' &nbsp;', "\r" => '', "\n" => '<br />', '<br /> ' => '<br />&nbsp;', '' => "\n"));
]]></search>
<add><![CDATA[
// START OF AUTO EMBED VIDEO CLIPS MOD

// Disables if on printer friendly page or if told to disable eg signatures
if($smileys !== "print" && empty($context['disableautoembedvideo']))
{
$embed = array();

$embed[] = array(
'name' => '123video.nl',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)123video\.nl/playvideos\.asp\?MovieID=([0-9]{1,8})(?:.*?)',
'embedlink' => 'http://www.123video.nl/123video_share.swf?mediaSrc=$1',
'width' => '420',
'height' => '339',
'classid' => 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000',
);
$embed[] = array(
'name' => 'Aniboom',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)aniboom\.com/Player.aspx\?v=([0-9]{1,8})(?:.*?)',
'embedlink' => 'http://api.aniboom.com/embedded.swf?videoar=$1',
'width' => '448',
'height' => '372',
);
$embed[] = array(
'name' => 'AOL Uncut',
'enabled' => 1,
'pattern' => 'http://uncutvideo\.aol\.com/videos/([0-9a-f]{32})(?:.*?)',
'embedlink' => 'http://uncutvideo.aol.com/v6.220/en-US/uc_videoplayer.swf?aID=1$1&site=http://uncutvideo.aol.com/',
'width' => '415',
'height' => '347',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'AtomFilms',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)atomfilms\.com/film/([0-9a-z_-]{1,40})\.jsp(?:.*?)',
'embedlink' => 'http://www.atomfilms.com:80/a/autoplayer/shareEmbed.swf?keyword=$1',
'width' => '426',
'height' => '350',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'AtomFilms Uploads',
'enabled' => 1,
'pattern' => 'http://uploads\.atomfilms\.com/Clip\.aspx\?key=([0-9a-f]{1,16})(?:.*?)',
'embedlink' => 'http://uploads.atomfilms.com/player.swf?key=$1',
'width' => '430',
'height' => '354',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'Biku',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)biku\.com/opus/(?:player.swf\?VideoID=|)([0-9]{1,8})(?:.*?)',
'embedlink' => 'http://www.biku.com/opus/player.swf?VideoID=$1&embed=true&autoStart=false',
'width' => '480',
'height' => '395',
);
$embed[] = array(
'name' => 'BrightCove',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)brightcove\.(tv|com)/title.jsp\?title=([0-9]{1,12})(?:.*?)',
'embedlink' => 'http://www.brightcove.$1/playerswf?allowFullScreen=true&initVideoId=$2&servicesURL=http://www.brightcove.tv'
.'&viewerSecureGatewayURL=https://www.brightcove.tv&cdnURL=http://admin.brightcove.com&autoStart=false',
'width' => '486',
'height' => '412',
'extraparams' => array('swLiveConnect' => 'true'),
);
$embed[] = array(
'name' => 'CellFish',
'enabled' => 1,
'pattern' => 'http://cellfish\.cellfish\.com/(?:video|multimedia)/([0-9]{1,8})(?:.*?)',
'embedlink' => 'http://cellfish.com/static/swf/player.swf?Id=$1',
'width' => '420',
'height' => '315',
);
$embed[] = array(
'name' => 'ClipFish.de',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)clipfish\.de/(?:player.php|videoplayer\.swf)\?(?:.*?)videoid=([a-z0-9]{1,20})(?:.*?)',
'embedlink' => 'http://www.clipfish.de/videoplayer.swf?as=0&videoid=$1&r=1&c=0067B3',
'width' => '464',
'height' => '380',
'classid' => 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'CollegeHumor',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)collegehumor\.com/video:([0-9]{1,12})(?:.*?)',
'embedlink' => 'http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=$1',
'width' => '480',
'height' => '360',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'Dave.tv',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)dave\.tv/MediaPlayer.aspx\?contentItemId=([0-9]{1,10})(?:.*?)',
'embedlink' => 'http://dave.tv/dbox/dbox_small.swf?configURI=http://dave.tv/dbox/config.ashx&volume=50&channelContentId=$1',
'width' => '300',
'height' => '260',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'dv.ouou',
'enabled' => 1,
'pattern' => 'http://dv\.ouou\.com/(?:play/v_|v/)([a-f0-9]{14})(?:.*?)',
'embedlink' => 'http://dv.ouou.com/v/$1',
'width' => '480',
'height' => '385',
);
$embed[] = array(
'name' => 'ESPN',
'enabled' => 1,
'pattern' => 'http://sports\.espn\.go\.com/broadband/video/videopage\?(?:.*?)videoId=([0-9]{1,10})(?:.*?)',
'embedlink' => 'http://sports.espn.go.com/broadband/player.swf?mediaId=$1',
'width' => '440',
'height' => '361',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'Gametrailers',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)gametrailers\.com/player/([0-9]{1,8})\.html(?:.*?)',
'embedlink' => 'http://www.gametrailers.com/remote_wrap.php?mid=$1',
'width' => '480',
'height' => '392',
'classid' => 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000',
'extraparams' => array('swLiveConnect' => 'true'),
);
$embed[] = array(
'name' => 'GameVideos',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)gamevideos\.com/(?:video/id/|video/embed\?video=)([0-9]{1,8})(?:.*?)',
'embedlink' => 'http://gamevideos.com:80/swf/gamevideos11.swf?embedded=1&autoplay=0&src=http://gamevideos.com:80/video/videoListXML%3Fid%3D$1%26adPlay%3Dfalse',
'width' => '420',
'height' => '405',
);
$embed[] = array(
'name' => 'Glumbert',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)glumbert\.com/media/([a-z0-9_-]{1,30})(?:.*?)',
'embedlink' => 'http://www.glumbert.com/embed/$1',
'width' => '425',
'height' => '335',
);
$embed[] = array(
'name' => 'Godtube',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)godtube\.com/view_video\.php\?viewkey=([0-9a-f]{20})(?:.*?)',
'embedlink' => 'http://godtube.com/flvplayer.swf?viewkey=$1',
'width' => '330',
'height' => '270',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'Google Video',
'enabled' => 1,
'pattern' => 'http://video\.google\.(com|com\.au|co\.uk|de|es|fr|it|nl|pl|ca)/(?:videoplay|url)\?docid=([0-9a-z-_]{1,20})(?:.*?)',
'embedlink' => 'http://video.google.$1/googleplayer.swf?docId=$2',
'width' => '400',
'height' => '326',
);
$embed[] = array(
'name' => 'Guba',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)guba\.com/watch/([0-9]{1,12})(?:.*?)',
'embedlink' => 'http://www.guba.com/f/root.swf?video_url=http://free.guba.com/uploaditem/$1/flash.flv&amp;isEmbeddedPlayer=true',
'width' => '525',
'height' => '360',
);
$embed[] = array(
'name' => 'IFilm',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)ifilm.com/video/([0-9]{1,8})(?:.*?)',
'embedlink' => 'http://www.ifilm.com/efp?flvbaseclip=$1',
'width' => '448',
'height' => '365',
);
$embed[] = array(
'name' => 'Koreus',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)koreus\.com/video/([0-9a-z-]{1,50})\.html(?:.*?)',
'embedlink' => 'http://www.koreus.com/video/$1',
'width' => '400',
'height' => '300',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'Libero.it',
'enabled' => 1,
'pattern' => 'http://video\.libero\.it/app/play(?:/index.html|)\?id=([a-f0-9]{32})(?:.*?)',
'embedlink' => 'http://video.libero.it/static/swf/eltvplayer.swf?id=$1.flv&ap=0',
'width' => '400',
'height' => '333',
);
$embed[] = array(
'name' => 'LiveLeak',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)liveleak\.com/view\?i=([0-9a-z]{3}_|)([a-z0-9]{10})(?:.*?)',
'embedlink' => 'http://www.liveleak.com/player.swf?autostart=false&token=$1$2',
'width' => '450',
'height' => '370',
);
$embed[] = array(
'name' => 'LiveVideo',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)livevideo\.com/video/(?:view/|)(?:(?:.*?)/|)([0-9a-f]{32})(?:.*?)',
'embedlink' => 'http://www.livevideo.com/flvplayer/embed/$1',
'width' => '445',
'height' => '369',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'Megavideo',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)megavideo\.com/\?v=([0-9a-z]{8})(?:.*?)',
'embedlink' => 'http://www.megavideo.com/v/$1.0.0',
'width' => '432',
'height' => '351',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'MetaCafe',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)metacafe\.com/(?:watch|fplayer)/([0-9]{1,10})/(?:.*?)',
'embedlink' => 'http://www.metacafe.com/fplayer/$1/metacafe.swf',
'width' => '400',
'height' => '345',
);
$embed[] = array(
'name' => 'MSN Live/Soapbox Video',
'enabled' => 1,
'pattern' => 'http://(?:soapbox|video)\.msn\.com/video\.aspx\?(?:(?:.*?)vid=|from=msnvideo&showPlaylist=true&playlist=videoByUuids:uuids:)((?:[0-9a-z]{8})(?:(?:-(?:[0-9a-z]{4})){3})-(?:[0-9a-z]{12}))(?:.*?)',
'embedlink' => 'http://images.video.msn.com/flash/soapbox1_1.swf?c=v&v=$1',
'width' => '432',
'height' => '364',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'Mofile',
'enabled' => 1,
'pattern' => 'http://(?:www\.|tv\.|)mofile\.com/([0-9a-z]{8})(?:.*?)',
'embedlink' => 'http://tv.mofile.com/cn/xplayer.swf?v=$1',
'width' => '480',
'height' => '395',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'MySpaceTv',
'enabled' => 1,
'pattern' => 'http://(?:vids\.myspace|myspacetv)\.com/index\.cfm\?fuseaction=vids\.individual&amp;VideoID=([0-9]{1,10})(?:.*?)',
'embedlink' => 'http://lads.myspace.com/videos/myspacetv_vplayer0005.swf?m=$1&amp;type=video',
'width' => '480',
'height' => '386',
);
$embed[] = array(
'name' => 'MyVideo.de',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)myvideo\.de/watch/([0-9]{1,8})(?:.*?)',
'embedlink' => 'http://www.myvideo.de/movie/$1',
'width' => '470',
'height' => '406',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'OnSmash',
'enabled' => 1,
'pattern' => 'http://(?:www\.|videos\.|)onsmash\.com/(?:v|e)/([0-9a-z]{16})(?:.*?)',
'embedlink' => 'http://videos.onsmash.com/e/$1',
'width' => '448',
'height' => '374',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'Revver',
'enabled' => 1,
'pattern' => 'http://(?:one\.|www\.|)revver\.com/watch/([0-9]{1,8})(?:.*?)',
'embedlink' => 'http://flash.revver.com/player/1.0/player.swf?mediaId=$1&affiliateId=0&allowFullScreen=true',
'width' => '480',
'height' => '392',
);
$embed[] = array(
'name' => 'Sevenload',
'enabled' => 1,
'pattern' => 'http://(en\.|tr\.|de\.|www\.|)sevenload\.com/(?:videos|videolar)/([0-9a-z]{1,8})(?:.*?)',
'embedlink' => 'http://$1sevenload.com/pl/$2/425x350/swf',
'width' => '425',
'height' => '350',
);
$embed[] = array(
'name' => 'Stage6',
'enabled' => 1,
'pattern' => 'http://(?:(?:www\.)stage6|stage6\.divx)\.com/(?:.*?)/video/([0-9]{1,11})/(?:.*?)',
'embedlink' => 'http://video.stage6.com/$1/.divx',
'src' => 1, // Special, Stage6 use src rather than video, this bool, tells me to use src instead
'width' => '640',
'height' => '480',
'codebase' => 'http://go.divx.com/plugin/DivXBrowserPlugin.cab',
'pluginspage' => 'http://go.divx.com/plugin/download/',
'classid' => 'clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616',
'type' => 'video/divx',
'extraparams' => array(
'custommode' => 'false',
'showpostplaybackad' => 'false',
'autoPlay' => 'false',
),
);
$embed[] = array(
'name' => 'Streetfire.net',
'enabled' => 1,
'pattern' => 'http://(?:www\.|videos\.|)streetfire\.net/video/((?:[0-9a-z]{8})(?:(?:-(?:[0-9a-z]{4})){3})-(?:[0-9a-z]{12}))\.htm(?:.*?)',
'embedlink' => 'http://videos.streetfire.net/vidiac.swf?video=$1',
'width' => '428',
'height' => '352',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'Tudou',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)tudou\.com/(?:programs/view/|v/)([a-z0-9-]{1,12})(?:.*?)',
'embedlink' => 'http://www.tudou.com/v/$1',
'width' => '400',
'height' => '300',
);
$embed[] = array(
'name' => 'Veoh',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)veoh\.com/videos/([0-9a-z]{14,16})(?:.*?)',
'embedlink' => 'http://www.veoh.com/videodetails2.swf?permalinkId=$1&id=anonymous&player=videodetailsembedded&videoAutoPlay=0',
'width' => '540',
'height' => '438',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'videotube.de',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)videotube\.de/watch/([0-9]{1,8})(?:.*?)',
'embedlink' => 'http://www.videotube.de/flash/player.swf?baseURL=http%3A%2F%2Fwww.videotube.de%2Fwatch%2F$1',
'width' => '480',
'height' => '400',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'Vidiac',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)vidiac\.com/video/((?:[0-9a-z]{8})(?:(?:-(?:[0-9a-z]{4})){3})-(?:[0-9a-z]{12}))\.htm(?:.*?)',
'embedlink' => 'http://www.vidiac.com/vidiac.swf?video=$1',
'width' => '428',
'height' => '352',
);
$embed[] = array(
'name' => 'VidMax',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)vidmax\.com/index\.php/videos/view/([0-9]{1,10})(?:.*?)',
'embedlink' => 'http://vidmax.com/img/vidmax_player.swf?xml=http://vidmax.com/index.php/videos/playlist/&id=$1&autoPlay=true&bg=http://vidmax.com/img/back.jpg',
'width' => '450',
'height' => '447',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'Vimeo',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)vimeo\.com/([0-9]{1,12})(?:.*?)',
'embedlink' => 'http://vimeo.com/moogaloop.swf?clip_id=$1&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1'
.'&amp;show_byline=1&amp;show_portrait=0&amp;color=01AAEA',
'width' => '400',
'height' => '225',
);
$embed[] = array(
'name' => 'VSocial',
'enabled' => 1,
'pattern' => 'http://(?:www\.|)vsocial\.com/video/\?d=([0-9]{1,8})(?:.*?)',
'embedlink' => 'http://static.vsocial.com/flash/ups.swf?d=$1&a=0',
'width' => '410',
'height' => '400',
);
$embed[] = array(
'name' => 'Yahoo (Except HK)',
'enabled' => 1,
'pattern' => 'http://(?:(?:www|uk|fr|it|es|br|au|mx|de|ca)\.|)video\.yahoo\.com/video/play\?vid=([0-9]{1,10})(?:.*?)',
'embedlink' => 'http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf?id=$1',
'width' => '425',
'height' => '350',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'Yahoo HK Only',
'enabled' => 1,
'pattern' => 'http://hk\.video\.yahoo\.com/video/video\.html\?id=([0-9]{1,10})(?:.*?)',
'embedlink' => 'http://w.video.hk.yahoo.net/video/dplayer.html?vid=$1',
'width' => '420',
'height' => '370',
'extraparams' => array('allowFullScreen' => 'true'),
);
$embed[] = array(
'name' => 'Youku',
'enabled' => 1,
'pattern' => 'http://(?:v\.youku\.com/v_show/id_(?:[0-9a-z]{4})|player\.youku\.com/player\.php/sid/)([0-9a-z]{6,14})(?:.*?)',
'embedlink' => 'http://player.youku.com/player.php/sid/$1=/v.swf',
'width' => '450',
'height' => '372',
);
$embed[] = array(
'name' => 'YouTube',
'enabled' => 1,
'pattern' => 'http://(?:(?:www|uk|fr|ie|it|jp|pl|es|nl|br|au|hk|mx|nz|de|ca)\.|)youtube\.com/(?:(?:watch|)\?v=|v/|jp\.swf\?video_id=)([0-9A-Za-z-_]{11})(?:.*?)',
'embedlink' => 'http://www.youtube.com/v/$1',
'width' => '425',
'height' => '350',
);
$embed[] = array(
'name' => 'YouTube Playlist',
'enabled' => 1,
'pattern' => 'http://(?:(?:www|uk|fr|ie|it|jp|pl|es|nl|br|au|hk|mx|nz|de|ca)\.|)youtube\.com/(?:ep\.swf\?id=|view_play_list\?p=|p/)([0-9a-f]{16})(?:.*?)',
'embedlink' => 'http://www.youtube.com/p/$1',
'width' => '425',
'height' => '355',
);

// Max auto embeds *per page* to avoid flash overload. It only applies to this mod, and not other video mods
// Use -1 for no-limit (not recommended)
static $autoembedmax = 12 ;

// Protect any noembed links
if(preg_match_all('#\[noembed\](.*?)\[/noembed\]#im', $message, $noembed, PREG_SET_ORDER))
{
foreach ($noembed as $a => $b)
// Including the [noembed] ensures it will always be unique (since we are replacing [noembed])
$message = str_replace($b[0],'[noembed]###NOEMBEDPROTECTED#'.$a.'##[/noembed]',$message);
unset($a,$b);
}

// Now do the magic, convert those links in messages to automatically embed the videos
foreach($embed as $id => $arr)
{
// If this site is enabled and if we haven't reached our max replacements
if($arr['enabled'] && $autoembedmax != 0)
{
// Build the extraparams for <object> & <embed>
$object = $objectparams = $embedparams = '';
if(isset($arr['extraparams']) && is_array($arr['extraparams']))
{
foreach($arr['extraparams'] as $a => $b)
{
$objectparams .= '
<param name="'.$a.'" value="'.$b.'" />';
$embedparams .= ' '.$a.'="'.$b.'"';
}
}
// Build the <object> (Non-Mac IE Only)
if($context['browser']['is_ie'] && !$context['browser']['is_mac_ie'])
{
$object = '<object' .
' codebase="'.(empty($arr['codebase']) ? 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' : $arr['codebase'] ) .'" '.
( empty($arr['classid']) ? '' : 'classid="'.$arr['classid'].'" ' ) .
'type="'. (empty($arr['type']) ? 'application/x-shockwave-flash' : $arr['type'] ) .'" '.
'width="'.$arr['width'].'px" height="'.$arr['height'].'px">'.
'<param name="'.( empty($arr['src']) ? 'movie' : 'src' ).'" value="'.$arr['embedlink'].'" />'.
( !empty($objectparams) ? $objectparams : '' ) .
'<param name="wmode" value="transparent" /><param name="allowScriptAccess" value="never" />'.
'<param name="quality" value="high" /><param name="pluginspage" value="'.( empty($arr['pluginspage']) ? 'http://www.macromedia.com/go/getflashplayer' : $arr['pluginspage'] ) .'" />';
}

// Build the <embed>
$object .= '
<embed type="'. (empty($arr['type']) ? 'application/x-shockwave-flash' : $arr['type'] ) .'" '.
'src="'.$arr['embedlink'].'" width="'.$arr['width'].'px" height="'.$arr['height'].'px" '.
'AllowScriptAccess="never" quality="high" wmode="transparent"'.
( !empty($embedparams) ? $embedparams : '' ) .
' />'.
'<noembed><a href="'.$arr['embedlink'].'" target="_blank">'.$arr['embedlink'].'</a></noembed>';

// If using <object> remember to close it
if($context['browser']['is_ie'] && !$context['browser']['is_mac_ie'])
$object .= '</object>';

// Tidy up
unset($objectparams, $embedparams);

// Build the pattern/(re)set the count
$pattern = '#<a href="'.$arr['pattern'].'"(?:.*?)</a>#i'.($context['utf8'] ? 'u' : '') ;
$count = 0;

// Pre php 5.1.0, No count parameter, so do it the slower, inefficient way
if (@version_compare(PHP_VERSION, '5.1.0') == -1)
{
// Grab all the matches to count the no. of replacements that will be made
if(preg_match_all($pattern, $message, $out, PREG_PATTERN_ORDER))
{
$count = count($out[0]);
unset($out);
$message = preg_replace($pattern, $object, $message, $autoembedmax);
}
}
else
// Fantastic! From 5.1.0 we can use the count parameter
$message = preg_replace($pattern, $object, $message, $autoembedmax, $count);

// Reduce remaining replacements allowed
if($autoembedmax != -1)
$autoembedmax = $autoembedmax - $count;

// Tidy up
unset($object, $count);
}
}

// Reverse protection of noembed stuff
if(!empty($noembed))
{
foreach ($noembed as $a => $b)
$message = str_replace('[noembed]###NOEMBEDPROTECTED#'.$a.'##[/noembed]',$b[1] , $message);
}
// Tidy up
unset($embed,$pattern,$object,$arr,$count,$protect,$a,$b);
}
// Reset the status
$context['disableautoembedvideo'] = 0 ;
// END OF AUTO EMBED VIDEO CLIPS MOD
]]></add>
</operation>
</file>
</modification>
ไร้คอนเซปต์ ****** ออฟไลน์ ออฟไลน์ เพศ: ชาย พลังสะสม: 9130 นิค ณ ระยอง
ธันวาคม 28, 2007, 03:09:31 PM
ผลงาน: 6767
nick_indy
๛ เทพไร้คอนเซปต์ ๛
ไร้คอนเซปต์
******

ผลงาน: 6767
ออฟไลน์ ออฟไลน์

เพศ: ชาย
พลังสะสม: 9130


นิค ณ ระยอง

เว็บไซต์
« ตอบ #3 เมื่อ: ธันวาคม 28, 2007, 03:09:31 PM »
ให้ Copy โค๊ต นี้ไปใส่ ์otepad แล้ว Save เป็นไฟล์ชื่อ package-info.xml

โค๊ด:
<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<name>Auto Embed Video Clips</name>
<id>karlbenson:autoembedvideoclips</id>
<type>modification</type>
<version>1.9</version>

<install>
<readme type="file" parsebbc="true">readme.txt</readme>
<modification>install.xml</modification>
</install>

<uninstall>
<modification reverse="true">install.xml</modification>
</uninstall>
</package-info>
ขั้น 6 : ผู้อาวุโสแห่งบอร์ด *** ออฟไลน์ ออฟไลน์ เพศ: ชาย พลังสะสม: 1366 FOREX Stifler
ธันวาคม 28, 2007, 07:50:56 PM
ผลงาน: 70
nfs2fantasy
แฟนคลับ
ขั้น 6 : ผู้อาวุโสแห่งบอร์ด
***

ผลงาน: 70
ออฟไลน์ ออฟไลน์

เพศ: ชาย
พลังสะสม: 1366


FOREX Stifler

เว็บไซต์
« ตอบ #4 เมื่อ: ธันวาคม 28, 2007, 07:50:56 PM »
ขอบคุนมาก  ขยนัจิง
heavenseasky
มกราคม 01, 2008, 02:29:27 PM
ผลงาน: 0
heavenseasky
บุคคลไม่รู้ว่าใคร
« ตอบ #5 เมื่อ: มกราคม 01, 2008, 02:29:27 PM »
ขอบคุณมากค่ะ
ไร้คอนเซปต์ ****** ออฟไลน์ ออฟไลน์ เพศ: ชาย พลังสะสม: 9130 นิค ณ ระยอง
มกราคม 03, 2008, 03:47:22 PM
ผลงาน: 6767
nick_indy
๛ เทพไร้คอนเซปต์ ๛
ไร้คอนเซปต์
******

ผลงาน: 6767
ออฟไลน์ ออฟไลน์

เพศ: ชาย
พลังสะสม: 9130


นิค ณ ระยอง

เว็บไซต์
« ตอบ #6 เมื่อ: มกราคม 03, 2008, 03:47:22 PM »
ติดตั้ง กันได้ หรือเปล่า นะ
หน้า: [1]   ขึ้นบน
  พิมพ์  
 
กระโดดไป:  

Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!