Changing default image directories in FCKeditorX

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Changing default image directories in FCKeditorX

Post by cnymike »

I'm wondering if it is possible to change the default behavior of the directory that is accessed when the "Insert/Edit Image" tool is accessed in the FCKeditor window. Furthermore I am interested in also changing the default directory that the ""Link" tab in the "Insert/Edit Image" tool accesses when it is selected.

Any help would be appreciated.
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

Re: Changing default image directories in FCKeditorX

Post by Elijah Lofgren »

If you're using FCKeditor 1.0.2 and you're wanting to make it use images from uploads/images then try installing FCKeditorX 1.0.3: http://dev.cmsmadesimple.org/frs/?group ... ase_id=714

If you'd like some other dir, open config.php and change the following 2 settings to the dir that you want.

Code: Select all

#Where are uploaded files put?  This defaults to uploads.
$config['uploads_path'] = '/opt/lampp/htdocs/cmsmadesimple/uploads';

#Where is the url to this uploads directory?
$config['uploads_url'] = 'http://cmsmadesimple.localhost/uploads';

For fixing the Link tab, I just change something in SVN: http://viewsvn.cmsmadesimple.org/viewsv ... x&view=rev
You can download this file: http://viewsvn.cmsmadesimple.org/viewsv ... iew=markup
and replace your current: modules/FCKeditor/editor/filemanager/browser/default/connectors/php/connector.php with it so that the directory browsed to will be "uploads" instead of "uploads/File".

Hope this helps,

Elijah
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
Post Reply

Return to “CMSMS Core”