HI,

I need separation of user pictures so that not too much pictures in one folder.

This is so important because many server have their file limit (for example: Maximum 33,000 files in a folder)

Because the token replacement happens at record side, so user pictures can be saved in different place depending on configuration.

Is it possible token support for use pictures?
Or I miss something in configuration?

Thanks in advance.

Comments

drumnjo’s picture

subscribing

drumnjo’s picture

just an fyi,

I ended up resolving this issue by using the following CCK method:

(Be sure to disable the standard core Drupal way of users adding pictures to profiles)

If you're using Administration Menus (highly recommended) http://drupal.org/project/admin_menu you can do this by going under User Management -> User Settings -> and select "Disable" under 'Pictures' - 'Picture Support'

This also assumes you have 'Content Profile' installed http://drupal.org/project/content_profile

1. Install CCK http://drupal.org/project/cck

2. Install Filefield http://drupal.org/project/filefield ---on same page Recommended modules install imagefield and filefield paths

3. Install ImageApi http://drupal.org/project/imageapi ---on same page Recommended modules install imagecache and imagefield

4. It's a good to idea to use the Imagemagick option because it's less intensive on shared hosting and it should already be installed on their servers. All you need to do is configure it by putting in the correct path, which for me took a couple tries with the Customer Service at the shared hosting provider I go to.

5. Once all is installed or any where during this process, you may want to configure your 'Content Profile' page:

5a. Admin Menus: Content Management -> Content Types -> Edit 'Content Profile' page -> Manage Fields -> 'add' -> 'new field' -> 'Type of data to store.' = file, 'Form element to edit the data.' = image

5b. Then when you 'Configure' this new CCK Field, you can specify what size you want user profile pictures to be, Imagemagick will process for you based on this

Works like a charm. This way all users images get stored in user folders. BTW- you can setup all user uploaded mp3's, jpg's videos etc this same way so all users uploads go to their respective user folders. This is done with the Filefields module I believe.

I may have left something out but this is all info and methods that I learned by reading up on all these modules. This should get you or anyone else started.

dave reid’s picture

Status: Active » Closed (won't fix)

Yeah this isn't something appropriate for token at all.