It would be great if the site administrator could set the default location of users' personal directories as placeholders. The way it's setup right now, it defaults to u1, u2, u3. This causes problems in multi-site setups where different users sometimes have the same user id among different sites. If the personal directories use placeholders set by the system admin, you could set the personal directories to something like "%uid-%username", and no conflicts would be made.

Comments

RobLoach’s picture

Another idea for a place holder is %sitename. You could then use %sitename-%uid to make the personal directory truly unique.

drupalnesia’s picture

I like to use 'name' instead 'uid' because easy to read " John" rather then "u275'.

lias’s picture

+1 username

Andy Ramblings’s picture

What you can do, I guess, is if you have multiple roles, you could have the default folder change from User to the name of the role.
For uniqueness, I would would use, Role>name at the moment you can have Role>UID

Andy

drupalnesia’s picture

Status: Active » Closed (fixed)

I just put this feature into openWYSIWYG module. You can use: user id, user name and domain name as variable.
Such as [domainname]-[username] will be translate to xyz.com-yourname, to avoid conflict when users use same username but different domain.

Please open issue in http://drupal.org/project/openwysiwyg when you have another idea. Thanks.

Antenna-1’s picture

Version: 5.x-1.x-dev » 6.x-1.2
Component: Code » Documentation
Category: feature » support
Status: Closed (fixed) » Active

The u%uid as a placeholder for personal directories is fine!
Can you tell me the Drupal placeholder for the group name? So memebers of a group will share a common directory for images and documents.
Thanks in advance for any answer.

ufku’s picture

Status: Active » Closed (fixed)

IMCE does not support any placeholder other than %uid, however it supports usage of PHP in directory paths, which offers unlimited options.

mk31762’s picture

How would that work? Surely you don't mean using PHP code directly in the input field on the admin page.