Page Index Toggle Pages: 1
Topic Tools
Normal Topic Media Center-Erweiterungen inside (Read 1,555 times)
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Media Center-Erweiterungen inside
Reply #2 - Jun 14th, 2010 at 5:36pm
Post Tools
thnx Homer Simpsons. Added to CVS/SVN. Smiley

http://www.yabbforum.com/community/YaBB.pl?num=1276536901
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Captain John
Ex Member


Re: Media Center-Erweiterungen inside
Reply #1 - May 15th, 2010 at 2:18pm
Post Tools
Great work .... added to YaBB Codex
    http://codex.yabbforum.com/YaBB.pl?num=1273932554/0#0
  
Back to top
 
IP Logged
 
Homer J. S.
YaBB Moderator
****
Offline



Posts: 1,949
Location: Germany

None
Media Center-Erweiterungen inside
May 15th, 2010 at 11:43am
Post Tools
Da ich gerade für mein Forum am Fummeln bin, will ich euch das Ganze nicht vorenthalten  Wink . Funktionieren tut es, aber falls ihr noch Fehler im Code oder Fehler beim Abspielen von Videos findet, postet sie bitte.

GameTrailers.com Support (Version 0.1 von May 15th, 2010 at 12:25pm:
Code
Select All
    # GameTrailers.com START
		# added Gametrailers.com url support (user video with .html at the end)
		} elsif ($media_url =~ m/gametrailers\.com/i && $media_url =~ m/user/i && $media_url =~ m/\.html/i) {
			(undef,$temp) = split(/gametrailers.com\//,$media_url);
			(undef,undef,$temp) = split(/\//,$temp);
			($mid,undef) = split(/\./,$temp);
			$media_url = qq~http://www.gametrailers.com/remote_wrap.php?umid=$mid~;
			$video = $embed_flash;
			$controlheight = 36;

		# added GameTrailers.com video url support  (user video without .html at the end)
		} elsif ($media_url =~ m/gametrailers\.com/i && $media_url =~ m/user/i) {
			(undef,$temp) = split(/gametrailers.com\//,$media_url);
			($mid,undef) = split(/\./,$temp);
			(undef,undef,$mid) = split(/\//,$temp);
			$media_url = qq~http://www.gametrailers.com/remote_wrap.php?umid=$mid~;
			$video = $embed_flash;
			$controlheight = 36;

		# added Gametrailers.com url support (normal video with .html at the end)
		} elsif ($media_url =~ m/gametrailers\.com/i && $media_url =~ m/\.html/i) {
			(undef,$temp) = split(/gametrailers.com\//,$media_url);
			(undef,$temp) = split(/\//,$temp);
			($mid,undef) = split(/\./,$temp);
			$media_url = qq~http://www.gametrailers.com/remote_wrap.php?mid=$mid~;
			$video = $embed_flash;
			$controlheight = 36;

		# added GameTrailers.com video url support  (normal video without .html at the end)
		} elsif ($media_url =~ m/gametrailers\.com/i) {
			(undef,$temp) = split(/gametrailers.com\//,$media_url);
			($mid,undef) = split(/\./,$temp);
			(undef,undef,$mid) = split(/\//,$temp);
			$media_url = qq~http://www.gametrailers.com/remote_wrap.php?mid=$mid~;
			$video = $embed_flash;
			$controlheight = 36;
    # GameTrailers.com END 



Leider benutzt diese Seite ziemlich viele verschiedene Link-Versionen, darum hab ich versucht, alles automatisch erkennen zu lassen. Das einzige, was nicht funktioniert, sind Videos aus der "GT TV" Sektion, da die ID in der URL nicht die echte Video-ID ist. Diese findet man nur im Code im "Embed:"-Feld unter dem Video, was YaBB natürlich nicht auslesen kann. Ansonsten laufen aber alle Videos, die ich getestet hab.

Clipfish Support:
Code
Select All
		# added Clipfish video url support
		} elsif ($media_url =~ m/clipfish\.de/i) {
			(undef,$temp) = split(/video\//,$media_url);
			($videoid,undef) = split(/\//,$temp);
			$media_url = qq~http://www.clipfish.de/cfng/flash/clipfish_player_3.swf?as=0&vid=$videoid&r=1&angebot=extern&c=990000~;
			$video = $embed_flash;
			$controlheight = 36; 



Damit lassen sich Videos von clipfish.de in Beiträge einbinden.

Den jeweiligen Code einfach in die MediaCenter.pl kopieren, und zwar unter dieser Zeile:

Code
Select All
		# file extensions that open flash player 

« Last Edit: May 15th, 2010 at 12:25pm by Homer J. S. »  

My Homer is not a communist. He may be a liar, a pig, an idiot, a communist, but he is not a porn star.
www.silenthill-forum.de (YaBB 1.3.1 with 150+ mods)
www.retrogamerwelt.de (YaBB 2.5.2)
Back to top
WWWICQ  
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top