Seite 1 von 2
Youtube Videos posten
Verfasst: 18.09.2007 12:34
von Dackel06
Hallo.
Ich weis nicht genau wo ich das hinschreiben soll.
Ich weis irgendwie nicht wie man youtube viedeos in meinem Forum postet.
ich hab mich hier schon versucht reinzulesen , aber versteh nix

Könnt ihr mir bitte helfen.
mfg
maik
Re: Youtube Videos posten
Verfasst: 19.09.2007 09:18
von Burkhard
Code: Alles auswählen
<center><object width="425" height="350"> <param name="movie" value="http://www.youtube.com/[xxxxx]"> </param> <embed src="http://www.youtube.com/[xxxxx]" type="application/x-shockwave-flash" width="425" height="350"> </embed> </object></center>
Verfasst: 04.10.2007 04:18
von mikey1973
Hallo wenn ich das so mache bekomme ich das in meinem Post angezeigt:
<center><object> <param> </param> <embed> </embed> </object></center
Was mache ich da falsch?
Micha
Verfasst: 04.10.2007 06:06
von alaaedin
Lösung:
Geh mal in deine -KONFIGURATION- und lösche dort alle -ERLAUBTE HTML TAGS-
Danach kopierst du diese HTML-Befehle alle hinein:
applet,/applet,img src,html,head,title,Download,/title,meta,link,/head,body,table,tr,td,/td,/tr,/table,/td,/tr,b,i,u,pre,blink,a,img,object,width,height,param name=,movie,value,/param,name=,wmode,value,transparent,param,embed,src,/a,img,src,href,/blink
[ externes Bild ]
........nun kannst du den -EMBED- Code einfach als Nachrichtentext verwenden und das Youtube-Bild wird angezeigt.
[ externes Bild ]
Viel Erfolg !!!!!!
[ externes Bild ]
Verfasst: 04.10.2007 08:16
von Burkhard
Auf <blink> steht bekanntlich die Todesstrafe oder lebenslanger Zwang, den Browser Mosaic zu benutzen.
Verfasst: 04.10.2007 11:31
von alaaedin
Burkhard hat geschrieben:Auf <blink> steht bekanntlich die Todesstrafe oder lebenslanger Zwang, den Browser Mosaic zu benutzen.
[ externes Bild ]
Verfasst: 29.11.2007 13:13
von TJ
Ich krieg das auch nicht hin...kann mir jemand helfen?

