I installed tinymce with tinyfck and it is working great, Now I want to include the username in UserFilesPath in config.php instead of $Config['UserFilesPath'] = '/UserFiles/'; I want to use this $Config['UserFilesPath'] = '/UserFiles/' . $user->name . '/';

How to can I get the username from modules/tinymce/tinymce/jscripts/tiny_mce/filemanager/connectors/php/config.php

I have tried this and the user name is blank.

global $user;
$Config['UserFilesPath'] = '/UserFiles/' . $user->name . '/'

Thanks

Comments

jadwigo’s picture

At the moment that is not possible because FCKEditor does not 'know' any of the drupal variables.

H3rnand3z’s picture

Any tips on making this work?

jadwigo’s picture

I found this version of a filemanager for FCKEditor yesterday http://fckeditor.prosjektweb.net/
I guess it is as good a starting point as any, and plan on using it too