fliesstext, wieso fehler?

Gesperrt
sewid
Beiträge: 6
Registriert: Di 4. Nov 2003, 15:33
Kontaktdaten:

fliesstext, wieso fehler?

Beitrag von sewid »

Hi!

Ich habe folgendes Modul (Fliesstext):

Eingabe

Code: Alles auswählen

echo "<table align=\"left\" cellpadding=\"0\" cellspacing=\"0\">
<tr valign=\"top\">
<td width=\"202\">".$mod["font"]." Fliesstext:</td>
<td><select name=\"CMS_VAR[0]\" size=\"1\">";
if ("CMS_VALUE[0]" != 0) {
echo "<option value=\"0\">".$lngForm["nothing"]."</option>";
} else {
echo "<option value=\"0\" selected>".$lngForm["nothing"]."</option>";
}
for ($i=1; $i<=50; $i++) {
if ($i != "CMS_VALUE[0]") {
echo "<option value=\"$i\">Font $i</option>";
} else {
echo "<option value=\"$i\" selected>Font $i</option>";
}
}
echo "</SELECT></td>
</tr><tr valign=\"top\">
<td width=\"202\">".$mod["font"]." Beschreibung:</td>
<td><select name=\"CMS_VAR[1]\" size=\"1\">";
if ("CMS_VALUE[1]" != 0) {
echo "<option value=\"0\">".$lngForm["nothing"]."</option>";
} else {
echo "<option value=\"0\" selected>".$lngForm["nothing"]."</option>";
}
for ($i=1; $i<=50; $i++) {
if ($i != "CMS_VALUE[1]") {
echo "<option value=\"$i\">Font $i</option>";
} else {
echo "<option value=\"$i\" selected>Font $i</option>";
}
}
echo "</SELECT></td></tr></table>
<input type=\"hidden\" name=\"CMS_VAR[2]\" value=\"".$value."\">";
Ausgabe:

Code: Alles auswählen

<?
$tmp_img1 = "CMS_IMG[1CMS_VALUE[2]]";
$tmpImgDescr1 = "CMS_IMGDESCR[1CMS_VALUE[2]]";
echo "<table width=100% border=0><tr><td align=left>";
echo "<div style=\"float:left; border:none 3px; border-with: 3px; text-align:left; margin-right:10px; margin-bottom:10px \">";
if ($tmp_img1)
{
  echo "<IMG SRC=\"CMS_IMG[1CMS_VALUE[2]]\" ";
  if($edit != "true")
  {
    echo "ALT=\"CMS_IMGDESCR[1CMS_VALUE[2]]\">";
  }
  else 
  {
    echo ">";
  }
}
if ($tmpImgDescr1 !="") {
  echo ("<br><span id=fontCMS_VALUE[1]> CMS_IMGDESCR[1CMS_VALUE[2]] </span></div>");
}
else 
{
  echo "CMS_IMGDESCR[1CMS_VALUE[2]]</div>";
}
echo "</p><p><span id=\"fontCMS_VALUE[0]\">CMS_TEXT[1CMS_VALUE[2]]<br style=clear:all></span></p>";
echo "</td></tr></table>";
?>

Unter Module wird mir bei der Ausgabe ein Fehler angezeigt, das Modul funktioniert jedoch. Wie bekomme ich diesen Fehler weg?

Gruß
Sewid
sewid
Beiträge: 6
Registriert: Di 4. Nov 2003, 15:33
Kontaktdaten:

Beitrag von sewid »

Kann mir wirklich keiner weiterhelfen? Irgend ein Fehler muss doch dasein!
emergence
Beiträge: 10653
Registriert: Mo 28. Jul 2003, 12:49
Wohnort: Austria
Kontaktdaten:

Beitrag von emergence »

der grund liegt einfach nur darin wie das modul getestet wird.
in includes/functions.mod.php gibts ne routine die das übernimmt.
und zwar function modTestModule

ich habs mir schon mal angesehen und ein paar änderungen daran vorgenommen.
weitere infos:
http://www.contenido.de/forum/viewtopic ... testmodule

sollte ohne weiteres auch für contenido 4.4.x funktionieren...
Gesperrt