I want Integrat php code in my blog powered by DotClear.
I know that I must modify Poster.php ( Write blog Text area ) but I don't understand :
Step 1 :
Suppose that the editor is installed in the /FCKeditor/ path of your web site. The first thing to do is to include the "PHP Integration Module" file in the top of your page, just like this:
#Easy integration
Step 2
Now the FCKeditor is available and ready to use. So, just insert the following code in your page to create an instance of the editor (usually inside a <FORM>):
#Where I paste this code ?
On the next post I'll show you my default page Poster.php
I know that I must modify Poster.php ( Write blog Text area ) but I don't understand :
Step 1 :
Suppose that the editor is installed in the /FCKeditor/ path of your web site. The first thing to do is to include the "PHP Integration Module" file in the top of your page, just like this:
#Easy integration
<?php include("FCKeditor/fckeditor.php") ; ?>
Step 2
Now the FCKeditor is available and ready to use. So, just insert the following code in your page to create an instance of the editor (usually inside a <FORM>):
#Where I paste this code ?
<?php
$oFCKeditor = new FCKeditor('FCKeditor1');
$oFCKeditor->BasePath = '/FCKeditor/';
$oFCKeditor->Value = 'Default text in editor';
$oFCKeditor->Create();
?>
On the next post I'll show you my default page Poster.php