MyXoops Forum

Forum - myXOOPS German Support

1 + 9 = ?  
Geben Sie das Ergebnis der Berechnung ein
Sie haben max. 10 Versuche.
 
* = Erforderlich

Re: FCK-Editor für XOOPS - Nachgefragt

Betreff: Re: FCK-Editor für XOOPS - Nachgefragt
von alfred am 09.10.2006 19:43:18

Zitat:

gobodeejay schrieb:
Queries

INSERT INTO cm_fckeditor 
(rights,value,groups,mid,toolVALUE ('Default',1,'a:3:{i:0;s:1:"1";i:1;s:1:"2";i:2;s:1:"4";}',2,'default')
Error number1064
Error message
You have an error in your SQL syntaxCheck the manual that corresponds to your MySQL server version for the right syntax to use near 'VALUE ('Default',1,'a:3:{i:0;s:1:"1";i:1;s:1:"2";i:2;s:1:"4";}'


Aha, da haben wir schon den Fehler
Ändere die /modules/fckeditor/class/classfckeditor.php wie folgt :
Suche nach (ca. Zeile 151):
$sql "INSERT INTO ".$xoopsDB->prefix('fckeditor'). " (rights,value,groups,mid,tool) VALUE ('";
$sql.= $this->getVar('rights')  "',".$this->getVar('value').",'".$this->getVar('groups')."',";
$sql.= $this->getVar('mid').",'".$this->getVar('tool')."')";


und ersetze das mit

$sql "INSERT INTO ".$xoopsDB->prefix('fckeditor'). " (rights,value,groups,mid,tool) VALUE ('";
$sql.= $this->getVar('rights') ."',[b]'[/b]".$this->getVar('value')."[b]'[/b],'".$this->getVar('groups')."',";
$sql.= $this->getVar('mid').",'".$this->getVar('tool')."')";


Alfred

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag
Modulentwicklung New Xoops Xcreate Module 0 5329 26.11.2025 15:22
efkan Gehe zum letzten Beitrag
Modulentwicklung XOOPS Custom Field Module 1 1816 24.11.2025 11:21
Goffy Gehe zum letzten Beitrag