Verfasst: 29.11.2007 21:20
von manuj170793
benutz doch einfach diesen mod:
Code: Alles auswählen
##############################################################
## MOD Title: Videos in posts
##
## MOD Author: mgutt (Marc Gutt) www.phpbb-de.com
## MOD Description: video urls are redirect to embed flash players
##
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 2 minutes
##
## Files To Edit: 1
## includes/bbcode.php
## includes/class_message.php
##
## Included Files: 0
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## Video urls in signatures aren't rewritted
## You only need to paste the url of the video f.e.
## "http://www.youtube.com/watch?v=pYak2F1hUYA".
## To avoid rewriting the video url use the [url] bbcode.
##
##############################################################
## MOD History:
##
## Version 1.0.0:
## - Mod released
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
function make_clickable($text)
#
#-----[ REPLACE WITH ]------------------------------------------
#
//-- mod : videos in posts -----------------------------------------------------
//-- delete
/*
function make_clickable($text)
*/
//-- add
function make_clickable($text, $switches='')
//-- fin mod : videos in posts -------------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
$ret = ' ' . $text;
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : videos in posts -----------------------------------------------------
//-- add
// standard video table
global $lang;
$directurl = '<table border="0" cellpadding="0" cellspacing="2"><tr><td align="left"><a href="';
$object = '</td><td align="right"><span class="gensmall"><a href="http://www.phpbb-de.com" target="_blank" title="phpBB">phpBB</a> Plugin</span></td></tr><tr><td colspan="2">';
$tableend = '</td></tr></table>';
// match a google video URL and replace it
$ret = preg_replace("#(^|[\n ])([\w]+?://video\.google\.[\w\.]+?/videoplay\?docid=)([\w-]+)([&][\w=+&;-]*)*(^[\t <\n\r\]\[])*#is", '\\1' . $directurl . '\\2\\3\\4" target="_blank" class="postlink">' . $lang['Jump_to'] . ' Google Video</a>' . $object . '<object><param name="wmode" value="transparent"></param><embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" wmode="transparent" src="http://video.google.com/googleplayer.swf?docId=\\3" flashvars=""></embed></object>' . $tableend, $ret);
// match a youtube video URL and replace it
$ret = preg_replace("#(^|[\n ])([\w]+?://)(www\.youtube|youtube)(\.[\w\.]+?/watch\?v=)([\w-]+)([&][\w=+&;%]*)*(^[\t <\n\r\]\[])*#is", '\\1' . $directurl . '\\2\\3\\4\\5\\6" target="_blank" class="postlink">' . $lang['Jump_to'] . ' Youtube</a>' . $object . '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\\5"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\\5" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>' . $tableend, $ret);
// match a myvideo video URL and replace it
$ret = preg_replace("#(^|[\n ])([\w]+?://)(www\.myvideo|myvideo)(\.[\w\.]+?/watch/)([\w]+)(^[\t <\n\r\]\[])*#is", '\\1' . $directurl . '\\2\\3\\4\\5" target="_blank" class="postlink">' . $lang['Jump_to'] . ' MyVideo</a>' . $object . '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="470" height="406"><param name="movie" value="http://www.myvideo.de/movie/\\5"></param><param name="wmode" value="transparent"></param><embed src="http://www.myvideo.de/movie/\\5" width="470" height="406" type="application/x-shockwave-flash" wmode="transparent"></embed></object>' . $tableend, $ret);
// match a clipfish video URL and replace it
$ret = preg_replace("#(^|[\n ])([\w]+?://)(www\.clipfish|clipfish)(\.[\w\.]+?/player\.php\?videoid=)([\w%]+)([&][\w=+&;]*)*(^[\t <\n\r\]\[])*#is", '\\1' . $directurl . '\\2\\3\\4\\5\\6" target="_blank" class="postlink">' . $lang['Jump_to'] . ' Clipfish</a>' . $object . '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="464" height="380" id="player" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://www.clipfish.de/videoplayer.swf?as=0&videoid=\\5&r=1" /><param name="wmode" value="transparent"><embed src="http://www.clipfish.de/videoplayer.swf?as=0&videoid=\\5&r=1" width="464" height="380" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>' . $tableend, $ret);
// match a sevenload video URL and replace it
$ret = preg_replace("#(^|[\n ])([\w]+?://[\w.]+?\.sevenload\.com/videos/)([\w]+?)(/[\w-]+)(^[\t <\n\r\]\[])*#is", '\\1' . $directurl . '\\2\\3\\4" target="_blank" class="postlink">' . $lang['Jump_to'] . ' Sevenload</a>' . $object . '<object width="425" height="350"><param name="FlashVars" value="slxml=de.sevenload.com"/><param name="movie" value="http://de.sevenload.com/pl/\\3/425x350/swf" /><embed src="http://de.sevenload.com/pl/\\3/425x350/swf" type="application/x-shockwave-flash" width="425" height="350" FlashVars="slxml=de.sevenload.com"></embed></object>' . $tableend, $ret);
// match a metacafe video URL and replace it
$ret = preg_replace("#(^|[\n ])([\w]+?://)(www\.metacafe|metacafe)(\.com/watch/)([\w]+?)(/)([\w-]+?)(/)(^[\t <\n\r\]\[])*#is", '\\1' . $directurl . '\\2\\3\\4\\5\\6\\7" target="_blank" class="postlink">' . $lang['Jump_to'] . ' Metacafe</a>' . $object . '<embed src="http://www.metacafe.com/fplayer/\\5/\\7.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>' . $tableend, $ret);
// match a streetfire video URL and replace it
$ret = preg_replace("#(^|[\n ])([\w]+?://videos\.streetfire\.net/.*?/)([\w-]+?)(\.htm)(^[\t <\n\r\]\[])*#is", '\\1' . $directurl . '\\2\\3\\4" target="_blank" class="postlink">' . $lang['Jump_to'] . ' Streetfire</a>' . $object . '<embed src="http://videos.streetfire.net/vidiac.swf" FlashVars="video=\\3" 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>' . $tableend, $ret);
//-- fin mod : videos in posts -------------------------------------------------
#
#-----[ OPEN ]------------------------------------------
#
includes/class_message.php
#
#-----[ FIND ]------------------------------------------
#
$message = make_clickable($message);
#
#-----[ REPLACE WITH ]------------------------------------------
#
//-- mod : videos in posts -----------------------------------------------------
//-- delete
/*
$message = make_clickable($message);
*/
//-- add
$message = make_clickable($message, $switches);
//-- fin mod : videos in posts -------------------------------------------------
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
solltest du keine includes/class_message.php haben kannst du den teil auch weglassen
Verfasst: 30.11.2007 17:03
von Lockslay
Hallo
You Tube gibt es jetzt auch in deutsch.
http://de.youtube.com/
Wie kann ich den code erweitern damit auch diese Videos angezeigt werden ?
Gruß
Lockslay
Verfasst: 01.12.2007 02:22
von Zerker
Bei mir geht das mit dem o.g. Code nicht oO ? Wenn das bei jemanden geht der die phpBB 2.0.22 laufen hat kann derjenige mir da helfen?