Author Topic: Re: [MOD] Media sites v1.11 (2010-07-14)  (Read 13386 times)

0 Members and 1 Guest are viewing this topic.

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: [MOD] Media sites v1.11 (2010-07-14)
« on: July 14, 2010, 12:56:27 PM »
Thank you!!!!!!!!!!!!!!!!!!!!!
But can you help me for a other script?

Dont work
case 'zippyshare':
// http://www12.zippyshare.com/v/99675457/file.html
$video[3] = preg_replace('%^.*\.zippyshare\.com\/v\/([0-9]+).*$%i''$1'$url);
$video[2] = preg_replace('%^www([0-9]+)\.zippyshare.*$%i''$1'$url);
$video[1] = 'http://www'.$video[2].'.zippyshare.com/v/'.$video[3].'file.html';
break;


Dont work
case 'zippyshare':
// http://www12.zippyshare.com/v/99675457/file.html
$video[3] = preg_replace('%^zippyshare\.com\/v\/([0-9]+)\file.html.*$%i''$1'$url);
$video[2] = preg_replace('%^.*www([a-z0-9_-]+).*$%i''$1'$url);
$video[1] = 'http://www'.$video[2].'.zippyshare.com/v/'.$video[3].'file.html';
break;


Dont work
case 'zippyshare':
// http://www12.zippyshare.com/v/99675457/file.html
$video[3] = preg_replace('%^zippyshare\.com\/v\/([0-9]+)\/file\.html.*$%i''$1'$url);
$video[2] = preg_replace('%^.*www([a-z0-9_-]+).*$%i''$1'$url);
$video[1] = 'http://www'.$video[2].'.zippyshare.com/v/'.$video[3].'/file.html';
break;


Dont work
case 'zippyshare':
// http://www12.zippyshare.com/v/99675457/file.html
$video[3] = preg_replace('%^zippyshare\.com\/v\/([0-9]+)\/file\.html.*$%i''$1'$url);
$video[2] = preg_replace('%^.*www([a-z0-9_-]+).*$%i''$1'$url);
$video[1] = 'http://www'.$video[2].'.zippyshare.com/v/'.$video[3];
break;


This all worked:
	
	
	
case 
'autsch':
	
	
	
	
	
// http://autsch.de/35566
	
	
	
	
	
