den fehler habe ich bereits behoben... jetzt kommt diese fehlermeldung:
'
http://meine adresse.../contenido/front_single/CMS_MP3[1]' konnte nicht gefunden werden. Überprüfen Sie den Pfad und den Dateinamen. (Fehler=80070002)
Datei kann nicht geöffnet werden. Überprüfen Sie den Pfad und den Dateinamen und wiederholen Sie den Vorgang. (Fehler=80070002)
er zeigt den player spielt aber nix weil er nix findet....
-------------------------------------
mein modul sieht wie folgt aus...
Code: Alles auswählen
$MP3 = "CMS_MP3[1]";
$MP3Size = getimagesize($MP3);
echo "<object classid=\"CLSID:05589FA1-C356-11CE-BF01-00AA0055595A\" width=\"200\" height=\"200\">";
echo "<param name=\"FileName\" value=\"CMS_MP3[1]\">";
echo "<param name=\"type\" value=\"application/x-mplayer2\">";
echo "<param name=\"PlayCount\" value=\"1\">";
echo "<param name=\"Volume\" value=\"1000\">";
echo "<param name=\"ShowControls\" value=\"true\">";
echo "<param name=\"ShowDisplay\" value=\"true\">";
echo "<embed src=\"CMS_MP3[1]\" type=\"application/x-mplayer2\"playcount= \"1\" width=\"100\" height=\"100\">";
echo "</embed>";
echo "</object>";
-------------------------------------
habe auch bei der config das mp3 beim client eingefügt
-------------------------------------
habe den sql dump eingespielt (habe den swf umgeschrieben)
sieht so aus:
Code: Alles auswählen
INSERT INTO con_type VALUES (15, 'CMS_MP3', '$tmp = $a_content["CMS_MP3"][$val];\r\n$sql = "SELECT * FROM $cfgTab_upl WHERE idclient=\'$client\' AND idupl=\'$tmp\'";\r\n$db2 = new DB_Contenido;\r\n$db2->query($sql);\r\nif ($db2->next_record()) {$tmp = $cfgClient[$client]["frontendpath"][$db2->f("dirname")].$db2->f("filename");}\r\n$tmp = htmlspecialchars($tmp);\r\n$tmp = str_replace("\'", "\\\'", $tmp);', 'MP3', 0, '', '2002-05-13 19:04:21', '2002-05-13 19:04:21');
INSERT INTO con_type VALUES (16, 'CMS_MP3DESCR', '$tmp = $a_content["CMS_MP3DESCR"][$val];\r\n$tmp = htmlspecialchars($tmp);\r\n$tmp = str_replace("\'", "\\\'", $tmp);\r\nif ($edit) {$editbutton = "<A HREF=\\"".$sess->url("front_content_edit.inc.php?action=10&idcat=$idcat&idside=$idside&idsidelang=$idsidelang&type=CMS_MP3&typenr=$val&lang=$lang")."\\"><IMG SRC=\\"".$cfgPathFrontendImg."but_editmp3.gif\\" border=0></A>";\r\n$editbutton = AddSlashes(AddSlashes($editbutton));\r\n$tmp = $tmp.$editbutton;}', 'Beschreibung', 0, '', '2002-05-13 19:04:28', '2002-05-13 19:04:28');
-------------------------------------
habe das template: tplInputField_CMS_MP3.inc in den ordner tpl eingespielt:
Code: Alles auswählen
<?
if ($submit == "editcontent") {
consaveContentEntry($idsidelang, "CMS_MP3", $typenr, $CMS_MP3);
consaveContentEntry($idsidelang, "CMS_MP3DESCR", $typenr, $CMS_MP3DESCR);
conGenerateCodeForSideInAllCategories($idside);
Header("Location:".$sess->url("front_content_edit.inc.php?area=$tmp_area&idside=$idside&idcat=$idcat&lang=$lang")."");
}
?>
<html>
<head>
<title>contenido</title>
<link rel="stylesheet" type="text/css" href="<? print $ContenidoPath ?>contenido.css">
</HEAD>
<BODY MARGINHEIGHT=0 MARGINWIDTH=0 LEFTMARGIN=0 TOPMARGIN=0>
<table width="100%" border=0 cellspacing="0" cellpadding="0" bgcolor=<? echo "$bg"; ?> >
<tr>
<td width="10" rowspan="4"><img src="<? print $ContenidoPath.$cfgPathImg ?>space.gif" width="10" height="10"></td>
<td width="100%"><img src="<? print $ContenidoPath.$cfgPathImg ?>space.gif" width="10" height="10"></td>
<td width="10" rowspan="4"><img src="<? print $ContenidoPath.$cfgPathImg ?>space.gif" width="10" height="10"></td>
</tr>
<tr>
<td>
<?
$sql = "SELECT * FROM $cfgTab_content AS A, $cfgTab_side_lang AS B, $cfgTab_type AS C WHERE A.idtype=C.idtype AND A.idsidelang=B.idsidelang AND B.idsidelang='$idsidelang'";
$db->query($sql);
while ($db->next_record()) {
$a_content[$db->f("type")][$db->f("typeid")] = $db->f("value");
$a_description[$db->f("type")][$db->f("typeid")] = $db->f("description");
}
echo " <FORM name=\"editcontent\" method=\"post\" action=\"".$sess->url("front_content_edit.inc.php")."\">";
$sess->hidden_session();
echo " <INPUT type=hidden name=lang value=\"$lang\">";
echo " <INPUT type=hidden name=submit value=\"editcontent\">";
echo " <INPUT type=hidden name=typenr value=\"$typenr\">";
echo " <INPUT type=hidden name=idside value=\"$idside\">";
echo " <INPUT type=hidden name=idcat value=\"$idcat\">";
echo " <INPUT type=hidden name=idsidelang value=\"$idsidelang\">";
echo " <INPUT type=hidden name=action value=\"10\">";
echo " <INPUT type=hidden name=type value=\"$type\">";
echo " <TABLE cellpadding=$cellpadding cellspacing=$cellpadding border=0>";
echo " <TR><TD valign=\"top\" class=head nowrap> ".$typenr.". ".$a_description["CMS_MP3"][$typenr].": </TD><TD class=content>";
echo "<SELECT name=CMS_MP3 SIZE=1>";
if ($a_content["CMS_MP3"][$typenr] != "0") {
echo "<option value=0>".$lngForm["nothing"]."</option>";
} else {
echo "<option value=0 selected>".$lngForm["nothing"]."</option>";
}
$sql = "SELECT * FROM $cfgTab_upl WHERE idclient='$client' AND filetype='mp3' ORDER BY filename";
$db->query($sql);
while ($db->next_record()) {
if ($db->f("idupl") != $a_content["CMS_MP3"][$typenr]) {
echo "<option value=\"".$db->f("idupl")."\">".$db->f("dirname")."/".$db->f("filename")." [".$db->f("description")."]</option>";
} else {
echo "<option value=\"".$db->f("idupl")."\" selected>".$db->f("dirname")."/".$db->f("filename")." [".$db->f("description")."]</option>";
}
}
echo "</SELECT>";
echo " </TD></TR>";
echo " <TR><TD valign=top class=head nowrap> ".$a_description["CMS_MP3DESCR"][$typenr].": </TD><TD class=content>";
echo " <TEXTAREA name=CMS_MP3DESCR ROWS=3 COLS=30>".$a_content["CMS_MP3DESCR"][$typenr]."</TEXTAREA>";
echo " </TD></TR>";
$tmp_area = "con_editcontent";
echo " <TR valign=top><TD colspan=2><br>
<a href=".$sess->url("front_content_edit.inc.php?area=$tmp_area&idside=$idside&idcat=$idcat&lang=$lang")."><img src=\"".$ContenidoPath.$cfgPathImg."but_cancel.gif\" border=0></a>
<INPUT type=image name=submit value=submit src=\"".$ContenidoPath.$cfgPathImg."but_ok.gif\" border=0>
</TD></TR>";
echo " </TABLE>
</FORM>";
?>
</td></tr></table>
</body>
</HTML>
-------------------------------------
hast du eine idee warum er das mp3 nicht findet???