Hi all,
1. I have spent days trying to figure out how to set up dynamical UserFilesPath with PHP. This means that user can see only his own files and can not see files of other users. Any serious help even would be appreciated.
2. I would be so happy if someone would be so kind and explain what is the matter with those URL paths to images and gave us solution to it. I mean when my domain.com hosts FCKeditor, than what is the setup for something.mydomain.com and all those other problems.
I believe that all of you who know how to solve these problems and all of you good at programming will give us a clear solution and not just a hint.
Please tel us - it is not a secret. I thougt that meaning of open source is also to share some knowledge, but as I look back to this forum people ask the same things again and again and I am asking again - how to solve this two problems.
For the development team. Most of the users are PHP and ASP users. I would be pleased to donate if I see this stuff working.
1. I have spent days trying to figure out how to set up dynamical UserFilesPath with PHP. This means that user can see only his own files and can not see files of other users. Any serious help even would be appreciated.
2. I would be so happy if someone would be so kind and explain what is the matter with those URL paths to images and gave us solution to it. I mean when my domain.com hosts FCKeditor, than what is the setup for something.mydomain.com and all those other problems.
I believe that all of you who know how to solve these problems and all of you good at programming will give us a clear solution and not just a hint.
Please tel us - it is not a secret. I thougt that meaning of open source is also to share some knowledge, but as I look back to this forum people ask the same things again and again and I am asking again - how to solve this two problems.
For the development team. Most of the users are PHP and ASP users. I would be pleased to donate if I see this stuff working.
RE: PHP UserFilesPath for multiple users
\editor\filemanager\browser\default\connectors\php\config.php
Look for this line:
$Config['UserFilesPath'] = 'upload/' ;
Put instead of upload the path you want for evey user. Since this file is in php (assuming you use php), you can figure out the user-name by checking a cookie. Some CMS use cookies to store information. Using the information stored in the cookie you can set another path for different users. Of course there are other solutions, but the main issue here is that you must find a way to identify the user.
$username = <get the username in some way...>;
$Config['UserFilesPath'] = 'upload/$username/' ;
I hope this will give you some directions. You must have some knowledge in programming though.
Good luck,
Amir W.
RE: PHP UserFilesPath for multiple users
Look:
http://fck.kravchuk.biz/viewtopic.php?p=80#80
RE: PHP UserFilesPath for multiple users
RE: PHP UserFilesPath for multiple users
There needs to be a way to set the user file path from the HTML page that creates the FCKeditor object. I cannot seem to figure out any parameter like the one I'm quoting to do this. This is a large limitation if it's true. Does anyone know of a parameter?
The problem with putting PHP in the config.php file of the PHP connector is that you may not know where the file is that you want to include, so there needs to be another way around this.
I am trying to integrate FCK into a CMS of mine and it works fine when the site is placed at the root of the domain. It doesn't work when you try to put it in a subfolder of the site because there is no way right now to dynamically set the user path that I am aware of (someone enlighten me if there is!). You CAN set the base url of the FCK code this way and that works great. I just need a way to do this for the user folder.