YaBB Community and Support Forum
YaBB Home About YaBB Download YaBB YaBB Support Customize Your Forum Development Contribute to the Project
  Welcome, Guest. Please Login or Register


 
Page Index Toggle Pages: 1
Topic Tools
 
Media Center-Erweiterungen inside (Read 1,484 times)
 May 15th, 2010 at 11:43am
There are no actions to perform.  

Homer J. S. 
YaBB Moderator
****
Offline
Posts: 1,949
Germany


YaBB 2.5
Media Center-Erweiterungen inside
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)
WWW 87313348  
IP Logged  
 Reply #1 - May 15th, 2010 at 2:18pm
There are no actions to perform.  
Captain John 
Ex Member


None
Re: Media Center-Erweiterungen inside
Great work .... added to YaBB Codex
   http://codex.yabbforum.com/YaBB.pl?num=1273932554/0#0
 
 
IP Logged  
 Reply #2 - Jun 14th, 2010 at 5:36pm
There are no actions to perform.  

Jet Li 
Legacy Dev Team
Development Team
****
Offline
Posts: 6,588
Hong Kong


None
Re: Media Center-Erweiterungen inside
thnx Homer Simpsons. Added to CVS/SVN. Smiley

http://www.yabbforum.com/community/YaBB.pl?num=1276536901
 
...
PM me for YaBB Installation Service
WWW Jet Li 100000788351637  
IP Logged  
Page Index Toggle Pages: 1
Topic Tools
 

Get Yet another Bulletin Board at SourceForge.net. Fast, secure and Free Open Source software downloads Support This Project BoardMod - YaBB features and templates YaBB Codex - support on installation and usage YaBB Toolbar for your browser

YaBB Facebook Group Page

Vulnerability Scanner

Valid RSS Valid XHTML Valid CSS Powered by Perl
YaBB Chat and Support Community » Powered by YaBB 3.0 Beta!
YaBB Forum Software © 2000-2011. All Rights Reserved.