Seite 1 von 1

Bildmodul mit Popup Link

Verfasst: Di 25. Mai 2004, 15:14
von Acidgod
Habe folgendes Modul zurecht gefummelt:

Code: Alles auswählen

<?php

if ("CMS_IMG[2]" != "") {

    $img = '<img src="CMS_IMG[2]" border="0">';

    if ("CMS_LINK[2]" != "http://") {
       echo "<a href=\"#\" onClick=\"openWindow('CMS_LINK[2]','detail','scrollbars=yes,resizable=yes,width=700,height=500')\">"; 
       echo $img;
       echo "</a>";

    } else {

    echo $img;
    }

}

echo "<br>";
echo "<b>CMS_IMGDESCR[2]</b>";
echo "<br>";
echo "CMS_LINKDESCR[2]";
echo "<br>";

?>
Die Darstellung funzt nur kann ich die Artikel jetzt nicht mehr edtieren... )o:

Errorlog spuckt das aus:

Code: Alles auswählen

[25-Mai-2004 16:07:03] PHP Parse error:  parse error, unexpected $ in /opt/web34/html/contenido/includes/functions.mod.php(155) : eval()'d code on line 31
[25-Mai-2004 16:07:08] PHP Parse error:  parse error, unexpected $ in /opt/web34/html/contenido/includes/functions.mod.php(155) : eval()'d code on line 31
[25-Mai-2004 16:07:17] PHP Parse error:  parse error, unexpected $ in /opt/web34/html/contenido/includes/functions.mod.php(155) : eval()'d code on line 31
[25-Mai-2004 16:07:31] PHP Parse error:  parse error, unexpected $ in /opt/web34/html/contenido/includes/functions.mod.php(155) : eval()'d code on line 31
[25-May-2004 16:13:19] PHP Parse error:  parse error, unexpected '<' in /opt/web34/html/contenido/includes/include.con_editcontent.php(571) : eval()'d code on line 275
Jemand eine Ahnung was falsch ist?

Verfasst: Di 25. Mai 2004, 16:09
von Acidgod
Hmm scheint nicht am Modul zu liegen... Hat vielleicht wer eine andere Idee?

Ich denke das ich mir beim Testen irgentwas in die DB gefummelt habe was dort nicht hingehört...

Verfasst: Di 25. Mai 2004, 19:03
von Acidgod
Es funzt... *freu*

Der Fehler lag in einem anderen Modul... *smile*