alfred
Administrator
Gepostet am:09.10.2006 19:43
#71
Aha, da haben wir schon den Fehler
Ändere die /modules/fckeditor/class/classfckeditor.php wie folgt :
Suche nach (ca. Zeile 151):
und ersetze das mit
Alfred
Re: FCK-Editor für XOOPS - Nachgefragt
09.10.2006 19:43 Zitat:
gobodeejay schrieb:Queries
INSERT INTO cm_fckeditor (rights,value,groups,mid,tool) VALUE ('Default',1,'a:3:{i:0;s:1:"1";i:1;s:1:"2";i:2;s:1:"4";}',2,'default')
Error number: 1064
Error message: You have an error in your SQL syntax. Check 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