![Show/hide content [x]](themes/dragonfly/images/minus.png) Navigation
Startseite Community Nachrichten Suchen Projekte
![Show/hide content [x]](themes/dragonfly/images/minus.png) Wer ist wo
![Show/hide content [x]](themes/dragonfly/images/minus.png) Languages
![Show/hide content [x]](themes/dragonfly/images/minus.png) Design
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.
![Show/hide content [x]](themes/dragonfly/images/minus.png) Downloads (Top)
|
YOUTUBE videos ins forum
| Autor |
Nachricht |
flatter


Dabei seit: Jul 29, 2004 Beiträge: 148
|
Titel: YOUTUBE videos ins forum Verfasst am: 17.01.2009 20:22 |
|
Hab was gefunden im net
yutub medaiplayer mp3 quicktime.usw
hab yutube BBcode eingefügt,bis in text datei MEDIA_YOUTUBE
will ürgend wie nicht,Bei mir funz das ganze..
*** UPDATE BBCODE.PHP *** (English Language File)
1. Go to the line beginning with "'flag' => array('Flag:','[flag=code]')," (Line 111) and add the following after it:
'youtube' => array('Insert video from YouTube:','[youtube]YouTube Video ID[/youtube]'),
2. Save your bbcode.php and upload it to the "language -> english" directory.
_________________ hab kein plan
flatter's Serverdaten - verwendete Vers. (Server OS / Apache / MySQL / PHP / DragonflyCMS) (Server OS / Apache / MySQL / PHP / DragonflyCMS) |
|
| Nach oben |
|
 |
a.sgath


Dabei seit: Feb 14, 2010 Beiträge: 9
|
Titel: Re: YOUTUBE videos ins forum Verfasst am: 10.03.2010 16:55 |
|
Hallo zusammen,
dann nerv ich nochmal weil ich mich grad blöd gesucht hab^^
also das ist meine bbcode.php
Array:
<?php
/*********************************************
CPG Dragonfly™ CMS
********************************************
Copyright © 2004-2005 by CPG-Nuke Dev Team
http://dragonflycms.org
Dragonfly is released under the terms and conditions
of the GNU GPL version 2 or any later version
$Source: /cvs/html/language/english/bbcode.php,v $
$Revision: 9.10 $
$Author: nanocaiordo $
$Date: 2006/05/14 01:02:44 $
Encoding test: n-array summation ∑ latin ae w/ acute ǽ
*******************************************************/
if (!defined('CPG_NUKE')) { exit; }
global $smilies_close, $smilies_more, $smilies_desc, $color_desc, $font_desc, $bbcode_common;
$smilies_close = 'Close Window';
$smilies_more = 'More smilies';
$smilies_desc = array(
'Exclamation' => 'Exclamation',
'Question' => 'Question',
'Very Happy' => 'Very Happy',
'Smile' => 'Smile',
'Sad' => 'Sad',
'Surprised' => 'Surprised',
'Shocked' => 'Shocked',
'Confused' => 'Confused',
'Cool' => 'Cool',
'Laughing' => 'Laughing',
'Mad' => 'Mad',
'Razz' => 'Razz',
'Embarassed' => 'Embarassed',
'Crying or Very sad' => 'Crying or Very sad',
'Evil or Very Mad' => 'Evil or Very Mad',
'Twisted Evil' => 'Twisted Evil',
'Rolling Eyes' => 'Rolling Eyes',
'Wink' => 'Wink',
'Idea' => 'Idea',
'Arrow' => 'Arrow',
'Neutral' => 'Neutral',
'Mr. Green' => 'Mr. Green',
);
$color_desc = array(
'color' => 'Font color',
'Default' => 'Default',
'Dark Red' => 'Dark Red',
'Red' => 'Red',
'Orange' => 'Orange',
'Brown' => 'Brown',
'Yellow' => 'Yellow',
'Green' => 'Green',
'Olive' => 'Olive',
'Cyan' => 'Cyan',
'Blue' => 'Blue',
'Dark Blue' => 'Dark Blue',
'Indigo' => 'Indigo',
'Violet' => 'Violet',
'White' => 'White',
'Black' => 'Black',
);
$font_desc = array(
'size' => 'Font size',
'Tiny' => 'Tiny',
'Small' => 'Small',
'Normal' => 'Normal',
'Large' => 'Large',
'Huge' => 'Huge'
);
also noch die orginale habe das problem das ich keine videos einbinden kann! er fragt mich auch noch nach höhe und breite des videos! habe das ganze auch mal hier versucht und da fällt das ganze weg! hab auch schon den code oben eingefügt aber trotzdem keine reaktion muss ich dafür noch was anderes installieren?
grüsse asgath
_________________ Unter'm Tisch ist auch auf der Party
a.sgath's Serverdaten - verwendete Vers. (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / 4.4.9 / 5.0.81 / 9.2.1 |
|
| Nach oben |
|
 |
a.sgath


Dabei seit: Feb 14, 2010 Beiträge: 9
|
Titel: Re: YOUTUBE videos ins forum Verfasst am: 10.03.2010 17:11 |
|
wahhhh mist ich war nicht angemeldet und konnte das attachment nich sehen, schande über mich.... ignoriert das einfach wieder SORRY!
asgath
_________________ Unter'm Tisch ist auch auf der Party
a.sgath's Serverdaten - verwendete Vers. (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux / 4.4.9 / 5.0.81 / 9.2.1 |
|
| Nach oben |
|
 |
Ertan


