Pour toutes questions sur nos formations Drupal, n'hésitez pas à nous contacter.
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.
Pay close attention
I have begun the modifications for feature enhancements. The module directory and file structure is being changed. If you upgrade to this version of the module you will need to completely remove the previous version of the module (cd sites/all/modules && rm -rf advuser) before installing this version.
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.
This module needs some work for PostgreSQL support. Patches are welcome.
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.
%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)
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.