Forums / All Other Contributions/Addons / FCKeditor Plugin 2.5

FCKeditor Plugin 2.5

Results 1 to 20 of 187
26 Jan 2008, 23:59
#1
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

FCKeditor Plugin 2.5

I've installed FCKeditor on my new 1.3.8 cart, and it's almost working okay. Whenever I click to upload an image, it only lets me browse "/" I can't see my /images folder or any folders inside it. I looked around to see if there is a default folder path, but was unable to locate it. Does it have anything to do with permissions? I set the entire /images folder to chmod 777 for a short while to see if it had any effect, but it still couldnt see it.

Please help.

Thank you.
27 Jan 2008, 00:21
#2
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

Looks like it's defaulting to /myfiles/image/

I need it to go to /images/

I'll tear apart the code to try and find it. If somebody knows where it is, thanks.
27 Jan 2008, 00:23
#3
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

I thought this was it....

/editors/fckeditor/editor/filemanager/connectors/php/config.php is the file you want to modify.

// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/myfiles/' ;

but after changing to /images/
it did nothing. I'll keep looking.
27 Jan 2008, 00:53
#4
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

I cant find anywhere else to modify on fckeditor other than that config.php file. If anybody can help, I'd appreciate it.

Thank you.
27 Jan 2008, 04:41
#5
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

Since fckeditor is using a new location for it's images instead of the old /images/ folder, what would be the best way to either move all of my images, and have the website reflect the changes, or change the old path back to what it used to be in fckeditor, instead of /myfiles/images/ ??

Shouldn't there be a simple sql command that I can throw at it? maybe edit a few ez-pages?

But what about all of my products, and categories, and main page, ... the list goes on an on. I really dont want to start storing my images in 2 different locations.
27 Jan 2008, 20:47
#6
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

Doesn't anybody know how to change the default location of all of your images that you upload via FCKeditor back to /images/ ??

I'm kind of stuck on adding more products untill I figure this out. I'm sure it is in the config.php file for fck editor in /editors/fckeditor/editor/filemanager/connectors/php/config.php

but there are so many areas to modify, and I'm no php guru. It's a challenge for me.

Thanks for any help.
31 Jan 2008, 01:55
#7
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

Okay, I've got it figured out.

There are a few things that need to be changed.

Open:
/editors/fckeditor/editor/filemanager/connectors/php/config.php

Find (on line 33 and 34):

// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/myfiles/' ;

Change it to:

// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/images/' ;


Also find (near the bottom)

$Config['DeniedExtensions']['File'] = array() ;
$Config['FileTypesPath']['File'] = $Config['UserFilesPath'] . 'file/' ;
$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'file/' ;
$Config['QuickUploadPath']['File'] = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['File']= $Config['UserFilesAbsolutePath'] ;

Change it to:

$Config['DeniedExtensions']['File'] = array() ;
$Config['FileTypesPath']['File'] = $Config['UserFilesPath'] . '/' ;
$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'/' ;
$Config['QuickUploadPath']['File'] = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['File']= $Config['UserFilesAbsolutePath'] ;



I've tested these settings, and they work. :clap: :clap: :clap:
02 Feb 2008, 20:31
#8
highroller avatar

highroller

New Zenner

Join Date:
May 2007
Posts:
23
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

Hello, just wondering if you could let me know this since you have installed the FCKeditor Plugin 2.5 plugin.

I generated some code at http://www.fatfreecart.com/ a button creater for Paypal and Google Checkout and tried to paste the generated code into the HtmlArea of Catalogs/Products = Products Information: and it did not work.

Do you think if I installed FCKeditor Plugin 2.5 would this let me paste the generated code from http://www.fatfreecart.com/ into it and make the code display and function correctly?

Here is a direct link to the button code generater http://www.fatfreecart.com/code_gen.php

Thank you
03 Feb 2008, 16:30
#9
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

I don't see why not. I love fckeditor. It does everything I need it to.

Give it a shot. If worst comes to worst, or it doesn't work out for you, uninstall it.
06 Feb 2008, 17:21
#10
mewell avatar

mewell

New Zenner

Join Date:
Oct 2007
Posts:
28
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

Is it me or do pages that use FCKeditor 2.5 load painfully slow? If I change to to "Plain Text" the (for instance) Product Category page loads in just under 6 seconds, ready to edit. When I use FCK to page takes twice as long.

Mark Ewell
www.remarkablepens.com
07 Feb 2008, 12:41
#11
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

It takes about 6 seconds for me, and that's with fckeditor. Then again, I have 12 meg cable service. I can download at 1.2 megs per second.
07 Feb 2008, 16:27
#12
awmg2002 avatar

awmg2002

New Zenner

Join Date:
Feb 2008
Posts:
3
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

canemasters:

Okay, I've got it figured out.

