Advanced User

earnie - June 3, 2006 - 17:21

Details

The advanced user module allows the filtering of users based on the user.module fields and optionally the profile.module fields. The fields available for filtering can be configured using the module settings. Eg. Site admin may search through 1000s of users to display all users who have not accessed their account.

Once the group of users with selected common denominators are filtered, the module can be used to perform functions that email, block, unblock, add or remove roles, or delete. Another nice feature is the ability to notify administrators or other roles, by email, of user account creation or profile changes.

NOTE: Version 5.x-2.1 or 6.x-2.3 is the release to use. The Drupal 5.x-2.x-dev release is no longer being updated. The 6.x-3.x-dev release is not ready for testing and is being used for future enhancements. See the release notes for futher detail.

Module Functions

  • Filtering of users based on:
    1. Permissions
    2. Status
    3. Created
    4. Accessed
    5. Email
    6. User Id
    7. Admin Selected Profile Fields
  • Filtering on fields can be grained to
    1. Is Equal To
    2. Is Not Equal To
    3. Is Less Than
    4. Is Greater Than
    5. Is Less Than or Equal To
    6. Is Greater Than or Equal To
    7. Contains
    8. Does Not Contain
    9. Begins With
    10. Ends With
  • Multiple filters can be refined to be AND or OR operations giving you the greatest control of the data selections.
  • Operations of filtered users include:
    1. Mass emailing
    2. Blocking
    3. Unblocking
    4. Deleting
  • Administrative options include notification of user data changes.
  • The notification emails include:
    • User's email address
    • A link to google and yahoo searches for user's email address - great for doing a quick spammer check on the user's email address.
  • Notify selected roles when user updates profile fields

Known to work

The filtering process works great. You can block and unblock users.
Email notification based on role permission "receive email advuser".
User field text substitutions as documented on the settings page.

I have tested using the devel module mail wrapper the email functionality and have seen that the mail appears to work.

Known to cause heartbreak

This module needs some work for PostgreSQL support. Patches are welcome.

Date Selectors

The date filters Created and Accessed use the strtotime function on the inputed data. This means you can use ``now - 7 days'' in the Accessed filter with a LE operative to find those users who've accessed their accounts in the last week.

Token Fields for Email

%user_name => $user->name
%user_email => $user->mail
%user_status => $user->status
%user_created => strftime('%x %X', $user->created)
%user_signature => $user->signature
%user_language => $user->language
%user_timezone => $user->timezone
%user_theme => $user->theme
%site => variable_get("site_name", "drupal")
%uri => url('user/'.$user->uid, NULL, NULL, TRUE)
%google_user => 'http://www.google.com/search?q="'.$user->mail.'"'
%yahoo_user => 'http://search.yahoo.com/search?p="'.$user->mail.'"'

Profile Fields

The profile module allows further selection if the module is enabled, there are additional fields added and those fields have been set to be used by the Advanced User administrator. The profile fields value formats and storage provided some interesting issues to overcome in the coding. However you can now select on and order by the profile fields.

Releases

Official releasesDateSizeLinksStatus
6.x-2.32009-Jun-2315.85 KBRecommended for 6.xThis is currently the recommended release for 6.x.
5.x-2.12009-Jan-1315.38 KBRecommended for 5.xThis is currently the recommended release for 5.x.
Development snapshotsDateSizeLinksStatus
6.x-3.x-dev2009-Jun-2415.78 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
6.x-2.x-dev2009-Jun-2415.85 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.