Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 04:15:37 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: [solve]Searching for a workaraund for the HOME_FOLDER-Bug in the FCKEDITOR  (Read 576 times)
spawnferkel

Offline Offline

Posts: 96



« on: March 12, 2008, 02:45:08 PM »

Hello,

I have installed the newest WB (RC1) and I am very glad with it. And I am astonish about how well the system works but I am looking for one little imporvement.

If I allocate a home-folder in the media-directory for one single user it is in my opinion very useful if he starts directly in this directory if he tries to upload some files.

My problem is mostly concern with the integration of the home-folder in the fckeditor because there is none. The user sees every folder in the media-directory and is allowed to upload his files everywhere.

Is there any workaround for this problem, or do you have any other idea?


Thanks in advance.

Alexander Franksmann
« Last Edit: March 12, 2008, 03:36:26 PM by spawnferkel » Logged
spawnferkel

Offline Offline

Posts: 96



« Reply #1 on: March 12, 2008, 03:35:08 PM »

YEEEHA,

i found the solution for my probl.
after I work for hours in the wrong file and wondering why my changes have no effect on the output i edit the /modules/fckeditor/fckeditor/editor/filemanager/connectors/php/config.php and replace the lines 52 till 64 with this code:

$Config['UserFilesPath'] = WB_URL .MEDIA_DIRECTORY ;
if(isset($_SESSION['HOME_FOLDER'])){
    $Config['UserFilesPath'] = $Config['UserFilesPath'].$_SESSION['HOME_FOLDER'];
}
// 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['UserFilesAbsolutePa th'] = '' ;
$Config['UserFilesAbsolutePa th'] = WB_PATH .MEDIA_DIRECTORY ;
if(isset($_SESSION['HOME_FOLDER'])){
    $Config['UserFilesAbsolutePa th'] = $Config['UserFilesAbsolutePa th'].$_SESSION['HOME_FOLDER'];
}

Happy baking

Alexander Franksmann
Logged
doc
Guest
« Reply #2 on: March 12, 2008, 03:52:24 PM »

Hello,

maybe we can integrate this into the final WB 2.7 release. Thanks for your contribution.

Regards Christian
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!