There are a few things that need to be changed.

Open:
/editors/fckeditor/editor/filemanager/connectors/php/config.php

Find (on line 33 and 34):

// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/myfiles/' ;

Change it to:

// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/images/' ;


Also find (near the bottom)

$Config['DeniedExtensions']['File'] = array() ;
$Config['FileTypesPath']['File'] = $Config['UserFilesPath'] . 'file/' ;
$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'file/' ;
$Config['QuickUploadPath']['File'] = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['File']= $Config['UserFilesAbsolutePath'] ;

Change it to:

$Config['DeniedExtensions']['File'] = array() ;
$Config['FileTypesPath']['File'] = $Config['UserFilesPath'] . '/' ;
$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'/' ;
$Config['QuickUploadPath']['File'] = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['File']= $Config['UserFilesAbsolutePath'] ;



I've tested these settings, and they work. :clap: :clap: :clap:


Hi,
I just changed my settings to what you have above and still cannot find the images. It has now created a images/image folder that I cannot find.

Is there another place that needs changes?

thank you
sansam:unsure:
07 Feb 2008, 17:32
#13
kimsonvu avatar

kimsonvu

Zen Follower

Join Date:
Aug 2006
Posts:
263
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

canemasters:

It takes about 6 seconds for me, and that's with fckeditor. Then again, I have 12 meg cable service. I can download at 1.2 megs per second.


I took me about 3 second with line cable in 512kbs download / 256 kbs upload.

Ps: Your website is very nice !
07 Feb 2008, 23:21
#14
glurgle avatar

glurgle

New Zenner

Join Date:
Feb 2008
Posts:
2
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

I'm also not getting anywhere with those settings, the browser appears, but with nothing displayed in the center panes.
08 Feb 2008, 14:48
#15
mewell avatar

mewell

New Zenner

Join Date:
Oct 2007
Posts:
28
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

canemasters:

It takes about 6 seconds for me, and that's with fckeditor. Then again, I have 12 meg cable service. I can download at 1.2 megs per second.


OK, Thanks! I'm on DSL with a download speed of 2500+ kbps. I sure do notice the load time difference from the older HTMLarea editor to FCK. I *do* like the editor, tho'.


kimsonvu:

I took me about 3 second with line cable in 512kbs download / 256 kbs upload.

Ps: Your website is very nice !


Thanks for the report AND the compliment!

Mark Ewell
www.remarkablepens.com
08 Feb 2008, 15:09
#16
canemasters avatar

canemasters

Zen Follower

Join Date:
Mar 2007
Posts:
444
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

Okay, here is my config.php file. Not sure why it's not working for you, but maybe I made a mistake while posting that.

global $Config ;

// SECURITY: You must explicitly enable this "connector". (Set it to "true").
// WARNING: don't just set "$Config['Enabled'] = true ;", you must be sure that only
// authenticated users can access this file or use some kind of session checking.
$Config['Enabled'] = true ;


// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/images/' ;

// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Useful if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '' ;

// Due to security issues with Apache modules, it is recommended to leave the
// following setting enabled.
$Config['ForceSingleExtension'] = true ;

// Perform additional checks for image files
// if set to true, validate image size (using getimagesize)
$Config['SecureImageUploads'] = true;

// What the user can do with this connector
$Config['ConfigAllowedCommands'] = array('QuickUpload', 'FileUpload', 'GetFolders', 'GetFoldersAndFiles', 'CreateFolder') ;

// Allowed Resource Types
$Config['ConfigAllowedTypes'] = array('File', 'Image', 'Flash', 'Media') ;

// For security, HTML is allowed in the first Kb of data for files having the
// following extensions only.
$Config['HtmlExtensions'] = array("html", "htm", "xml", "xsd", "txt", "js") ;

