Enabling user pictures (avatars)

Last modified: January 12, 2009 - 05:11

User pictures (or avatars) or pictures are part of the user.module, not the profile module.

Enable user pictures

  1. Navigate to the administration area for user module configuration page under Administer > User Management > User Settings. In Drupal 4.7 this screen is available from administer > settings > users.
  2. In the Pictures settings, for Picture support, select Enabled (Enable picture support.)
  3. You must set the directory where you want the images to be stored. Make sure the directory is created and make sure you have that directory has write permissions (that is, chmod to 755).
  4. Click "Save Configuration"

Once the pictures are enabled you must also make sure to change your settings to display them:

  1. Go to Administer > Site Building > Themes and click the "Configure" tab to change the setting for all of your themes. (To only make the change to one theme, click the "configure" link next to your-theme-name instead.)
  2. Check the boxes for "User pictures in posts" or/and "User pictures in comments" as appropriate.
  3. Make sure the check box for each content type you wish to use avatars is checked in the "Display post information on" section.
  4. Click "Save Configuration"

Moving images

The database stores the name of the directory you set in Step #3. If you want to move your images to a new directory you must complete the following steps:

  1. Update the directory identified in the previous section.
  2. Move existing images to the new directory.
  3. Update the database manually to use the new directory location. In Drupal 6.x the images are stored in the table users.
 
 

Drupal is a registered trademark of Dries Buytaert.