Показать сообщение отдельно
Старый 14.01.2011, 21:15 Вверх   #16
Уважаемая личность
 
Аватар для foozzi
foozzi вне форума
Доп. информация
По умолчанию

Цитата Сообщение от Bahok Посмотреть сообщение
1.Остался один шаблончик... в хаке WarLion online/offline

изменение прозрачности аватара когда онлайн или офлайн.. не хотелось бы удалять этот хак!

шаблон warlion_postbit_onlinestatusmod (2)

Есть варианты как решить данную проблему иным способом?

2. Что бы не создавать новую тему,еще один вопрос в хаке product-passivevid вставка видео с различных сервисов, как можно и где изменить что бы после вставки в сообщение ссылки не было на само видео.. вот пример

вот сам код продукта

PHP код:
<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="passivevid" active="1">
    <title>passiveVid</title>
    <description>Вставляет видео с популрных видио-хостингов</description>
    <version>1.1.1</version>
    <url>http://vbsale.ru</url>
    <versioncheckurl />
    <dependencies>
    </dependencies>
    <codes>
    </codes>
    <templates>
    </templates>
    <plugins>
        <plugin active="1" executionorder="5">
            <title>passiveVid - Blog Replacement</title>
            <hookname>blog_entry_complete</hookname>
            <phpcode><![CDATA[if ($vbulletin->options['passiveVid_enabled']) {
    global $passiveVid;
    foreach ($passiveVid as $k => $v) {
        if($vbulletin->options['passiveVid_sites'] & $v['id'] ) {
            $blog['message'] = preg_replace_callback($v['string'],create_function('$matches',$v['replacement']),$blog['message']);
        }
    }
}]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>passiveVid - Blog Update</title>
            <hookname>blog_post_updateentry_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']);
        }
    }
    preg_match_all("#(?:http://)?(?:www\.)?break.com/index/([^\.]+).html(\?matchid)?#s",$vbulletin->GPC['message'], $urlmatch);
    foreach ($urlmatch as $key => $urlmatch2) {
         if (($urlmatch[1][$key] != '') && (!preg_match('#matchid#s',$urlmatch[0][$key]))) {
        preg_match('#value="http://embed.break.com/([^"]+)"#',file_get_contents("http://www.break.com/index/" . $urlmatch[1][$key] . ".html"),$match);
        $vbulletin->GPC['message'] = preg_replace("#(\[URL=\"|\[URL\])?((?:http://)?(?:www\.)?break.com/index/".$urlmatch[1][$key].".html)(\"\](.*?)\[/URL\]|(.*?)\[/URL\])?#i", "http://break.com/index/".$urlmatch[1][$key].".html?matchid=$match[1]",$vbulletin->GPC['message']);
        }
    }]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>passiveVid - Edit Post Update</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']);
        }
    }
    preg_match_all("#(?:http://)?(?:www\.)?break.com/index/([^\.]+).html(\?matchid)?#s",$edit['message'], $urlmatch);
    foreach ($urlmatch as $key => $urlmatch2) {
         if (($urlmatch[1][$key] != '') && (!preg_match('#matchid#s',$urlmatch[0][$key]))) {
        preg_match('#value="http://embed.break.com/([^"]+)"#',file_get_contents("http://www.break.com/index/" . $urlmatch[1][$key] . ".html"),$match);
        $edit['message'] = preg_replace("#(\[URL=\"|\[URL\])?((?:http://)?(?:www\.)?break.com/index/".$urlmatch[1][$key].".html)(\"\](.*?)\[/URL\]|(.*?)\[/URL\])?#i", "http://break.com/index/".$urlmatch[1][$key].".html?matchid=$match[1]",$edit['message']);
        }
    }]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="4">
            <title>passiveVid - 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','blog','adv_index','usernote')))) {
    if ($vbulletin->options['passiveVid_custom_enabled']) {
        $customstring = preg_replace("#\"#","'",$vbulletin->options['passiveVid_custom_str']);
    } else {
        $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="425" height="350"><param name="movie" value="http://www.youtube.com/v/\'.$matches[1].\'"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\'.$matches[1].\'" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></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].\'"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\'.$matches[1].\'" 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&amp;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+)&amp;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
        );
    // Koreus
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?koreus.com/video/([^\.]+).html(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object type="application/x-shockwave-flash" data="http://www.koreus.com/video/\'.$matches[1].\'" height="320" width="400"><param name="movie" value="http://www.koreus.com/video/\'.$matches[1].\'"></object>\'; return "'.$customstring.'";',
        'id' => 32
        );
    // Sapo
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://imgs.sapo.pt/sapovideo/swf/flvplayer-sapo.swf?file=http://rd3.
        'id' => 64
        );
    // Live Leak
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?liveleak.com/view\?i=(.{14})(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<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[1].\'" scale="showall" name="index"></embed>\'; return "'.$customstring.'";',
        'id' => 256
        );
    // Game Trailers
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?gametrailers.com/player/(\d+).html(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<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[1].\'"/> <param name="quality" value="high" /><embed src="http://www.gametrailers.com/remote_wrap.php?mid=\'.$matches[1].\'" 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>\'; return "'.$customstring.'";',
        'id' => 512
        );
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?gametrailers.com/player/usermovies/(\d+).html(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<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[1].\'"/> <param name="quality" value="high" /><embed src="http://www.gametrailers.com/remote_wrap.php?umid=\'.$matches[1].\'" 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>\'; return "'.$customstring.'";',
        'id' => 512
        );
    // Street Fire
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?videos.streetfire.net/video/([A-Za-z0-9\-]+)\.htm(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://videos.streetfire.net/vidiac.swf" FlashVars="video=\'.$matches[1].\'" 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>\'; return "'.$customstring.'";',
        'id' => 1024
        );
    // VEOH
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?veoh.com/videos/([A-Za-z0-9]+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://www.veoh.com/videodetails2.swf?permalinkId=\'.$matches[1].\'&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>\'; return "'.$customstring.'";',
        'id' => 2048
        );    
    // MyVideo.de
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?myvideo.de/watch/(\d+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object style="width:470px;height:406px;" type="application/x-shockwave-flash" data="http://www.myvideo.de/movie/\'.$matches[1].\'"> <param name="movie" value="http://www.myvideo.de/movie/\'.$matches[1].\'"/>    <param name="FlashVars" value="DESTSERVER=http://www.myvideo.de&LINKTEXT=MyVideo"/> <param name="AllowFullscreen" value="true" /></object>\'; return "'.$customstring.'";',
        'id' => 4096
        );
    // GameSpot
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?gamespot.com/video/(\d+)/(\d+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<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[2].\'%26pid%3D\'.$matches[1].\'%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"/>\'; return "'.$customstring.'";',
        'id' => 8192
        );
    // Stage6
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:stage6\.divx|(?:www\.)?stage6).com/[^"]+video/(\d+)/(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<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[1].\'/.divx" /><param name="custommode" value="Stage6" /><param name="showpostplaybackad" value="false" /><embed type="video/divx" src="http://video.stage6.com/\'.$matches[1].\'/.divx" pluginspage="http://go.divx.com/plugin/download/" showpostplaybackad="false" custommode="Stage6" autoplay="false" height="480" width="640" /></object>\'; return "'.$customstring.'";',
        'id' => 16384
        );
    // SevenLoad
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?\w{2}.sevenload.com/videos/([A-Za-z0-9]+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object width="425" height="350"><param name="FlashVars" value="apiHost=api.sevenload.com"/><param name="movie" value="http://en.sevenload.com/pl/\'.$matches[1].\'/425x350/swf" /><embed src="http://en.sevenload.com/pl/\'.$matches[1].\'/425x350/swf" type="application/x-shockwave-flash" width="425" height="350" allowfullscreen="true" FlashVars="apiHost=api.sevenload.com"></embed></object>\'; return "'.$customstring.'";',
        'id' => 32768
        );
    // Izlesene
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?izlesene.com/video/[^\/]+/(\d+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object width="432" height="344"><param name="movie" value="http://www.izlesene.com/player2.swf?video=\'.$matches[1].\'"></param><param name="wmode" value="transparent"></param><embed src="http://www.izlesene.com/player2.swf?video=\'.$matches[1].\'" wmode="transparent" width="432" height="344" type="application/x-shockwave-flash"></embed></object>\'; return "'.$customstring.'";',
        'id' => 65536
        );
    // Vidiac
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?([A-Za-z0-9\-]+)\.vidiac.com/video/([A-Za-z0-9\-]+)\.htm(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[3]; $PASSIVEEMBED = \'<embed src="http://\'.$matches[1].\'.vidiac.com/vidiac.swf" FlashVars="video=\'.$matches[2].\'" 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>\'; return "'.$customstring.'";',
        'id' => 131072
        );
    // Xtube
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:[^\.]+\.)?xtube.com/watch_video.php\?cv=\d+&amp;idx=(\d+)&amp;v=([A-Za-z0-9\-\_]+)&amp;cl=([A-Za-z0-9\-\_]+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[4]; $PASSIVEEMBED = \'<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[1].\'.xtube.com/embed_player.swf?idx=pc\'.$matches[1].\'&auto=0&video_id=\'.$matches[2].\'&clip_id=\'.$matches[3].\'" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="http://pc\'.$matches[1].\'.xtube.com/embed_player.swf?idx=\'.$matches[1].\'&auto=0&video_id=\'.$matches[2].\'&clip_id=\'.$matches[3].\'" 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>\'; return "'.$customstring.'";',
        'id' => 262144
        );
    // Vidmax
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?vidmax.com/index.php/videos/view/(\d+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<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[1].\'&autoPlay=false&bg=http://vidmax.com/img/back.jpg" scale="showall" name="index" />\'; return "'.$customstring.'";',
        'id' => 524288
        );
    // Redtube
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?redtube.com/(\d+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object height="344" width="434"><param name="movie" value="http://embed.redtube.com/player/"><param name="FlashVars" value="id=\'.$matches[1].\'&style=redtube"><embed src="http://embed.redtube.com/player/?id=\'.$matches[1].\'&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>\'; return "'.$customstring.'";',
        'id' => 1048576
        );
    // Onsmash
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?videos.onsmash.com/v/([A-Za-z0-9]+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object width="448" height="374"><param name="movie" value="http://videos.onsmash.com/e/\'.$matches[1].\'"></param><embed src="http://videos.onsmash.com/e/\'.$matches[1].\'" type="application/x-shockwave-flash" width="448" height="374"></embed></object>\'; return "'.$customstring.'";',
        'id' => 2097152
        );
    // Godtube            
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?godtube.com/view_video.php\?viewkey=([A-Za-z0-9]+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://godtube.com/flvplayer.swf" FlashVars="viewkey=\'.$matches[1].\'" 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>\'; return "'.$customstring.'";',
        'id' => 4194304
        );
    // PornoTube        
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?pornotube.com/media.php\?m=(\d+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://pornotube.com/player/v.swf?v=\' . base64_encode("m=" . $matches[1] . "&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" />\'; return "'.$customstring.'";',
        'id' => 8388608
        );
    // PhotoBucket
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?photobucket.com/mediadetail/\?media=(?:http%3A%2F%2Fphotobucket.com)?%2Fplayer.swf%3Ffile%3D(.*\.flv)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed width="448" height="361" type="application/x-shockwave-flash" wmode="transparent" src="http://vid138.photobucket.com/player.swf?file=\'.urldecode($matches[1]).\'"></embed>\'; return "'.$customstring.'";',
        '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)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[4]; $PASSIVEEMBED = \'<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>\'; return "'.$customstring.'";',
        'id' => 16777216
        );
    // BrightCove
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?brightcove.tv/title.jsp\?title=(\d+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://www.brightcove.tv/playerswf" bgcolor="#FFFFFF" flashVars="initVideoId=\'.$matches[1].\'&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>\'; return "'.$customstring.'";',
        'id' => 33554432
        );
    // YouKu
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:[a-zA-Z0-0]{1,3}.)?youku.com/v_show/id_[a-zA-Z0-9]{4}([A-Za-z0-9\-\=]+)=\.html(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://player.youku.com/player.php/sid/\'.$matches[1].\'/v.swf" quality="high" width="450" height="372" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"></embed>\'; return "'.$customstring.'";',
        'id' => 67108864
        );
    // LiveVideo
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?livevideo.com/video/(?:[^\/]+/)?([A-Za-z0-9]{32})/[A-Za-z0-9\-\_]+\.aspx(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<embed src="http://www.livevideo.com/flvplayer/embed/\'.$matches[1].\'" type="application/x-shockwave-flash" quality="high" WIDTH="445" HEIGHT="369" wmode="transparent"></embed>\'; return "'.$customstring.'";',
        'id' => 134217728
        );
    // Break
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:www\.)?break.com/index/[^\.]+.html\?matchid=([A-Za-z0-9]+)(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object width="464" height="392"><param name="movie" value="http://embed.break.com/\'.$matches[1].\'"></param><embed src="http://embed.break.com/\'.$matches[1].\'" type="application/x-shockwave-flash" width="464" height="392"></embed></object>\'; return "'.$customstring.'";',
        'id' => 268435456
        );
    /*
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:[^"]+)?[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'\'; return "'.$customstring.'";',
        'id' => 32
        );
    */
    // RuTube
    $passiveVid[] = array (
        'string' => '#(?:<a[^\<\>]+href=\")?(?:http://)?(?:[a-zA-Z]{1,4}\.)?rutube.ru/tracks/[a-z0-9]*\.html\?v=(.{32}?)[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
        'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object width="425" height="350"><param name="movie" value="http://video.rutube.ru/\'.$matches[1].\'"></param><param name="wmode" value="transparent"></param><embed src="http://video.rutube.ru/\'.$matches[1].\'" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>\'; return "'.$customstring.'";',
        'id' => 536870912
        );
    $passiveVid[] = array (
        'string' => '#\[rutube\]([^\[\]]+)\[/rutube\]#',
        'replacement' => 'return \'<object width="425" height="350"><param name="movie" value="http://video.rutube.ru/\'.$matches[1].\'"></param><param name="wmode" value="transparent"></param><embed src="http://video.rutube.ru/\'.$matches[1].\'" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>\';',
        'id' => 536870912
        );
}]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>passiveVid - Preview Replacement</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>passiveVid - New Reply Update</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']);
        }
    }
    preg_match_all("#(?:http://)?(?:www\.)?break.com/index/([^\.]+).html(\?matchid)?#s",$vbulletin->GPC['message'], $urlmatch);
    foreach ($urlmatch as $key => $urlmatch2) {
         if (($urlmatch[1][$key] != '') && (!preg_match('#matchid#s',$urlmatch[0][$key]))) {
        preg_match('#value="http://embed.break.com/([^"]+)"#',file_get_contents("http://www.break.com/index/" . $urlmatch[1][$key] . ".html"),$match);
        $vbulletin->GPC['message'] = preg_replace("#(\[URL=\"|\[URL\])?((?:http://)?(?:www\.)?break.com/index/".$urlmatch[1][$key].".html)(\"\](.*?)\[/URL\]|(.*?)\[/URL\])?#i", "http://break.com/index/".$urlmatch[1][$key].".html?matchid=$match[1]",$vbulletin->GPC['message']);
        }
    }]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>passiveVid - New Thread Replacement</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>passiveVid - New Thread Update</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']);
        }
    }
    preg_match_all("#(?:http://)?(?:www\.)?break.com/index/([^\.]+).html(\?matchid)?#s",$vbulletin->GPC['message'], $urlmatch);
    foreach ($urlmatch as $key => $urlmatch2) {
         if (($urlmatch[1][$key] != '') && (!preg_match('#matchid#s',$urlmatch[0][$key]))) {
        preg_match('#value="http://embed.break.com/([^"]+)"#',file_get_contents("http://www.break.com/index/" . $urlmatch[1][$key] . ".html"),$match);
        $vbulletin->GPC['message'] = preg_replace("#(\[URL=\"|\[URL\])?((?:http://)?(?:www\.)?break.com/index/".$urlmatch[1][$key].".html)(\"\](.*?)\[/URL\]|(.*?)\[/URL\])?#i", "http://break.com/index/".$urlmatch[1][$key].".html?matchid=$match[1]",$vbulletin->GPC['message']);
        }
    }]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title>passiveVid - Showthread Replacement</title>
            <hookname>postbit_display_complete</hookname>
            <phpcode><![CDATA[if ($this->registry->options['passiveVid_enabled']) {
    if ( strstr($this->registry->options['passiveVid_forumsenabled'],",") ) {
        $passiveVid_forumsenabled = explode(",",$this->registry->options['passiveVid_forumsenabled']);
    } else {
        $passiveVid_forumsenabled = array($this->registry->options['passiveVid_forumsenabled']);
    }
    if ( ($passiveVid_forumsenabled[0] == 0) || (in_array($this->thread['forumid'],$passiveVid_forumsenabled)) ) {
        if ( strstr($this->registry->options['passiveVid_usergroupenabled'],",") ) {
            $passiveVid_usergroupenabled = explode(",",$this->registry->options['passiveVid_usergroupenabled']);
        } else {
            $passiveVid_usergroupenabled = array($this->registry->options['passiveVid_usergroupenabled']);
        }
        if ( ($passiveVid_usergroupenabled[0] == 0) || (in_array($this->post['usergroupid'],$passiveVid_usergroupenabled)) ) {
            global $passiveVid;
            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>
        <plugin active="1" executionorder="5">
            <title>passiveVid - VBA News Replacement</title>
            <hookname>vba_cmps_module_newsbits</hookname>
            <phpcode><![CDATA[if ($vbulletin->options['passiveVid_enabled']) {
    global $passiveVid;
    foreach ($passiveVid as $k => $v) {
        if($vbulletin->options['passiveVid_sites'] & $v['id'] ) {
            $news['message'] = preg_replace_callback($v['string'],create_function('$matches',$v['replacement']),$news['message']);
        }
    }
}]]></phpcode>
        </plugin>
    </plugins>
    <phrases>
        <phrasetype name="Permissions" fieldname="cppermission">
            <phrase name="passiveVid_sites_break" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[Break]]></phrase>
            <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_rutube" date="1168986169" username="Coders Shack" version="1.0"><![CDATA[RuTube]]></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="vBulletin Settings" fieldname="vbsettings">
            <phrase name="setting_passiveVid_custom_enabled_desc" date="1196663858" username="Chad" version="1.0.7D"><![CDATA[Нажмите да, чтобы производились замены пользователем]]></phrase>
            <phrase name="setting_passiveVid_custom_enabled_title" date="1196663858" username="Chad" version="1.0.7D"><![CDATA[Включить замену пользователем?]]></phrase>
            <phrase name="setting_passiveVid_custom_str_desc" date="1196664018" username="Chad" version="1.0.7D"><![CDATA[Создайте html шаблон отображения: <br>
$PASSIVETITLE - адресс
$PASSIVEEMBED - плеер
]]></phrase>
            <phrase name="setting_passiveVid_custom_str_title" date="1196664018" username="Chad" version="1.0.7D"><![CDATA[HTML шаблон]]></phrase>
            <phrase name="setting_passiveVid_enabled_desc" date="1198799689" username="root" version="1.1.0"><![CDATA[Нажмите да, чтобы включить хак]]></phrase>
            <phrase name="setting_passiveVid_enabled_title" date="1198799689" username="root" version="1.1.0"><![CDATA[Включить хак?]]></phrase>
            <phrase name="setting_passiveVid_forumsenabled_desc" date="1198798244" username="root" version="1.1.0"><![CDATA[Введите ID разделов, в которых будет работать данный хак (по умолчанию 0 - все разделы)]]></phrase>
            <phrase name="setting_passiveVid_forumsenabled_title" date="1198798244" username="root" version="1.1.0"><![CDATA[Включить хак в разделах:]]></phrase>
            <phrase name="setting_passiveVid_sites_desc" date="1179155117" username="Coders Shack" version="1.0"><![CDATA[Выбирете поддерживаемые сайты]]></phrase>
            <phrase name="setting_passiveVid_sites_title" date="1179155117" username="Coders Shack" version="1.0"><![CDATA[Поддерживаемые сайты:]]></phrase>
            <phrase name="setting_passiveVid_usergroupenabled_desc" date="1198798361" username="root" version="1.1.0"><![CDATA[Выбирете нруппы пользователей, посты которых будут проверятся на наличие видео (по умолчанию 0 - все группы)]]></phrase>
            <phrase name="setting_passiveVid_usergroupenabled_title" date="1198798361" username="root" version="1.1.0"><![CDATA[Группы пользователей:]]></phrase>
            <phrase name="settinggroup_passiveVid_settings" date="0" username="Coders Shack" version="1.0"><![CDATA[Настройки passiveVid]]></phrase>
        </phrasetype>
    </phrases>
    <options>
        <settinggroup name="passiveVid_settings" displayorder="570">
            <setting varname="passiveVid_enabled" displayorder="10">
                <datatype>boolean</datatype>
                <optioncode>yesno</optioncode>
                <defaultvalue>2</defaultvalue>
            </setting>
            <setting varname="passiveVid_sites" displayorder="50">
                <datatype>bitfield</datatype>
                <optioncode>bitfield:nocache|passiveVid_allowedsites</optioncode>
                <defaultvalue>16777215</defaultvalue>
            </setting>
            <setting varname="passiveVid_custom_enabled" displayorder="60">
                <datatype>boolean</datatype>
                <optioncode>yesno</optioncode>
                <defaultvalue>no</defaultvalue>
            </setting>
            <setting varname="passiveVid_custom_str" displayorder="70">
                <datatype>free</datatype>
                <optioncode>textarea</optioncode>
                <defaultvalue><![CDATA[<div style='font-weight: bold;'>$PASSIVETITLE</div>
<div>$PASSIVEEMBED</div>]]></defaultvalue>
            </setting>
            <setting varname="passiveVid_forumsenabled" displayorder="80">
                <datatype>free</datatype>
                <defaultvalue>0</defaultvalue>
            </setting>
            <setting varname="passiveVid_usergroupenabled" displayorder="90">
                <datatype>free</datatype>
                <defaultvalue>0</defaultvalue>
            </setting>
        </settinggroup>
    </options>
    <helptopics>
    </helptopics>
    <cronentries>
    </cronentries>
    <faqentries>
    </faqentries>
</product>
стоит этот хак, проблемм никаких нет, внимательно устанавливай
  Ответить с цитированием
 
Время генерации страницы 0.38204 секунды с 10 запросами