• 29-12-2009, 18:40:04
    #1
    arkadaslar product-passivevid bu eklentiyi bilmeyen yoktur şimdi youtube linkini ekleyince videlar çıkıyordu ya ben bunu kendi proxy me cevirmek istedim oldu youtube linkini koyuyorum mesela

    http://www.youtube.com/watch?v=cwoMUmtCesY
    bunu koydum zaman otomatik kendi playarımda kendi logomda proxy ile video oynuyor fakat video ekleyince konuyu düzelt gibi dier şeyler çıkmıyor yanı videonun altında ne varsa göstermıyor nasıl yapabilirz nerde hata yaptım sizce eklenti kodları bu xml die kaydedersiniz

    <?xml version="1.0" encoding="ISO-8859-1"?>
    
    <product productid="passivevid" active="1">
    	<title>fobidik.net youtube bb kod</title>
    	<description>youtube linkini eklemeniz yeterli olacaktır.</description>
    	<version>1</version>
    	<url>http://fobidik.net</url>
    	<versioncheckurl />
    	<dependencies>
    	</dependencies>
    	<codes>
    	</codes>
    	<templates>
    	</templates>
    	<plugins>
    		<plugin active="1" executionorder="5">
    			<title>youtube linki ile video ekleme</title>
    			<hookname>editpost_update_process</hookname>
    			<phpcode><![CDATA[preg_match_all("#http://video.yahoo.com/video/play\?(.*?)vid=(\d+)(&matchid)?#s",$edit['message'], $urlmatch);
    	foreach ($urlmatch as $key => $urlmatch2) {
    	 	if (($urlmatch[2][$key] != '') && (!preg_match('#matchid#s',$urlmatch[0][$key]))) {
    		preg_match('#flashvars=\'id=(\d+)#s',file_get_contents("http://video.yahoo.com/video/play?vid=" . $urlmatch[2][$key]),$match);
    		$edit['message'] = preg_replace("#(\[URL=\"|\[URL\])?(http://video.yahoo.com/video/play\?(.*?)vid=".$urlmatch[2][$key].")(\"\](.*?)\[/URL\]|(.*?)\[/URL\])?#i", "http://video.yahoo.com/video/play?vid=".$urlmatch[2][$key]."&matchid=$match[1]",$edit['message']);
    		}
    	}]]></phpcode>
    		</plugin>
    		<plugin active="1" executionorder="4">
    			<title>fobidik.net Global Array</title>
    			<hookname>global_start</hookname>
    			<phpcode><![CDATA[if ($vbulletin->options['passiveVid_enabled'] && (in_array(THIS_SCRIPT,array('showthread','editpost','newreply','newthread','showpost','private','announcement','member')))) {
    // YouTube
    	$passiveVid[] = array (
    		'string' => '#(\[youtube\]|(<a[^\<\>]+href=\")?(http://)?([a-zA-Z]{1,4}\.)?youtube.com/watch\?v=)(.{11}?)([^"]+)?(([^\"]*)\" target=\"_blank\">)?((.*?)\[/youtube\]|[^\<\>]*</a>)?#i',
    		'replacement' => 'return \'<iframe id="player" scrolling="no" allowtransparency="true" style="border:0;background-color:transparent;width:525px;height:444px"src="http://fobidik.net/player.php?w=\'.$matches[5].\'"></param><param name="wmode" value="transparent"></param><embed src="http://fobidik.net/player.php?w=\'.$matches[5].\'" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>\';',
    		'id' => 1
    		);
    	$passiveVid[] = array (
    		'string' => '#(\[googlevideo\]|<a href=\"(http://)?video.google.([A-Za-z\.]{2,5})/videoplay\?docid=)([0-9\-]+)([^"><]+)?(\[/googlevideo\]|\" target=\"_blank\">(.*?)</a>)#i',
    		'replacement' => 'return \'<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=\'.$matches[4].\'&hl=en" flashvars=""> </embed>\';',
    		'id' => 2
    		);
    	// MySpace
    	$passiveVid[] = array (
    		'string' => '#(\[myspace\]|<a href=\"(http://)?vids.myspace.com/index.cfm\?fuseaction=vids\.individual&amp;VideoID=)(\d{8,15})(\[/myspace\]|\" target=\"_blank\">(.*?)</a>)#i',
    		'replacement' => 'return \'<embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=\'.$matches[3].\'&v=2&type=video" type="application/x-shockwave-flash" width="430" height="346"></embed>\';',
    		'id' => 4
    		);
    	// MetaCafe
    	$passiveVid[] = array (
    		'string' => '#(\[metacafe\]|<a href=\"(http://)?www.metacafe.com/watch/)([0-9]*)\/([A-Za-z0-9_]*).*(\[/metacafe\]|\" target=\"_blank\">(.*?)</a>)#i',
    		'replacement' => 'return \'<embed src="http://www.metacafe.com/fplayer/\'.$matches[3].\'/\'.$matches[4].\'.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+)&amp;matchid=(\d+)(.*?)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<embed src="http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf" flashvars="vid=\'.$matches[3].\'&id=\'.$matches[4].\'" type="application/x-shockwave-flash" width="425" height="350"></embed>\';',
    		'id' => 16
    		);
    	// Koreus
    	$passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?www.koreus.com/video/(.{2,20}).html(.*?)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<object type="application/x-shockwave-flash" data="http://www.koreus.com/video/\'.$matches[3].\'" height="320" width="400"><param name="movie" value="http://www.koreus.com/video/\'.$matches[3].\'"></object>\';',
    		'id' => 32
    		);
    	// Sapo
    	$passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?videos.sapo.pt/(.{20})(.*?)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<embed src="http://imgs.sapo.pt/sapovideo/swf/flvplayer-sapo.swf?file=http://rd3.videos.sapo.pt/\'.$matches[3].\'/mov/1" type="application/x-shockwave-flash" width="400" height="325" wmode="transparent"></embed>\';',
    		'id' => 64
    		);
    	// Live Leak
    	$passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?(www\.)?liveleak.com/view\?i=(.{14})(.*?)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<embed src="http://www.liveleak.com/player.swf" width="450" height="370" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="autostart=false&token=\'.$matches[4].\'" scale="showall" name="index"></embed>\';',
    		'id' => 256
    		);
    	// Game Trailers
    	$passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?(www\.)?gametrailers.com/player/usermovies/(\d+).html(.*?)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="409"><param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?umid=\'.$matches[5].\'"/> <param name="quality" value="high" /><embed src="http://www.gametrailers.com/remote_wrap.php?umid=\'.$matches[5].\'" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="409"></embed> </object>\';',
    		'id' => 512
    		);
    	$passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?(www\.)?gametrailers.com/player/(\d+).html(.*?)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="409"><param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid=\'.$matches[4].\'"/> <param name="quality" value="high" /><embed src="http://www.gametrailers.com/remote_wrap.php?mid=\'.$matches[4].\'" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="409"></embed> </object>\';',
    		'id' => 512
    		);
    	// Street Fire
    	$passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?videos\.streetfire\.net/video/([A-Za-z0-9\-]+)\.htm(.*?)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<embed src="http://videos.streetfire.net/vidiac.swf" FlashVars="video=\'.$matches[3].\'" quality="high" bgcolor="#ffffff" width="428" height="352" name="ePlayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>\';',
    		'id' => 1024
    		);
    	// VEOH
    	$passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?(www\.)?veoh\.com/videos/([A-Za-z0-9]+)(.*?)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<embed src="http://www.veoh.com/videodetails2.swf?permalinkId=\'.$matches[4].\'&id=anonymous&player=videodetailsembedded&videoAutoPlay=0" allowFullScreen="true" width="540" height="438" bgcolor="#000000" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>\';',
    		'id' => 2048
    		);
    	// MyVideo.de
    	$passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?(www\.)?myvideo\.de/watch/(\d+)(.*?)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<object style="width:470px;height:406px;" type="application/x-shockwave-flash" data="http://www.myvideo.de/movie/\'.$matches[4].\'"> <param name="movie" value="http://www.myvideo.de/movie/\'.$matches[4].\'"/>	<param name="FlashVars" value="DESTSERVER=http://www.myvideo.de&LINKTEXT=MyVideo"/> <param name="AllowFullscreen" value="true" /></object>\';',
    		'id' => 4096
    		);
    	// GameSpot
    	$passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?(www\.)?gamespot\.com/video/(\d+)/(\d+)(.*?)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<embed id="mymovie" width="432" height="355" flashvars="paramsURI=http%3A%2F%2Fwww%2Egamespot%2Ecom%2Fpages%2Fvideo%5Fplayer%2Fproteus%5Fxml%2Ephp%3Fadseg%3D761515%26adgrp%3D11542%26sid%3D\'.$matches[5].\'%26pid%3D\'.$matches[4].\'%26mb%3D%26onid%3D%26nc%3D1193358559372%26embedded%3D1%26showWatermark%3D0%26autoPlay%3D0" allowfullscreen="true" allowscriptaccess="always" quality="high" name="mymovie" src="http://image.com.com/gamespot/images/cne_flash/production/media_player/proteus/gs/proteus_embed.swf" type="application/x-shockwave-flash"/>\';',
    		'id' => 8192
    		);
    	// Stage6
    	$passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?stage6.divx.com/[a-zA-Z0-9/]+video/(\d+)(.*?)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<object codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab" height="480" width="640" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"><param name="autoplay" value="false"><param name="src" value="http://video.stage6.com/\'.$matches[3].\'/.divx" /><param name="custommode" value="Stage6" /><param name="showpostplaybackad" value="false" /><embed type="video/divx" src="http://video.stage6.com/\'.$matches[3].\'/.divx" pluginspage="http://go.divx.com/plugin/download/" showpostplaybackad="false" custommode="Stage6" autoplay="false" height="480" width="640" /></object>\';',
    		'id' => 16384
    		);
    	// SevenLoad
    	$passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?\w{2}.sevenload.com/videos/([A-Za-z0-9]+)(.*?)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<object width="425" height="350"><param name="FlashVars" value="apiHost=api.sevenload.com"/><param name="movie" value="http://en.sevenload.com/pl/\'.$matches[3].\'/425x350/swf" /><embed src="http://en.sevenload.com/pl/\'.$matches[3].\'/425x350/swf" type="application/x-shockwave-flash" width="425" height="350" allowfullscreen="true" FlashVars="apiHost=api.sevenload.com"></embed></object>\';',
    		'id' => 32768
    		);
    	// Izlesene
    	$passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?(www\.)?http://www.izlesene.com/video/[a-zA-Z0-9]+/(\d+)(.*?)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<object width="432" height="344"><param name="movie" value="http://www.izlesene.com/player2.swf?video=\'.$matches[4].\'"></param><param name="wmode" value="transparent"></param><embed src="http://www.izlesene.com/player2.swf?video=\'.$matches[4].\'" wmode="transparent" width="432" height="344" type="application/x-shockwave-flash"></embed></object>\';',
    		'id' => 65536
    		);
    	// Vidiac
    	$passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?([A-Za-z0-9\-]+)\.vidiac\.com/video/([A-Za-z0-9\-]+)\.htm(.*?)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<embed src="http://\'.$matches[3].\'.vidiac.com/vidiac.swf" FlashVars="video=\'.$matches[4].\'" quality="high" bgcolor="#ffffff" width="428" height="352" name="ePlayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>\';',
    		'id' => 131072
    		);
    	// Xtube
    	$passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?([A-Za-z0-9\-]+).xtube.com/watch_video.php\?cv=(\d+)&amp;idx=(\d+)&amp;v=([A-Za-z0-9\-\_]+)&amp;cl=([A-Za-z0-9\-\_]+)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="499" height="428" id="player" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://pc\'.$matches[5].\'.xtube.com/embed_player.swf?idx=pc\'.$matches[5].\'&auto=0&video_id=\'.$matches[6].\'&clip_id=\'.$matches[7].\'" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="http://pc\'.$matches[5].\'.xtube.com/embed_player.swf?idx=\'.$matches[5].\'&auto=0&video_id=\'.$matches[6].\'&clip_id=\'.$matches[7].\'" quality="high" bgcolor="#ffffff" width="499" height="428" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>\';',
    		'id' => 262144
    		);
    	// Vidmax
    	$passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?(www\.)?vidmax.com/index.php/videos/view/(\d+)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<embed src="http://vidmax.com/img/vidmax_player.swf" width="450" height="447" bgcolor="#FFFFFF" type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="xml=http://vidmax.com/index.php/videos/playlist/&id=\'.$matches[4].\'&autoPlay=false&bg=http://vidmax.com/img/back.jpg" scale="showall" name="index" />\';',
    		'id' => 524288
    		);
    	// Redtube
    	$passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?(www\.)?redtube\.com/(\d+)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<object height="344" width="434"><param name="movie" value="http://embed.redtube.com/player/"><param name="FlashVars" value="id=\'.$matches[4].\'&style=redtube"><embed src="http://embed.redtube.com/player/?id=\'.$matches[4].\'&style=redtube" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" height="344" width="434"></object>\';',
    		'id' => 1048576
    		);
    	// Onsmash
    	$passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?videos.onsmash.com/v/([A-Za-z0-9]+)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<object width="448" height="374"><param name="movie" value="http://videos.onsmash.com/e/\'.$matches[3].\'"></param><embed src="http://videos.onsmash.com/e/\'.$matches[3].\'" type="application/x-shockwave-flash" width="448" height="374"></embed></object>\';',
    		'id' => 2097152
    		);
    	// Godtube
    	$passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?(www\.)?godtube.com/view_video.php\?viewkey=([A-Za-z0-9]+)(.*?\" target=\"_blank\">.*?</a>)?#i',
    		'replacement' => 'return \'<embed src="http://godtube.com/flvplayer.swf" FlashVars="viewkey=\'.$matches[4].\'" wmode="transparent" quality="high" width="330" height="270" name="godtube" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>\';',
    		'id' => 4194304
    		);					
    	// PornoTube		
    	 $passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?(www\.)?pornotube.com/media.php\?m=(\d+)(.*?\" target=\"_blank\">.*?</a>)?#',
    		'replacement' => 'return \'<embed src="http://pornotube.com/player/v.swf?v=\' . base64_encode("m=" . $matches[4] . "&amp;local=false") . \'" loop="false" quality="high" width="480" height="400" name="pornoPlayer" allowfullscreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\';',
    		'id' => 8388608
    		);
    	// PhotoBucket
    	 $passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?(www\.)?photobucket.com/mediadetail/\?media=(http%3A%2F%2Fphotobucket.com)?%2Fplayer.swf%3Ffile%3D(.*\.flv)(.*?\" target=\"_blank\">.*?</a>)?#',
    		'replacement' => 'return \'<embed width="448" height="361" type="application/x-shockwave-flash" wmode="transparent" src="http://vid138.photobucket.com/player.swf?file=\'.urldecode($matches[5]).\'"></embed>\';',
    		'id' => 16777216 
    		);
    	 $passiveVid[] = array (
    		'string' => '#(?:<a href=\")?(?:http://)?s(\d+).photobucket.com/albums/([A-Za-z0-9\-\_\/]+)\?action=view&amp;current=([A-Za-z0-9\-\_]+)(?:.*\.flv)(?:.*?\" target=\"_blank\">.*?</a>)?#',
    		'replacement' => 'return \'<embed width="448" height="361" type="application/x-shockwave-flash" wmode="transparent" src="http://i\'.$matches[1].\'.photobucket.com/player.swf?file=http://vid\'.$matches[1].\'.photobucket.com/albums/\'.$matches[2].$matches[3].\'.flv"></embed>\';',
    		'id' => 16777216 
    		);
    	// BrightCove
    	 $passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?(www\.)?brightcove.tv/title.jsp\?title=(\d+)([^\"\<\>]+)?(.*?\" target=\"_blank\">.*?</a>)?#',
    		'replacement' => 'return \'<embed src="http://www.brightcove.tv/playerswf" bgcolor="#FFFFFF" flashVars="initVideoId=\'.$matches[4].\'&servicesURL=http://www.brightcove.tv&viewerSecureGatewayURL=https://www.brightcove.tv&cdnURL=http://admin.brightcove.com&autoStart=false" base="http://admin.brightcove.com" name="bcPlayer" width="486" height="412" allowFullScreen="true" allowScriptAccess="always" seamlesstabbing="false" type="application/x-shockwave-flash" swLiveConnect="true" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>\';',
    		'id' => 33554432 
    		);
    	// YouKu
    	 $passiveVid[] = array (
    		'string' => '#(<a href=\")?(http://)?http://([a-zA-Z0-0]{1,3}.)?youku.com/v_show/id_[a-zA-Z0-9]{4}([A-Za-z0-9\-\=]+)=\.html([^\"\<\>]+)?(.*?\" target=\"_blank\">.*?</a>)?#',
    		'replacement' => 'return \'<embed src="http://player.youku.com/player.php/sid/\'.$matches[4].\'/v.swf" quality="high" width="450" height="372" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"></embed>\';',
    		'id' => 67108864 
    		);
    	// LiveVideo
    	 $passiveVid[] = array (
    		'string' => '#(?:<a href=\")?(?:http://)?(?:www\.)?livevideo.com/video/(?:[^\/]+/)?([A-Za-z0-9]{32})/[A-Za-z0-9\-\_]+\.aspx(.*?\" target=\"_blank\">.*?</a>)?#',
    		'replacement' => 'return \'<embed src="http://www.livevideo.com/flvplayer/embed/\'.$matches[1].\'" type="application/x-shockwave-flash" quality="high" WIDTH="445" HEIGHT="369" wmode="transparent"></embed>\';',
    		'id' => 134217728 
    		);
    	
    }]]></phpcode>
    		</plugin>
    		<plugin active="1" executionorder="5">
    			<title>fobidik.net</title>
    			<hookname>newreply_form_complete</hookname>
    			<phpcode><![CDATA[if ($vbulletin->options['passiveVid_enabled']) {
    	global $passiveVid;
    	foreach ($passiveVid as $k => $v) {
    		if($vbulletin->options['passiveVid_sites'] & $v['id'] ) {
    			$postpreview = preg_replace_callback($v['string'],create_function('$matches',$v['replacement']),$postpreview);
    		}
    	}
    }]]></phpcode>
    		</plugin>
    		<plugin active="1" executionorder="5">
    			<title>fobidik.net</title>
    			<hookname>newreply_post_start</hookname>
    			<phpcode><![CDATA[preg_match_all("#http://video.yahoo.com/video/play\?(.*?)vid=(\d+)(&matchid)?#s",$vbulletin->GPC['message'], $urlmatch);
    	foreach ($urlmatch as $key => $urlmatch2) {
    	 	if (($urlmatch[2][$key] != '') && (!preg_match('#matchid#s',$urlmatch[0][$key]))) {
    		preg_match('#flashvars=\'id=(\d+)#s',file_get_contents("http://video.yahoo.com/video/play?vid=" . $urlmatch[2][$key]),$match);
    		$vbulletin->GPC['message'] = preg_replace("#(\[URL=\"|\[URL\])?(http://video.yahoo.com/video/play\?(.*?)vid=".$urlmatch[2][$key].")(\"\](.*?)\[/URL\]|(.*?)\[/URL\])?#i", "http://video.yahoo.com/video/play?vid=".$urlmatch[2][$key]."&matchid=$match[1]",$vbulletin->GPC['message']);
    		}
    	}]]></phpcode>
    		</plugin>
    		<plugin active="1" executionorder="5">
    			<title>fobidik.net</title>
    			<hookname>newthread_form_complete</hookname>
    			<phpcode><![CDATA[if ($vbulletin->options['passiveVid_enabled']) {
    	global $passiveVid;
    	foreach ($passiveVid as $k => $v) {
    		if($vbulletin->options['passiveVid_sites'] & $v['id'] ) {
    			$postpreview = preg_replace_callback($v['string'],create_function('$matches',$v['replacement']),$postpreview);
    		}
    	}
    }]]></phpcode>
    		</plugin>
    		<plugin active="1" executionorder="5">
    			<title>fobidik.net</title>
    			<hookname>newthread_post_start</hookname>
    			<phpcode><![CDATA[preg_match_all("#http://video.yahoo.com/video/play\?(.*?)vid=(\d+)(&matchid)?#s",$vbulletin->GPC['message'], $urlmatch);
    	foreach ($urlmatch as $key => $urlmatch2) {
    	 	if (($urlmatch[2][$key] != '') && (!preg_match('#matchid#s',$urlmatch[0][$key]))) {
    		preg_match('#flashvars=\'id=(\d+)#s',file_get_contents("http://video.yahoo.com/video/play?vid=" . $urlmatch[2][$key]),$match);
    		$vbulletin->GPC['message'] = preg_replace("#(\[URL=\"|\[URL\])?(http://video.yahoo.com/video/play\?(.*?)vid=".$urlmatch[2][$key].")(\"\](.*?)\[/URL\]|(.*?)\[/URL\])?#i", "http://video.yahoo.com/video/play?vid=".$urlmatch[2][$key]."&matchid=$match[1]",$vbulletin->GPC['message']);
    		}
    	}]]></phpcode>
    		</plugin>
    		<plugin active="1" executionorder="5">
    			<title>Fobidik.Net</title>
    			<hookname>postbit_display_complete</hookname>
    			<phpcode><![CDATA[global $passiveVid;
    if ($this->registry->options['passiveVid_enabled']) {
    	foreach ($passiveVid as $k => $v) {
    		if( $this->registry->options['passiveVid_sites'] & $v['id'] ) {
    			$this->post['message'] = preg_replace_callback($v['string'],create_function('$matches',$v['replacement']),$this->post['message']);
    		}
    	}
    }]]></phpcode>
    		</plugin>
    	</plugins>
    	<phrases>
    		<phrasetype name="Permissions" fieldname="cppermission">
    			<phrase name="passiveVid_sites_brightcove" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[BrightCove]]></phrase>
    			<phrase name="passiveVid_sites_gamespot" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[GameSpot]]></phrase>
    			<phrase name="passiveVid_sites_gametrailers" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[GameTrailers]]></phrase>
    			<phrase name="passiveVid_sites_godtube" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[GodTube]]></phrase>
    			<phrase name="passiveVid_sites_google" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Google]]></phrase>
    			<phrase name="passiveVid_sites_googleuk" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Google UK]]></phrase>
    			<phrase name="passiveVid_sites_izlesene" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Izlesene]]></phrase>
    			<phrase name="passiveVid_sites_koreus" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Koreus]]></phrase>
    			<phrase name="passiveVid_sites_liveleak" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[LiveLeak]]></phrase>
    			<phrase name="passiveVid_sites_livevideo" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[LiveVideo]]></phrase>
    			<phrase name="passiveVid_sites_metacafe" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[MetaCafe]]></phrase>
    			<phrase name="passiveVid_sites_myspace" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[MySpace]]></phrase>
    			<phrase name="passiveVid_sites_myvideo" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[MyVideo]]></phrase>
    			<phrase name="passiveVid_sites_onsmash" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Onsmash]]></phrase>
    			<phrase name="passiveVid_sites_photobucket" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[PhotoBucket]]></phrase>
    			<phrase name="passiveVid_sites_pornotube" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[PornoTube]]></phrase>
    			<phrase name="passiveVid_sites_redtube" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Redtube]]></phrase>
    			<phrase name="passiveVid_sites_sapo" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Sapo]]></phrase>
    			<phrase name="passiveVid_sites_sevenload" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[SevenLoad]]></phrase>
    			<phrase name="passiveVid_sites_stage6" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Stage6]]></phrase>
    			<phrase name="passiveVid_sites_streetfire" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[StreetFire]]></phrase>
    			<phrase name="passiveVid_sites_veoh" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[VEOH]]></phrase>
    			<phrase name="passiveVid_sites_vidiac" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Vidiac]]></phrase>
    			<phrase name="passiveVid_sites_vidmax" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Vidmax]]></phrase>
    			<phrase name="passiveVid_sites_xtube" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Xtube]]></phrase>
    			<phrase name="passiveVid_sites_yahoo" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Yahoo]]></phrase>
    			<phrase name="passiveVid_sites_youku" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[YouKu]]></phrase>
    			<phrase name="passiveVid_sites_youtube" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[YouTube]]></phrase>
    		</phrasetype>
    		<phrasetype name="Settings" fieldname="vbsettings">
    			<phrase name="setting_passiveVid_enabled_desc" date="0" username="Coders Shack" version="1.0"><![CDATA[Eklnetinin Çalışması İçin Evet Seçili Olsun.]]></phrase>
    			<phrase name="setting_passiveVid_enabled_title" date="0" username="Coders Shack" version="1.0"><![CDATA[Eklentim Aktif Olsun!]]></phrase>
    			<phrase name="setting_passiveVid_sites_desc" date="1179155117" username="Coders Shack" version="1.0"><![CDATA[Sadece youtube linkini ekleyerek videolarınızı oynatabilirsiniz.]]></phrase>
    			<phrase name="setting_passiveVid_sites_title" date="1179155117" username="Coders Shack" version="1.0"><![CDATA[Proxy Entegreli Youtube]]></phrase>
    			<phrase name="settinggroup_passiveVid_settings" date="0" username="Coders Shack" version="1.0"><![CDATA[Youtube Video Ekleme]]></phrase>
    		</phrasetype>
    	</phrases>
    	<options>
    		<settinggroup name="passiveVid_settings" displayorder="570">
    			<setting varname="passiveVid_enabled" displayorder="10">
    				<datatype>boolean</datatype>
    				<optioncode>yesno</optioncode>
    				<defaultvalue>1</defaultvalue>
    			</setting>
    			<setting varname="passiveVid_sites" displayorder="50">
    				<datatype>bitfield</datatype>
    				<optioncode>bitfield:nocache|passiveVid_allowedsites</optioncode>
    				<defaultvalue>16777215</defaultvalue>
    			</setting>
    		</settinggroup>
    	</options>
    	<helptopics>
    	</helptopics>
    	<cronentries>
    	</cronentries>
    	<faqentries>
    	</faqentries>
    </product>
  • 29-12-2009, 22:20:56
    #2
    güncellll???