Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By H3rnand3z on
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
At the moment that is not
At the moment that is not possible because FCKEditor does not 'know' any of the drupal variables.
Were should I start?
Any tips on making this work?
I found this version of a
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