Dabei seit: Mar 19, 2004 Beiträge: 1247 Wohnort: Germany
|
Titel: Re: YOUTUBE videos ins forum Verfasst am: 10.03.2010 18:24 |
|
bbcode eigene bbcode buttons:
google video, youtube, myvideo
(bleibt nur die rechtliche frage mit eingeb. videos!!)
habe local getestet:
includes/javasript/bbcode.js
Array:
function BBCwmi(form, field, type) {
if (type == 'img') { var URL = prompt("Please enter image URL","http://");
} else if (type == 'youtube') { var URL = prompt("Please enter Youtube Video URL","http://youtube.com/watch\?v=");
} else if (type == 'gvideo') { var URL = prompt("Please enter gVideo URL","http://");
} else if (type == 'myvideo') { var URL = prompt("Please enter myVideo URL","http://");
} else { var URL = prompt("Enter the Email Address",""); }
if (URL == null) { return null; }
if (!URL) { return alert("Error : You didn't write the Address"); }
BBCwrite(form, field, '', "["+type+"]"+URL+"[/"+type+"]", true);
return null;
}
includes/nbbcode.php:
Array:
# [myvideo] and [/myvideo] code..
$patterns[] = "#\[myvideo\]http://(?:www\.)?myvideo.de/watch/(.*?)\[/myvideo\]#is";
$replacements[] = '
<!-- BEGIN myvideo -->
<object type="application/x-shockwave-flash" style="width:425px; height:350px" data="http://www.myvideo.de/movie/\\1">
<param name="movie" value="http://www.myvideo.de/movie/\\1" />
</object><br />
<!-- END myvideo -->';
# [youtube] and [/youtube] code..
$patterns[] = "#\[youtube\]http://(?:[A-Za-z]{2,3}\.)?youtube.com/watch\?v=([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#is";
$replacements[] = '
<!-- BEGIN youtube -->
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/\\1.swf"></param>
<embed src="http://www.youtube.com/v/\\1.swf" type="application/x-shockwave-flash" width="425" height="350"></embed>
</object><br />
<!-- END youtube -->';
# .youtube] auto code..
/*$patterns[] = "#\http://(?:\S+\.swf\b|\S+?youtube\S+)";
$replacements[] = '
<!-- BEGIN autoyoutube -->
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/\\1.swf"></param>
<embed src="http://www.youtube.com/v/\\1.swf" type="application/x-shockwave-flash" width="425" height="350"></embed>
</object>
<!-- END autoyoutube -->';
*/
# [gvideo] and [/gvideo] code..
$patterns[] = "#\[gvideo\]http://(?:www\.)?video\.google\.([A-Za-z]*)/videoplay\?docid=([0-9\-]*.\&*)[^[]*\[/gvideo\]#is";
$replacements[] = '
<!-- BEGIN gVideo -->
<embed id="VideoPlayback" src="http://video.google.com/googleplayer.swf?docid=\\2" style="width:425px;height:350px" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash"> </embed>
<!-- END gVideo --><br />';
und
Array:
<img alt="'.$bbcode_common['youtube'][0].'" class="bbcbutton" onmouseover="helpline(\''.$form.'\',\''.$field.'\',\'youtube\')" onclick="BBCwmi(\''.$form.'\',\''.$field.'\',\'youtube\')" name="youtube" src="'.$bbbttns_path.'youtube.gif" />
<img alt="'.$bbcode_common['gvideo'][0].'" class="bbcbutton" onmouseover="helpline(\''.$form.'\',\''.$field.'\',\'gvideo\')" onclick="BBCwmi(\''.$form.'\',\''.$field.'\',\'gvideo\')" name="gvideo" src="'.$bbbttns_path.'gvideo.gif" />
<img alt="'.$bbcode_common['myvideo'][0].'" class="bbcbutton" onmouseover="helpline(\''.$form.'\',\''.$field.'\',\'myvideo\')" onclick="BBCwmi(\''.$form.'\',\''.$field.'\',\'myvideo\') name="myvideo" src="'.$bbbttns_path.'myvideo.gif" />
und
Array:
var gvideo_help="'. $bbcode_common['gvideo'][0].' '.$bbcode_common['gvideo'][1].'";
var myvideo_help="'. $bbcode_common['myvideo'][0].' '.$bbcode_common['myvideo'][1].'";
var youtube_help="'. $bbcode_common['youtube'][0].' '.$bbcode_common['youtube'][1].'";
language/bbcode
Array:
'myvideo' => array('Myvideo URL:','[myvideo]file URL[/myvideo]'),
'gvideo' => array('Google Video URL:','[gvideo]file URL[/gvideo]'),
'youtube' => array('Youtube URL:','[youtube]http://youtube.com/watch/?v=000[/youtube]'),
_________________ .: USE THE FORCE :.
Helft mit ! Keine Unbeantworteten Beiträge mehr
Ertan's Serverdaten - verwendete Vers. (Server OS / Apache / MySQL / PHP / DragonflyCMS)
 |
|
| Nach oben |
|
 |
|
|
Alle Zeitangaben sind in GMT + 1 Stunden
Sie können keine Beiträge in dieses Forum schreiben. Sie können auf Beiträge in diesem Forum nicht antworten. Sie können Ihre Beiträge in diesem Forum nicht bearbeiten. Sie können Ihre Beiträge in diesem Forum nicht löschen. Sie können an Umfragen in diesem Forum nicht mitmachen. Sie können keine Dateien anhängen. Sie können keine Dateien herunterladen.
|