100 <td valign=\"top\">$la_store_welcom_msg</td>"; // <-- don't forget this!! 101 echo "<td valign=\"top\" width=\"500px\">"; //replaces the old line 174 and adds code from here 102$oFCKeditor = new FCKeditor('welcome_note'); 176 $oFCKeditor->BasePath = '/yoursite/admin/FCKeditor/'; // edit yoursite to your site! 177 $oFCKeditor->Value = ($welcome_note); 178 $oFCKeditor->Create(); 179 echo"</td>
101 echo "<td valign=\"top\" >"; 102 $oFCKeditor = new FCKeditor('welcome_note'); 103 $oFCKeditor->BasePath = '/yoursite/FCKeditor/'; // edit yoursite to your site! 104 $oFCKeditor->Value = ($welcome_note); // name of textarea, if you want it to display value from database 105 $oFCKeditor->Create(); 106 echo "</td>";
One thing I forgot, you need to add this line to the php file where you've replaced the teaxtarea. Normally you would put it at the beginning of the file.
include("fckeditor/fckeditor.php");
you need to edit the path to fckeditor.php if it's not 1 level below the file it is called from.
ie . The file where your using fckeditor to replace a textarea is called edit.php and it is stored in;
RE: How to Install it at PHP?
original code
=========
100 echo "<td valign=\"top\" width=\"500px\"><textarea name=\"welcome_note\" value=\"\" cols=\"55\" rows=\"7\">".htmlspecialchars($welcome_note)."</textarea>";
replace with
=========
100 <td valign=\"top\">$la_store_welcom_msg</td>"; // <-- don't forget this!!
101 echo "<td valign=\"top\" width=\"500px\">"; //replaces the old line 174 and adds code from here
102$oFCKeditor = new FCKeditor('welcome_note');
176 $oFCKeditor->BasePath = '/yoursite/admin/FCKeditor/'; // edit yoursite to your site!
177 $oFCKeditor->Value = ($welcome_note);
178 $oFCKeditor->Create();
179 echo"</td>
RE: How to Install it at PHP?
RE: How to Install it at PHP?
original code
=========
101 echo "<td valign=\"top\" width=\"500px\"><textarea name=\"welcome_note\" value=\"\" cols=\"55\" rows=\"7\">".htmlspecialchars($welcome_note)."</textarea>";
replace with
=========
101 echo "<td valign=\"top\" >";
102 $oFCKeditor = new FCKeditor('welcome_note');
103 $oFCKeditor->BasePath = '/yoursite/FCKeditor/'; // edit yoursite to your site!
104 $oFCKeditor->Value = ($welcome_note); // name of textarea, if you want it to display value from database
105 $oFCKeditor->Create();
106 echo "</td>";
hope this helps.
regards
paulmac21
RE: How to Install it at PHP?
include("fckeditor/fckeditor.php");
you need to edit the path to fckeditor.php if it's not 1 level below the file it is called from.
ie . The file where your using fckeditor to replace a textarea is called edit.php and it is stored in;
yousite/admin/
you would install fckeditor to normally;
yoursite/admin/fckeditor/
and use;
include("fckeditor/fckeditor.php");
at the beginning of edit.php