Nee, irgendwo ist noch ein Haken drin^^
du kannst ja, nochmal die seite aufrufn oder aktualisiern. Ich hab jetzt einfach mal alle Anbieter probiert die dar zurverfügung stehen doch MegaVideo geht gar nicht, dar zeigt er mir immer nur den code an.
Also ich glaube, das im Admin MegaVideo noch hinzugefügt werden muss, denn die anderen Video anbieter sind dort auch enthalten und einstllbar in welcher Standard Größe und welche Hintergrundfarbe sie abgespielt werde sollen und in dem Code was ich als erstes mal gepostet hatte dort ist glaube ich der Text enthalten was dann in der Abfrage steht.
Ordner: .../include/admin/
Ich denke ich füge da mal noch MegaVideo ein.
Aber das wird nicht das einzige sein, glaube ich^^
#> Konfiguration
case 'config':
$tpl = new tpl ( 'bbcode/config', 1);
if(!isset($_POST['BB_SubmitConfig'])) {
$sql = db_query("SELECT * FROM prefix_bbcode_config WHERE fnConfigNr='1'");
$BB_Config = db_fetch_assoc($sql);
$tpl->set('Message','');
//> Video "YouTube"
$tpl->set('BBCode_YoutubeBreite' ,$BB_Config['fnYoutubeBreite']);
$tpl->set('BBCode_YoutubeHoehe' ,$BB_Config['fnYoutubeHoehe']);
$tpl->set('BBCode_YoutubeHintergrundfarbe' ,$BB_Config['fcYoutubeHintergrundfarbe']);
//> Video "Google"
$tpl->set('BBCode_GoogleBreite' ,$BB_Config['fnGoogleBreite']);
$tpl->set('BBCode_GoogleHoehe' ,$BB_Config['fnGoogleHoehe']);
$tpl->set('BBCode_GoogleHintergrundfarbe' ,$BB_Config['fcGoogleHintergrundfarbe']);
//> Video "MyVideo"
$tpl->set('BBCode_MyvideoBreite' ,$BB_Config['fnMyvideoBreite']);
$tpl->set('BBCode_MyvideoHoehe' ,$BB_Config['fnMyvideoHoehe']);
$tpl->set('BBCode_MyvideoHintergrundfarbe' ,$BB_Config['fcMyvideoHintergrundfarbe']);
//> Flash
$tpl->set('BBCode_FlashBreite' ,$BB_Config['fnFlashBreite']);
$tpl->set('BBCode_FlashHoehe' ,$BB_Config['fnFlashHoehe']);
$tpl->set('BBCode_FlashHintergrundfarbe' ,$BB_Config['fcFlashHintergrundfarbe']);
//> Zeichenkette
$tpl->set('BBCode_SizeMax' ,$BB_Config['fnSizeMax']);
$tpl->set('BBCode_UrlMaxLaenge' ,$BB_Config['fnUrlMaxLaenge']);
$tpl->set('BBCode_WortMaxLaenge' ,$BB_Config['fnWortMaxLaenge']);
//> Grafik
$tpl->set('BBCode_ImgMaxBreite' ,$BB_Config['fnImgMaxBreite']);
$tpl->set('BBCode_ImgMaxHoehe' ,$BB_Config['fnImgMaxHoehe']);
$tpl->set('BBCode_ScreenMaxBreite' ,$BB_Config['fnScreenMaxBreite']);
$tpl->set('BBCode_ScreenMaxHoehe' ,$BB_Config['fnScreenMaxHoehe']);
} else {
db_query("UPDATE
prefix_bbcode_config
SET
fnYoutubeBreite = '".$_POST['BBCode_YoutubeBreite']."',
fnYoutubeHoehe = '".$_POST['BBCode_YoutubeHoehe']."',
fcYoutubeHintergrundfarbe = '".$_POST['BBCode_YoutubeHintergrundfarbe']."',
fnGoogleBreite = '".$_POST['BBCode_GoogleBreite']."',
fnGoogleHoehe = '".$_POST['BBCode_GoogleHoehe']."',
fcGoogleHintergrundfarbe = '".$_POST['BBCode_GoogleHintergrundfarbe']."',
fnMyvideoBreite = '".$_POST['BBCode_MyvideoBreite']."',
fnMyvideoHoehe = '".$_POST['BBCode_MyvideoHoehe']."',
fcMyvideoHintergrundfarbe = '".$_POST['BBCode_MyvideoHintergrundfarbe']."',
fnFlashBreite = '".$_POST['BBCode_FlashBreite']."',
fnFlashHoehe = '".$_POST['BBCode_FlashHoehe']."',
fcFlashHintergrundfarbe = '".$_POST['BBCode_FlashHintergrundfarbe']."',
fnSizeMax = '".$_POST['BBCode_SizeMax']."',
fnUrlMaxLaenge = '".$_POST['BBCode_UrlMaxLaenge']."',
fnWortMaxLaenge = '".$_POST['BBCode_WortMaxLaenge']."',
fnImgMaxBreite = '".$_POST['BBCode_ImgMaxBreite']."',
fnImgMaxHoehe = '".$_POST['BBCode_ImgMaxHoehe']."',
fnScreenMaxBreite = '".$_POST['BBCode_ScreenMaxBreite']."',
fnScreenMaxHoehe = '".$_POST['BBCode_ScreenMaxHoehe']."'");
$tpl->set('Message','Konfiguration wurde erfolgreich gespeichert!');
//> Video "YouTube"
$tpl->set('BBCode_YoutubeBreite' ,$_POST['BBCode_YoutubeBreite']);
$tpl->set('BBCode_YoutubeHoehe' ,$_POST['BBCode_YoutubeHoehe']);
$tpl->set('BBCode_YoutubeHintergrundfarbe' ,$_POST['BBCode_YoutubeHintergrundfarbe']);
//> Video "Google"
$tpl->set('BBCode_GoogleBreite' ,$_POST['BBCode_GoogleBreite']);
$tpl->set('BBCode_GoogleHoehe' ,$_POST['BBCode_GoogleHoehe']);
$tpl->set('BBCode_GoogleHintergrundfarbe' ,$_POST['BBCode_GoogleHintergrundfarbe']);
//> Video "MyVideo"
$tpl->set('BBCode_MyvideoBreite' ,$_POST['BBCode_MyvideoBreite']);
$tpl->set('BBCode_MyvideoHoehe' ,$_POST['BBCode_MyvideoHoehe']);
$tpl->set('BBCode_MyvideoHintergrundfarbe' ,$_POST['BBCode_MyvideoHintergrundfarbe']);
//> Flash
$tpl->set('BBCode_FlashBreite' ,$_POST['BBCode_FlashBreite']);
$tpl->set('BBCode_FlashHoehe' ,$_POST['BBCode_FlashHoehe']);
$tpl->set('BBCode_FlashHintergrundfarbe' ,$_POST['BBCode_FlashHintergrundfarbe']);
//> Zeichenkette
$tpl->set('BBCode_SizeMax' ,$_POST['BBCode_SizeMax']);
$tpl->set('BBCode_UrlMaxLaenge' ,$_POST['BBCode_UrlMaxLaenge']);
$tpl->set('BBCode_WortMaxLaenge' ,$_POST['BBCode_WortMaxLaenge']);
//> Grafik
$tpl->set('BBCode_ImgMaxBreite' ,$_POST['BBCode_ImgMaxBreite']);
$tpl->set('BBCode_ImgMaxHoehe' ,$_POST['BBCode_ImgMaxHoehe']);
$tpl->set('BBCode_ScreenMaxBreite' ,$_POST['BBCode_ScreenMaxBreite']);
$tpl->set('BBCode_ScreenMaxHoehe' ,$_POST['BBCode_ScreenMaxHoehe']);
}
$tpl->out(0);
break;
Zuletzt modifiziert von SnIper am 26.11.2010 - 12:29:58