Hi everybody,
I'm looking for a way to configure dynamically Images and Flashes upload's paths in PHP context...
But I don't want to edit "$Config['UserFilesPath'] = '/userfiles/' " in "/editor/filemanager/connectors/php/config.php" for all cases.
Because if I update FCK with future releases, this file will overwrite and because I need to create or read destination directories on fly.
e.g. : user X come in admin page of my web site (where I put a Fck instance) and click on Image button, so I would to create a "users_files/user_X/images/" directory to store his pictures and when this user click on "Browse Server" at the next time, he can browse "users_files/user_X/images/" directory.
So I search a solution like : $object_fck->Config['UserFilesPath'] = "my_custom/path/images/".$my_user_name;
Sorry for my simple English and thank's for helps by advance!
Avairet
I'm looking for a way to configure dynamically Images and Flashes upload's paths in PHP context...
But I don't want to edit "$Config['UserFilesPath'] = '/userfiles/' " in "/editor/filemanager/connectors/php/config.php" for all cases.
Because if I update FCK with future releases, this file will overwrite and because I need to create or read destination directories on fly.
e.g. : user X come in admin page of my web site (where I put a Fck instance) and click on Image button, so I would to create a "users_files/user_X/images/" directory to store his pictures and when this user click on "Browse Server" at the next time, he can browse "users_files/user_X/images/" directory.
So I search a solution like : $object_fck->Config['UserFilesPath'] = "my_custom/path/images/".$my_user_name;
Sorry for my simple English and thank's for helps by advance!
Avairet

Re: Configure File Browser in PHP integration?
What I need is to get $_SESSION values for setting my custom userfiles path.
How can I access to the session values setting by my own application?
Thank's for your attention!
Avairet
Re: Configure File Browser in PHP integration?
Session("FCKeditor:UserFilesPath") = "~/App_Images/Re: Configure File Browser in PHP integration?
But I don't want put "FCKeditor:UserFilesPath" in Session. I want add "$_SESSION['user_name']" to "FCKeditor:UserFilesPath"... to manage personal folders for each user. So how or where can I get the session values in the editor core? In which file?
Avairet
Re: Configure File Browser in PHP integration?
Re: Configure File Browser in PHP integration?
OK, but where must I write this code?
Yes of course.
OK, but in the "config.php", $_SESSION['UserName'] return a empty string...
Obviously, $_SESSION is not available in this config.php file!
Re: Configure File Browser in PHP integration?
Re: Configure File Browser in PHP integration?
What is your Fck version?
Because in mine, there is no "initialization and reloads it from the config.php" action and no "ServerPath paramater to the Path" setting...
I've read some googled examples that explain we must write "session_start();" at the top of "config.php" and "connector.php" and "upload.php"... but I think it's not very optimize because of the Fck core updates.
However for the moment, I will do that...
BR
Avairet
Re: Configure File Browser in PHP integration?
Re: Configure File Browser in PHP integration?