How To Install FCKeditor and / or HtmlArea "Plugin"

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
megabob3
Power Poster
Power Poster
Posts: 498
Joined: Sat Jan 08, 2005 11:11 pm

How To Install FCKeditor and / or HtmlArea "Plugin"

Post by megabob3 »

I did it, think :p
new connector.php

/************************/

/**************************/

Bye :)
Last edited by megabob3 on Mon Jan 17, 2005 2:28 pm, edited 1 time in total.
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

How To Install FCKeditor and / or HtmlArea "Plugin"

Post by Greg »

The path I get is not correct:
/ebsites/gregbloorcms/uploads/Image/apache_pb.gif

Should be /websites/gregbloorcms/uploads/Image/apache_pb.gif
The w in websites is missing.

When I take out the +1 on line 57 it works correctly!

Now if it would find the 'images' folder instead of the 'Image' folder it would be perfect!
Greg
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

How To Install FCKeditor and / or HtmlArea "Plugin"

Post by Greg »

To set the height of the editor I added line 36 $neweditor->Height = '400px'; to \modules\FCKeditor\modulefunctions.php

Is this the correct spot?
Greg
megabob3
Power Poster
Power Poster
Posts: 498
Joined: Sat Jan 08, 2005 11:11 pm

How To Install FCKeditor and / or HtmlArea "Plugin"

Post by megabob3 »

Greg wrote:The path I get is not correct:
/ebsites/gregbloorcms/uploads/Image/apache_pb.gif

Should be /websites/gregbloorcms/uploads/Image/apache_pb.gif
The w in websites is missing.

When I take out the +1 on line 57 it works correctly!

Now if it would find the 'images' folder instead of the 'Image' folder it would be perfect!
:roll: :roll: :roll: :roll: :roll:
megabob3
Power Poster
Power Poster
Posts: 498
Joined: Sat Jan 08, 2005 11:11 pm

How To Install FCKeditor and / or HtmlArea "Plugin"

Post by megabob3 »

Greg wrote:To set the height of the editor I added line 36 $neweditor->Height = '400px'; to \modules\FCKeditor\modulefunctions.php

Is this the correct spot?
i don't think

you changed this:
$oFCKeditor->Height = $rows*20;


it's enough write
$neweditor->Height = 400

Bye :)
megabob3
Power Poster
Power Poster
Posts: 498
Joined: Sat Jan 08, 2005 11:11 pm

How To Install FCKeditor and / or HtmlArea "Plugin"

Post by megabob3 »

megabob3 wrote: :roll: :roll: :roll: :roll: :roll:
i am searching a new solution.

:roll: :roll: :roll: :roll: :roll: :roll:
megabob3
Power Poster
Power Poster
Posts: 498
Joined: Sat Jan 08, 2005 11:11 pm

How To Install FCKeditor and / or HtmlArea "Plugin"

Post by megabob3 »

megabob3 wrote: i am searching a new solution.

:roll: :roll: :roll: :roll: :roll: :roll:
Finded the problem :D

strrpos("today is a BAD day", "BAD");

in locale on my windows machine, the result is the index of "D"
on my server, like yors, i guess linux, or different PHP version
the result is the index of "B"

i am writing a new connector :)

give me few minute.
megabob3
Power Poster
Power Poster
Posts: 498
Joined: Sat Jan 08, 2005 11:11 pm

How To Install FCKeditor and / or HtmlArea "Plugin"

Post by megabob3 »

/*++++++++++++++++*/
log("GetRootPath():".$STR);
$config["root_path"] = str_replace( '\\', '/', $config["root_path"] );
//$Log->log("root_path | ".$config["root_path"]);
$config["uploads_path"] = str_replace( '\\', '/', $config["uploads_path"] );
//$Log->log("uploads_path | ".$config["uploads_path"]);


$pos = strrpos($STR, "/");
$ult = substr($STR, $pos+1, strlen($STR)-$pos);
//$Log->log("ultima | ".$ult);

$pos = strrpos($config["uploads_path"], $ult);

while($config["uploads_path"][$pos] != "/")
$pos++;
/*
$Log->log("Pos ".$pos);
$Log->log("uploads_path[pos] ".$config["uploads_path"][$pos]);
*/

$usrfp = substr($config["uploads_path"], $pos)."/";

$GLOBALS["UserFilesPath"] = $usrfp ;
/*
$GLOBALS["UserFilesDirectory"] = str_replace( '\\', '/', GetRootPath() ) . str_replace( '\\', '/', $GLOBALS["UserFilesPath"] ) ;
$Log->log("UserFilesPath | ".$GLOBALS["UserFilesPath"]);
$Log->log("UserFilesDirectory | ".$GLOBALS["UserFilesDirectory"]);
$Log->close();
*/
}

