Closed (fixed)
Project:
FCKeditor - WYSIWYG HTML editor
Version:
6.x-1.3-rc5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Dec 2008 at 16:13 UTC
Updated:
11 Dec 2008 at 13:42 UTC
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
Comment #1
wwalc commentedCheck 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.
Comment #2
wwalc commentedBtw. it is possible to tell FCKeditor to create directory for each user in file browser settings in the FCKeditor profile.
Comment #3
isidoromendez commentedit works!!
TKS!!!