FCK integration problem within PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zama
    New Member
    • Sep 2006
    • 1

    FCK integration problem within PHP

    Hi there,
    I've just installed a PHP based webpage on my pc running apache server locally.
    I've found some trouble wen trying to integrate FCK editor in my PHP news editor. I modified sories.php in the following way:
    echo "<br><br><b>"._ STORYTEXT."</b><br>";
    //."<textarea wrap=\"virtual\ " cols=\"50\" rows=\"7\" name=\"hometext \">$story</textarea><br><b r>"
    // Editor Start
    $oFCKeditor = new FCKeditor(homet ext) ;
    $oFCKeditor->InstanceName = "hometext" ;
    $oFCKeditor->Value = "$story" ;
    $oFCKeditor->ToolbarSet = "Default" ;
    $oFCKeditor->Create() ;
    // Editor Ende
    echo."<b>"._EXT ENDEDTEXT."</b><br>"
    ."<textarea wrap=\"virtual\ " cols=\"50\" rows=\"8\" name=\"bodytext \">$storyext </textarea><BR>"
    ."<font class=\"content \">"._AREYOUSUR E."</font><br><br>"
    ."<b>"._NOTES." </b><br>"
    ............... ............... ............... ............... ............... .etc.
    when I click addstories in my administrator area, this is what turns up:
    Parse error: parse error, expecting `','' or `';'' in c:\archivos de programa\appser v\www\html\admi n\modules\stori es.php on line 711

    Being line 771 the following: linea 711 echo."<b>"._EXT ENDEDTEXT."</b><br>"

    I´d appreciate any help...........
  • phpmaet
    New Member
    • Sep 2006
    • 27

    #2
    Hi,
    Try this alternate code.


    [PHP]$oFCKeditor = new FCKeditor('home text');
    $oFCKeditor->BasePath = 'FCKeditor/';
    $oFCKeditor->Value ="";
    $oFCKeditor->Height=300;
    $oFCKeditor->Width=700;
    $oFCKeditor->Create(); [/PHP]

    If you want the TextArea data use this,

    [PHP]$FCKeditor=$_PO ST['hometext'];[/PHP]

    Thanks

    Comment

    Working...