/*
Configuration settings for each Resource Type

- AllowedExtensions: the possible extensions that can be allowed.
If it is empty then any file type can be uploaded.
- DeniedExtensions: The extensions that won't be allowed.
If it is empty then no restrictions are done here.

For a file to be uploaded it has to fulfill both the AllowedExtensions
and DeniedExtensions (that's it: not being denied) conditions.

- FileTypesPath: the virtual folder relative to the document root where
these resources will be located.
Attention: It must start and end with a slash: '/'

- FileTypesAbsolutePath: the physical path to the above folder. It must be
an absolute path.
If it's an empty string then it will be autocalculated.
Useful if you are using a virtual directory, symbolic link or alias.
Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
Attention: The above 'FileTypesPath' must point to the same directory.
Attention: It must end with a slash: '/'

- QuickUploadPath: the virtual folder relative to the document root where
these resources will be uploaded using the Upload tab in the resources
dialogs.
Attention: It must start and end with a slash: '/'

- QuickUploadAbsolutePath: the physical path to the above folder. It must be
an absolute path.
If it's an empty string then it will be autocalculated.
Useful if you are using a virtual directory, symbolic link or alias.
Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
Attention: The above 'QuickUploadPath' must point to the same directory.
Attention: It must end with a slash: '/'

NOTE: by default, QuickUploadPath and QuickUploadAbsolutePath point to
"userfiles" directory to maintain backwards compatibility with older versions of FCKeditor.
This is fine, but you in some cases you will be not able to browse uploaded files using file browser.
Example: if you click on "image button", select "Upload" tab and send image
to the server, image will appear in FCKeditor correctly, but because it is placed
directly in /userfiles/ directory, you'll be not able to see it in built-in file browser.
The more expected behaviour would be to send images directly to "image" subfolder.
To achieve that, simply change
$Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Image'] = $Config['UserFilesAbsolutePath'] ;
into:
$Config['QuickUploadPath']['Image'] = $Config['FileTypesPath']['Image'] ;
$Config['QuickUploadAbsolutePath']['Image'] = $Config['FileTypesAbsolutePath']['Image'] ;

*/

$Config['AllowedExtensions']['File'] = array('7z', 'aiff', 'asf', 'avi', 'bmp', 'csv', 'doc', 'fla', 'flv', 'gif', 'gz', 'gzip', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'ods', 'odt', 'pdf', 'png', 'ppt', 'pxd', 'qt', 'ram', 'rar', 'rm', 'rmi', 'rmvb', 'rtf', 'sdc', 'sitd', 'swf', 'sxc', 'sxw', 'tar', 'tgz', 'tif', 'tiff', 'txt', 'vsd', 'wav', 'wma', 'wmv', 'xls', 'xml', 'zip') ;
$Config['DeniedExtensions']['File'] = array() ;
$Config['FileTypesPath']['File'] = $Config['UserFilesPath'] . '/' ;
$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'/' ;
$Config['QuickUploadPath']['File'] = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['File']= $Config['UserFilesAbsolutePath'] ;

$Config['AllowedExtensions']['Image'] = array('bmp','gif','jpeg','jpg','png') ;
$Config['DeniedExtensions']['Image'] = array() ;
$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . '/' ;
$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'/' ;
$Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ;

$Config['AllowedExtensions']['Flash'] = array('swf','flv') ;
$Config['DeniedExtensions']['Flash'] = array() ;
$Config['FileTypesPath']['Flash'] = $Config['UserFilesPath'] . '/' ;
$Config['FileTypesAbsolutePath']['Flash']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'/' ;
$Config['QuickUploadPath']['Flash'] = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Flash']= $Config['UserFilesAbsolutePath'] ;

$Config['AllowedExtensions']['Media'] = array('aiff', 'asf', 'avi', 'bmp', 'fla', 'flv', 'gif', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'png', 'qt', 'ram', 'rm', 'rmi', 'rmvb', 'swf', 'tif', 'tiff', 'wav', 'wma', 'wmv') ;
$Config['DeniedExtensions']['Media'] = array() ;
$Config['FileTypesPath']['Media'] = $Config['UserFilesPath'] . '/' ;
$Config['FileTypesAbsolutePath']['Media']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'/' ;
$Config['QuickUploadPath']['Media'] = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Media']= $Config['UserFilesAbsolutePath'] ;

?>


I hope that helps. Make sure you check the bottom of the config.php file as well where I highlighted in red.
24 Feb 2008, 18:32
#17
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Posts:
792
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

canemasters:

Okay, here is my config.php file. Not sure why it's not working for you, but maybe I made a mistake while posting that.



I hope that helps. Make sure you check the bottom of the config.php file as well where I highlighted in red.


Why are you altering the config files? The idea is to keep your content images seperate from your cart, or product images.
06 Mar 2008, 05:41
#18
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

testuser:

Why are you altering the config files? The idea is to keep your content images seperate from your cart, or product images.


Not for me either- the Myfiles folder throws me way off and separates my files which I don't like. I have been following the thread hoping for someone to find a way to get the path fixed so it can be changes back to the regular images directory.

Why? That is where I keep all my images, even if they are in subdirectories they are off of my main images directory. It looks like I am not alone on this.

I hope that helps answers your question.

betty
07 Mar 2008, 12:53
#19
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Posts:
792
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

bettysue:

Not for me either- the Myfiles folder throws me way off and separates my files which I don't like. I have been following the thread hoping for someone to find a way to get the path fixed so it can be changes back to the regular images directory.

Why? That is where I keep all my images, even if they are in subdirectories they are off of my main images directory. It looks like I am not alone on this.

I hope that helps answers your question.

betty


I'll post the config file tomorrow.
07 Mar 2008, 16:43
#20
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: FCKeditor Plugin 2.5

testuser:

I'll post the config file tomorrow.


thank you.

betty