// Map the "UserFiles" path to a local directory.
$GLOBALS["UserFilesDirectory"] = str_replace( '\\', '/', GetRootPath() ).str_replace( '\\', '/', $GLOBALS["UserFilesPath"] ) ;


DoResponse() ;

function DoResponse()
{
if ( !isset( $_GET['Command'] ) || !isset( $_GET['Type'] ) || !isset( $_GET['CurrentFolder'] ) )
return ;

// Get the main request informaiton.
$sCommand = $_GET['Command'] ;
$sResourceType = $_GET['Type'] ;
$sCurrentFolder = $_GET['CurrentFolder'] ;

// Check the current folder syntax (must begin and start with a slash).
if ( ! ereg( '/$', $sCurrentFolder ) ) $sCurrentFolder .= '/' ;
if ( strpos( $sCurrentFolder, '/' ) !== 0 ) $sCurrentFolder = '/' . $sCurrentFolder ;

// File Upload doesn't have to Return XML, so it must be intercepted before anything.
if ( $sCommand == 'FileUpload' )
{
FileUpload( $sResourceType, $sCurrentFolder ) ;
return ;
}

// Prevent the browser from caching the result.
// Date in the past
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT') ;
// always modified
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT') ;
// HTTP/1.1
header('Cache-Control: no-store, no-cache, must-revalidate') ;
header('Cache-Control: post-check=0, pre-check=0', false) ;
// HTTP/1.0
header('Pragma: no-cache') ;

// Set the response format.
header( 'Content-Type:text/xml; charset=utf-8' ) ;

CreateXmlHeader( $sCommand, $sResourceType, $sCurrentFolder ) ;

// Execute the required command.
switch ( $sCommand )
{
case 'GetFolders' :
GetFolders( $sResourceType, $sCurrentFolder ) ;
break ;
case 'GetFoldersAndFiles' :
GetFoldersAndFiles( $sResourceType, $sCurrentFolder ) ;
break ;
case 'CreateFolder' :
CreateFolder( $sResourceType, $sCurrentFolder ) ;
break ;
}

CreateXmlFooter() ;

exit ;
}
?>
/*++++++++++++++++++++++*/

I verified this, in locale and on my website with Linux server.

It go well, try it :)

Bye.
megabob3
Power Poster
Power Poster
Posts: 498
Joined: Sat Jan 08, 2005 11:11 pm

How To Install FCKeditor and / or HtmlArea "Plugin"

Post by megabob3 »

About FCKeditor all seems OK

Pls try this http://www.awakening.it/uploads/FCKeditor.zip

try it.

Pls controls if FCKeditor save this line:
{cms_module module="onemodule"}
in
{cms_module module="onemodule"}


Bye :)
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

How To Install FCKeditor and / or HtmlArea "Plugin"

Post by Greg »

Sorry but none of these versions work on my set-up.
The last code embeded in your message causes a 'not responding' error when I try to upload a file. ??
FCKEditor seems to have a lot of problems.
Greg
megabob3
Power Poster
Power Poster
Posts: 498
Joined: Sat Jan 08, 2005 11:11 pm

How To Install FCKeditor and / or HtmlArea "Plugin"

Post by megabob3 »

Greg wrote:Sorry but none of these versions work on my set-up.
The last code embeded in your message causes a 'not responding' error when I try to upload a file. ??
FCKEditor seems to have a lot of problems.
:mad:

Tried on in an F5 press :P, i am joking.

However, i will give you a new CONNECTOR.PHP that create a LOG file,
and pls post it.

Bye :)
megabob3
Power Poster
Power Poster
Posts: 498
Joined: Sat Jan 08, 2005 11:11 pm

How To Install FCKeditor and / or HtmlArea "Plugin"

Post by megabob3 »

Greg wrote:Sorry but none of these versions work on my set-up.
The last code embeded in your message causes a 'not responding' error when I try to upload a file. ??
FCKEditor seems to have a lot of problems.
Lol with my substitution of "editor" folder i resolved the problem of quote.

But now, FCKeditor save file and forlder on UNIX system with ""
"images\apache_pb.gif"

It do the operation but with this "" instead of "/".

I must continue with my crazing :D

See you after :)
megabob3
Power Poster
Power Poster
Posts: 498
Joined: Sat Jan 08, 2005 11:11 pm

How To Install FCKeditor and / or HtmlArea "Plugin"

Post by megabob3 »

I am doing and doing :D

continue here to control the steps :P

http://forum.cmsmadesimple.org/viewtopic.php?t=380

Thx Greg :)
Locked

Return to “[locked] Installation, Setup and Upgrade”