Welcome Guest, Not a member yet? Register   Sign In
FCKeditor integration
#5

[eluser]amw_drizz[/eluser]
the code that calls it
Code:
<?php
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = fckeditor_path.'/fckeditor/' ;
$oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
$oFCKeditor->Create() ;
?&gt;

and this is at the top of my file
Code:
&lt;?php
define('fckeditor_path',$_SERVER['DOCUMENT_ROOT'].'/subs/static');
?&gt;
&lt;?php
include_once(fckeditor_path."/fckeditor/fckeditor.php") ;
?&gt;

I load it up and I am not using mod_rewrite, and when it is on my production server it is going to be divided up into sub domains and the folder subs is were the sub domains will be pointing to ie, static.example.com will point to public_html/subs/static and so on. And I will adjust the code accordingly. Idealy I want to be able to use

Code:
static_path

Witch points to the subdomains and I have an if statment in the config to determine if it is localhost or not.


Messages In This Thread
FCKeditor integration - by El Forum - 10-31-2008, 03:10 PM
FCKeditor integration - by El Forum - 11-01-2008, 05:56 AM
FCKeditor integration - by El Forum - 12-09-2008, 06:08 PM
FCKeditor integration - by El Forum - 12-09-2008, 06:21 PM
FCKeditor integration - by El Forum - 12-09-2008, 06:37 PM
FCKeditor integration - by El Forum - 12-09-2008, 06:43 PM
FCKeditor integration - by El Forum - 12-09-2008, 06:46 PM
FCKeditor integration - by El Forum - 12-09-2008, 06:53 PM
FCKeditor integration - by El Forum - 12-09-2008, 06:55 PM
FCKeditor integration - by El Forum - 12-09-2008, 07:11 PM
FCKeditor integration - by El Forum - 12-09-2008, 10:36 PM
FCKeditor integration - by El Forum - 12-28-2008, 02:47 PM
FCKeditor integration - by El Forum - 07-17-2009, 09:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB