Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

FCKEditor and userfiles directory

Guest
Jun 30, 2007 Jun 30, 2007
HI all
I need to make a small app where a logged in user gets their own "userfiles" directory where their jpg files will be stored
eg
/eventsandfunctions/#userfiles#/images

I already use FCkeditor in the administration of the website which is a working successfully in another directory

what i need help is whats the best way for some logged in users to access one directory of images which is shared and other users to access only their directory


Need help urgently. This ability was so easy in Soeditor and other HTML editors but FCKeditor has got me stumped.

TOPICS
Getting started
840
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 30, 2007 Jun 30, 2007
It would seem that each user would have their individual images stored at /eventsandfunctions/#userId#/images and shared images would be stored at /eventsandfunctions/images.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 30, 2007 Jun 30, 2007
The question is how do you set this up in FCKeditor. Do you put this in the site application file or should I put an application file per USER

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 02, 2007 Jul 02, 2007
As far as I know, FCKEditor (or at least the version I've worked with) doesn't provide for individual user directories. The file you need to modify is the connector.cfm
editor/filemanager/browser/default/connectors/cfm/connector.cfm

Method 1: Set the users file path by modifying the connector to support a third level, such as the session scope.


<cfif isDefined(Session.userFilesPath')>
<cflock scope="Session" type="readonly" timeout="3">
<cfset sUserFilesURL = Session.userFilesPath>
</cflock>
<cfelseif isDefined('APPLICATION.userFilesPath')>
<cflock scope="Application" type="readonly" timeout="3">
<cfset sUserFilesURL = APPLICATION.userFilesPath>
</cflock>
<cfelseif isDefined('SERVER.userFilesPath')>
<cflock scope="SERVER" type="readonly" timeout="3">
<cfset sUserFilesURL = SERVER.userFilesPath>
</cflock>

Method 2: Give users access to their folder (R/W) and other folders (R)

look for sUserFilesPath, it's in multiple places. You'll need to add your user pathing information after that variable. Since by definition, all the files in the UserFilesPath are web accessible, they will be able to read any other users files, but you can lock down delete/add/replace to the specific logged in user through some path checks.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 04, 2007 Jul 04, 2007
LATEST
I have a working connectior.cfm that does just that , one that I edited for Forumsigs Image Hosting.

Email me and I can send it to you. It may be a bit old, since I have not updated FCKeditor in a bit, but it may work for you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources