User settings
From here, we can configure the registration requirements of our users, email templates used for new accounts and so on, and users' picture settings.
User registration settings
We can determine what security precautions should be taken when a new account is registered. New accounts:
• Can only be created by an administrator
• Can be created by a visitor, but require administrator approval
• Can be created by a visitor without administrator approval and in addition to the previous two, require user email verification
User registration settings Public registrations:
O Only site administrators can create new user accounts. ® Visitors can create accounts and no administrator approval is required. Q Visitors can create accounts but administrator approval is required.
El Require e-mail verification when a visitor creates an account
If this box is checked, new users will be required to validate their e-mail address prior to logging into the site, and wit! be assigned a system-generated password. With it unchecked, users will be logged in immediately upon registering, and may select their own passwords during registration.
User registration guidelines:
This text is displayed at the top of the user registration form and is useful for helping or instructing your users.
Requiring email verification is a good idea. It is the very first and most basic method to help prevent spam and abusive user accounts. The User registration guidelines box can be used to provide some help for our users, and perhaps a link to some legal terms and conditions to help protect ourselves from liability.
User email settings
Users will often receive an email from our site automatically when:
• We create a new account for them
• They create an account
• They create an account which is pending our approval
• They request a new password
• They need to verify their email addresses
• Their accounts have been blocked
• Their accounts have been deleted
The User e-mail settings area allows us to change the contents of these emails.
Click on Administer | User management | User settings | User e-mail settings further down the page.
User e-mail settings
Drupal sends emails whenever new users register on your site, and optionally, may also notify users after other account actions. Using a simple set of content templates, notification e-mails can be customized to fit the specific needs of your site.
t> Welcome, new user created by administrator
\> Welcome, no approval required i> Welcome, awaiting administrator approval l> Password recovery email
[> Account activation email
\> Account blocked email t Account deleted email
Selecting an email allows us to change the template. Within these templates, there are tokens that are replaced with specific information when they are sent, for example, the user's username or a specific link. So it is important to ensure that these are still in the template. These variables are clearly defined when editing the template. They are all listed under the template name, each of them starting with an explanation mark, for example. !username for the username, !login_uri for the link to the log in page.
Picture settings
From here, we can either enable or disable picture support. Let's enable it.
Pictures
Picture support:
@ Disabled O Enabled
Gravatars!
Gravatars are globally recognized avatars, (an avatar being a small picture used to represent a user when making comments or posts), and are very popular among blogs and forums, with many blogs and popular forum systems supporting gravatars. They enable users to use the same avatar across all socially-oriented sites they use, should they wish to.
We installed the gravatar module and enabled the module. To enable the integration, we need to go to the gravatar menu in the User management area and check the Enable gravatar integration box, and save the changes.
v Display Preferences Control how gravatars are displayed Enable gravatar integration
Enable or disable to integration of gravatar user images For this site
Once the integration has been enabled, the display preferences are activated, so we may configure the module (Administer | User management | Gravatar).
The configuration options include:
• Our preferred size of image (let's keep the default)
• Maturity filter (so we could prevent inappropriate images being displayed, very useful depending on the target audience of the site. For our site, we should be fine with the PG rating)
• Which image to use if a user does not have a gravatar v Display Preferences Control how gravatars are displayed
Image size:
Select your preferred gravatar image size (max. 80x80)
Maturity filter:
An optional maturity rating parameter with a value (MPAA nomenklatura) that determines the highest rating (inclusive) that will be returned.
Default Avatar Image:
® Global default user image Q Gravatar integration default user image O Image provided by gravatar.com
Specifies an image that should be returned if either the requested email address has no associated gravatar, or that gravatar has a rating higher than is allowed by the "rating" parameter.
Now when a user goes to edit his/her profile, he/she are presented with an option to either upload an avatar (thanks to the User picture settings), or if their email address is a valid gravatar email address (that is, an email address used to sign up on the gravatar site), their gravatar will be used.
To ensure that profile pictures are displayed for our user comments and posts, we need to enable them within the theme. Click on Administer | Site building | Themes | Global settings. We enable User pictures in posts and User pictures in comments.
0 User pictures in posts 0 User pictures in comments
Now, if we have a gravatar set and we make a comment on some content on the site, our gravatar is displayed.
|
Comments | |
|
Great story |
New Sat, 12/06/2003 - 23:46 - Michael |
|
Thanks for that great story! |
| |
|
michoel | |
|
delete edit reply | |
Post a comment