// http://autsch.de/42141/berraschte_katze/
	
	
	
	
$video[2] = preg_replace('%^autsch\.de\/([0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://autsch.de/'.$video[2];
	
	
	
	
break;
	
	
	
case 
'clipfish':
	
	
	
	
	
// http://www.clipfish.de/channel/207/video/2536671/jordin-spark-live-bei-energy-in-the-park-berlin-2008/
	
	
	
	
	
// http://www.clipfish.de/video/3303441/abstrukt-trick/28
	
	
	
	
	
// http://www.clipfish.de/video/277370/
	
	
	
	
$video[2] = preg_replace('%^.*video\/([a-z0-9]+)\/.*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.clipfish.de/video/'.$video[2].'/';
	
	
	
	
break;
	
	
	
case 
'collegehumor':
	
	
	
	
	
// http://www.collegehumor.com/video:1932963
	
	
	
	
$video[2] = preg_replace('%^.*\/video\:([0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.collegehumor.com/video:'.$video[2];
	
	
	
	
break;
	
	
	
case 
'dailymotion':
	
	
	
	
	
// http://www.dailymotion.com/video/x56pa6_feuer-schere-messer-licht_fun
	
	
	
	
	
// http://www.dailymotion.com/video/xd0k3e_unicutt-tv-nightlifereport-springbr_lifestyleundefined
	
	
	
	
	
// -> http://www.dailymotion.com/video/xd0k3e
	
	
	
	
$video[2] = preg_replace('%^.*\/video\/([a-z0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.dailymotion.com/video/'.$video[2];
	
	
	
	
break;
	
	
	
case 
'g4tv':
	
	
	
	
	
// http://g4tv.com/videos/45434/Sengoku-Basara-Samurai-Heroes-Captivate-Trailer/
	
	
	
	
$video[2] = preg_replace('%^.*\/videos\/([0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://g4tv.com/videos/'.$video[2].'/embedded';
	
	
	
	
break;
	
	
	
case 
'gametrailers':
	
	
	
	
	
// http://www.gametrailers.com/player/usermovies/208901.html?playlist=featured
	
	
	
	
	
// http://www.gametrailers.com/user-movie/ninja-gaiden-2-new-gameplay/208901
	
	
	
	
	
// http://www.gametrailers.com/player/33290.html
	
	
	
	
	
// http://www.gametrailers.com/video/episode-21-bonus-round/33290
	
	
	
	
$video[3] = preg_match('%^.*(\/usermovies\/|\/user-movie\/).*$%i'$url);
	
	
	
	
$video[2] = preg_replace('%^.*\/([0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.gametrailers.com/'.($video[3] ? 'user-movie' 'video').'/embedded/'.$video[2];
	
	
	
	
break;
	
	
	
case 
'google':
	
	
	
	
	
// http://video.google.de/videoplay?docid=-8070240344560020977&hl=de&emb=1#
	
	
	
	
$video[2] = preg_replace('%^.*docid=([-0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://video.google.com/videoplay?docid='.$video[2];
	
	
	
	
break;
	
	
	
case 
'ign':
	
	
	
	
	
// http://uk.movies.ign.com/dor/objects/14332808/centurion/videos/Centurion.html
	
	
	
	
	
// http://uk.video.ign.com/dor/articles/965543/ign-daily-fix-/videos/thefix_spc_042110.html;jsessionid=5lu3b5fowqh8
	
	
	
	
	
// -> http://movies.ign.com/dor/objects/14332808/embedded/videos/Centurion.html
	
	
	
	
$video[4] = preg_replace('%^.*\/dor\/([a-z]+)s\/[0-9]+.*$%i''$1'$url);
	
	
	
	
$video[3] = preg_replace('%^.*\/videos\/([-0-9a-z_]+)\.html.*$%i''$1'$url);
	
	
	
	
$video[2] = preg_replace('%^.*\/dor\/[a-z]+\/([0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://movies.ign.com/dor/'.$video[4].'s/'.$video[2].'/embedded/videos/'.$video[3].'.html';
	
	
	
	
break;
	
	
	
case 
'metacafe':
	
	
	
	
	
// http://www.metacafe.com/watch/4621570/scalado_photoflow_on_nokia_5800/
	
	
	
	
	
// http://www.metacafe.com/watch/2526516/unbelievable_check_this_out_man/
	
	
	
	
$video[3] = preg_replace('%^metacafe\.com\/watch\/([0-9]+)\/.*$%i''$1'$url);
	
	
	
	
$video[2] = preg_replace('%^metacafe\.com\/watch\/[0-9]+\/([0-9a-z_-]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.metacafe.com/watch/'.$video[3].'/'.$video[2];
	
	
	
	
break;
	
	
	
case 
'mycarmovie':
	
	
	
	
	
// http://www.mycarmovie.com/sell/585713e2fbfdfa8f445c8637211f573c/
	
	
	
	
	
// http://mycarmovie.com/brands/448e6fba1697559d7395e37d69b79790/
	
	
	
	
	
// http://www.mycarmovie.com/tv/3be968b43ffe65aef8df25d278f2bfc3
	
	
	
	
	
// http://www.mycarmovie.com/carmovies/008fd7fa9af24923be36773170e633cb
	
	
	
	
$video[3] = preg_replace('%^mycarmovie\.com\/([0-9a-z]+)\/.*$%i''$1'$url);
	
	
	
	
$video[2] = preg_replace('%^mycarmovie\.com\/[0-9a-z]+\/([0-9a-z]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.mycarmovie.com/'.$video[3].'/'.$video[2];
	
	
	
	
break;
	
	
	
case 
'myspace':
	
	
	
	
	
// http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=104346587
	
	
	
	
$video[2] = preg_replace('%^.*videoid=([a-z0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid='.$video[2];
	
	
	
	
break;
	
	
	
case 
'myvideo':
	
	
	
	
	
// http://www.myvideo.de/watch/3489403/Bodo_Wartke_Liebesparade
	
	
	
	
$video[2] = preg_replace('%^.*\/watch\/([0-9]+)\/.*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.myvideo.de/watch/'.$video[2].'/';
	
	
	
	
break;
	
	
	
case 
'paintballtube':
	
	
	
	
	
// http://www.paintballtube.de/video/605/LOS-Woodlands.de
	
	
	
	
$video[2] = preg_replace('%^.*\/video\/([0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.paintballtube.de/video/'.$video[2].'/';
	
	
	
	
break;
	
	
	
case 
'photobucket':
	
	
	
	
	
// http://s87.photobucket.com/albums/k136/librarypics/Anahuac2/ana-con%202009/?action=view&current=HPIM1574.flv
	
	
	
	
$video[4] = preg_replace('%^.*\.photobucket\.com\/albums\/(.+)\/.*$%i''$1'$url);
	
	
	
	
$video[3] = preg_replace('%^s([0-9]+)\.photobucket.*$%i''$1'$url);
	
	
	
	
$video[2] = preg_replace('%^.*(\/|current=)([-a-z0-9]+)\.flv.*$%i''$2'$url);
	
	
	
	
$video[1] = 'http://s'.$video[3].'.photobucket.com/albums/'.$video[4].'/?action=view&current='.$video[2].'.flv';
	
	
	
	
break;
	
	
	
case 
'screentoaster':
	
	
	
	
	
// http://www.screentoaster.com/watch/stWEhXS0RIR19WQF5dUllYVVFT/google_gravity
	
	
	
	
$video[2] = preg_replace('%^.*\/watch\/st([0-9a-z]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.screentoaster.com/watch/st'.$video[2].'/embedded';
	
	
	
	
break;
	
	
	
case 
'sevenload':
	
	
	
	
	
// http://de.sevenload.com/sendungen/Journal-Reporter/folgen/38PCERH-Polen-nach-dem-Tod-von-Praesident-Kaczynski
	
	
	
	
	
// http://de.sevenload.com/videos/K6kf6lh-Test-Drive-Unlimited-Trailer
	
	
	
	
	
// -> http://www.sevenload.com/videos/38PCERH-
	
	
	
	
$video[2] = preg_replace('%^.*\/([a-z0-9]+)-.*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.sevenload.com/videos/'.$video[2].'-';
	
	
	
	
break;
	
	
	
case 
'spike':
	
	
	
	
	
// http://www.spike.com/video/embedded/2763936
	
	
	
	
$video[2] = preg_replace('%^spike\.com.*\/video\/[a-z0-9_-]+\/([0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.spike.com/video/embedded/'.$video[2];
	
	
	
	
break;
	
	
	
case 
'veoh':
	
	
	
	
	
// http://www.veoh.com/videos/v16493535wyzGAET6
	
	
	
	
	
// http://www.veoh.com/collection/kushtvdigitalunderground/watch/v1552357JGDgCw2s
	
	
	
	
	
// http://www.veoh.com/collection/Nirvana-Music-Videos/watch/v16493535wyzGAET6
	
	
	
	
	
// http://www.veoh.com/browse/videos/category/technology_and_gaming/watch/v19713720TSHY4QQX
	
	
	
	
$video[2] = preg_replace('%^.*\/v([a-z0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.veoh.com/videos/v'.$video[2];
	
	
	
	
break;
	
	
	
case 
'vimeo':
	
	
	
	
	
// http://www.vimeo.com/4321799
	
	
	
	
$video[2] = preg_replace('%^vimeo\.com\/([0-9]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.vimeo.com/'.$video[2];
	
	
	
	
break;
	
	
	
case 
'wegame':
	
	
	
	
	
// http://www.wegame.com/watch/test-1st-video/
	
	
	
	
	
// http://www.wegame.com/watch/gara-illegale-degli-gnomi-ironforge-stormwind/
	
	
	
	
$video[2] = preg_replace('%^wegame\.com\/watch\/([0-9a-z_-]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.wegame.com/watch/'.$video[2].'/';
	
	
	
	
break;
	
	
	
case 
'youku':
	
	
	
	
	
// http://v.youku.com/v_show/id_XMTcxMDcyMTU2.html
	
	
	
	
$video[2] = preg_replace('%^youku\.com\/v_show\/id_([0-9a-z_-]+)\.html.*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://v.youku.com/v_show/id_'.$video[2].'.html';
	
	
	
	
break;
	
	
	
case 
'youtube':
	
	
	
	
	
// http://www.youtube.com/watch?v=-zvCUmeoHpw
	
	
	
	
$video[2] = preg_replace('%^.*v=([a-z0-9_-]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.youtube.com/watch?v='.$video[2];
	
	
	
	
break;
	
	
	
case 
'megavideo':
	
	
	
	
	
// http://www.megavideo.com/?v=4WX1OEGD
	
	
	
	
$video[2] = preg_replace('%^.*v=([a-z0-9_-]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://www.megavideo.com/?v='.$video[2];
	
	
	
	
break;
	
	
	
case 
'rutube':
	
	
	
	
	
// http://rutube.ru/tracks/3384079.html?v=b451e7bd97148a9bc114da16d0f40598
	
	
	
	
$video[3] = preg_replace('%^rutube\.ru\/tracks\/([0-9]+)\.html.*$%i''$1'$url);
	
	
	
	
$video[2] = preg_replace('%^.*v=([a-z0-9_-]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://rutube.ru/tracks/'.$video[3].'.html?v='.$video[2];
	
	
	
	
break;
	
	
	
case 
'mp3upload':
	
	
	
	
	
// http://mp3upload.ca/music/view/26546
	
	
	
	
$video[2] = preg_replace('%^.*view/([a-z0-9_-]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://mp3upload.ca/music/view/'.$video[2];
	
	
	
	
break;

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.11 (2010-07-14)
« Reply #1 on: July 14, 2010, 02:50:06 PM »
case 'zippyshare':
// http://www12.zippyshare.com/v/99675457/file.html
$video[3] = preg_replace('%^.*\.zippyshare\.com\/v\/([0-9]+).*$%i''$1'$url);
$video[2] = preg_replace('%^.*www([0-9]+)\.zippyshare.*$%i''$1'$url);
$video[1] = 'http://www'.$video[2].'.zippyshare.com/v/'.$video[3].'/file.html';
break;


or this with the same result:
case 'zippyshare':
// http://www12.zippyshare.com/v/99675457/file.html
preg_match("#^(http://www([0-9]+)\.zippyshare\.com/v/([0-9]+)/file\.html)#i"$url$video);
unset(
$video[0]);
break;
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: [MOD] Media sites v1.11 (2010-07-14)
« Reply #2 on: July 14, 2010, 04:09:25 PM »
Dont work:

The TPL
Code: [Select]
            {elseif $video.0 == 'zippyshare'}
            <a 
href="http://www{@$video.2}.zippyshare.com/downloadMusic%3Fkey%3D{@$video.3}xx" 
style="display:block;width:400px;height:315px"
id="play">
</a>
<script>
flowplayer("play", "{@RELATIVE_WCF_DIR}player/mp3/flowplayer-3.2.2.swf");
</script>

And the php
case 'zippyshare':
// http://www12.zippyshare.com/v/99675457/file.html
$video[3] = preg_replace('%^.*\.zippyshare\.com\/v\/([0-9]+).*$%i''$1'$url);
$video[2] = preg_replace('%^.*www([0-9]+)\.zippyshare.*$%i''$1'$url);
$video[1] = 'http://www'.$video[2].'.zippyshare.com/v/'.$video[3].'/file.html';
break;


But the mp3upload works
TPL
Code: [Select]
            {elseif $video.0 == 'mp3upload'}
            <a 
href="http://mp3upload.ca/music/play/{@$video.2}.mp3" 
style="display:block;width:400px;height:315px" 
id="play">
</a>
<script>
flowplayer("play", "{@RELATIVE_WCF_DIR}player/mp3/flowplayer-3.2.2.swf");
</script>

php
	
	
	
case 
'mp3upload':
	
	
	
	
	
// http://mp3upload.ca/music/view/26546
	
	
	
	
$video[2] = preg_replace('%^.*view/([a-z0-9_-]+).*$%i''$1'$url);
	
	
	
	
$video[1] = 'http://mp3upload.ca/music/view/'.$video[2];
	
	
	
	
break;


But this does not make no difference also, that heard here there! Even though to thanks vano.

Should you have, nevertheless, still an idea, it lets know me!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.11 (2010-07-14)
« Reply #3 on: July 14, 2010, 11:34:18 PM »
TPL should be like this:
Code: [Select]
           {elseif $video.0 == 'zippyshare'}
             <a  
href="http://www{@$video.2}.zippyshare.com/downloadMusic?key={@$video.3}xx"  
style="display:block;width:400px;height:315px"
id="play">
</a>
<script>
flowplayer("play", "{@RELATIVE_WCF_DIR}player/mp3/flowplayer-3.2.2.swf");
</script>
and make sure you have this file {@RELATIVE_WCF_DIR}player/mp3/flowplayer-3.2.2.swf
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.805
  • I ♥ 4I
    • View Profile
Re: [MOD] Media sites v1.11 (2010-07-14)
« Reply #4 on: July 15, 2010, 12:42:53 AM »
Ses i have this file, but the zippyshare routine dont work
case 'zippyshare':
// http://www12.zippyshare.com/v/99675457/file.html
$video[3] = preg_replace('%^.*\.zippyshare\.com\/v\/([0-9]+).*$%i''$1'$url);
$video[2] = preg_replace('%^.*www([0-9]+)\.zippyshare.*$%i''$1'$url);
$video[1] = 'http://www'.$video[2].'.zippyshare.com/v/'.$video[3].'/file.html';
break;

Code: [Select]
            {elseif $video.0 == 'zippyshare'}
            <a 
href="http://www{@$video.2}.zippyshare.com/downloadMusic?key={@$video.3}xx" 
style="display:block;width:400px;height:315px"
id="play">
</a>
<script>
flowplayer("play", "{@RELATIVE_WCF_DIR}player/mp3/flowplayer-3.2.2.swf");
</script>
I know not what it was, but this routine will not work. I've already made some attempts but all attempts have failed.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.11 (2010-07-14)
« Reply #5 on: July 15, 2010, 01:09:45 AM »
Sorry, but I have no idea what you are trying to do and how it supposed to work.
The regex is correct, template syntax seems to correct too, how it doesn't work - no idea.

P.S.
I'm splitting this into a separate topic, this is really has nothing to do neither with 4images nor media sites mod.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)