Simple Machines Community Forum

SMF Support => Language Specific Support => Hilfe zu SMF (German) => Aiheen aloitti: TowlieN - lokakuu 10, 2007, 07:53:56 AP

Otsikko: MyVideo, YouTube etc. ins Forum einbinden
Kirjoitti: TowlieN - lokakuu 10, 2007, 07:53:56 AP
Hallo,
gibt es ein SMF Addon mit dem ich Videos einbinden kann, die auch von anderen Anbieter Stammen wie z.b.: myvideo.de ? Hab bisher nur das mit YouTube gefunden. ( http://custom.simplemachines.org/mods/index.php?mod=936 )
Grüße
Otsikko: Re: MyVideo, YouTube etc. ins Forum einbinden
Kirjoitti: Dom - lokakuu 10, 2007, 07:10:59 IP
Hi,
schau mal hier (http://custom.simplemachines.org/mods/index.php?action=search;type=6) vorbei.


mfg Dom :)

Otsikko: Re: MyVideo, YouTube etc. ins Forum einbinden
Kirjoitti: xgenx - lokakuu 14, 2007, 12:49:53 IP
Clipfish-Videos als BB-Code hier:

http://custom.simplemachines.org/mods/index.php?mod=820 (http://custom.simplemachines.org/mods/index.php?mod=820)
Otsikko: Re: MyVideo, YouTube etc. ins Forum einbinden
Kirjoitti: zeitwort - lokakuu 14, 2007, 03:15:46 IP
Ich bastle gerade an einer Funktion die er erlaubt einfach den Youtube-Link einzufügen! Es funktioniert schon, doch es gibt noch einen Schönheitsfehler, denn der Link unterhalb direkt zu youtube funzt noch nicht - für Hilfe wäre ich dankbar!

http://smf.zeitwort.at/index.php/topic,5504.0.html

Öffne Sources/Subs.php
Suche
// Parse any URLs.... have to get rid of the @ problems some things cause... stupid email addresses.
Davor einfügen:
//start youtube embeding
if ( strpos($data, 'youtube.com/watch') !== false )
{
$data = preg_replace("/watch\\?v=([0-9a-zA-Z[:punct:]]{11}+)/","
<object width=\"425\" height=\"350\">
<embed src=\"http://www.youtube.com/v/$1\" type=\"application/x-shockwave-flash\" width=\"425\" height=\"350\"></embed><br>
<a target=\"_blank\" href=\"http://www.youtube.com/watch\?v=$1\">http://www.youtube.com/watch?v=$1</a></object>", $data);
}
//end youtube embeding


Funktioniert ganz ohne Tag! Hier zum Anschauen http://smf.zeitwort.at/index.php/topic,1187.msg88257.html#new
Otsikko: Re: MyVideo, YouTube etc. ins Forum einbinden
Kirjoitti: zeitwort - lokakuu 15, 2007, 04:53:25 AP
Auto Embed Video Clips (http://custom.simplemachines.org/mods/index.php?mod=977)
Otsikko: Re: MyVideo, YouTube etc. ins Forum einbinden
Kirjoitti: TowlieN - lokakuu 16, 2007, 05:18:41 IP
Danke! Habe mich für http://custom.simplemachines.org/mods/index.php?mod=977 entschieden. Funktioniert problemlos! :)