in the file config.php I set

global $Config, $user ;
$Config['UserFilesPath'] = '/userfiles/'.$user->uid.'/' ;

what i discovered is that $user is null

For testing i set
$Config['UserFilesPath'] = '/userfiles/'.'/dir/' ;
and it works, the folder dir was created.

I read http://drupal.org/node/233664, where the $user variable is used.

Comments

wwalc’s picture

Check out the README.txt file, there is an information about adding
require_once '../../../../../filemanager.config.php';
into config.php.
If you look into filemanager.config.php, you'll see that CheckAuthentication contains lots of code just to call this function:
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);

So if you want to access $user in config.php, you should do the same thing.

wwalc’s picture

Btw. it is possible to tell FCKeditor to create directory for each user in file browser settings in the FCKeditor profile.

isidoromendez’s picture

Status: Active » Closed (fixed)

it works!!

TKS!!!