Moodle plugins directory: Moodle welcome | Moodle.org
Moodle welcome
General plugins (Local) ::: local_welcome
Maintained by Bas Brands
Sends a welcome message to new users, sends a notification to a moderator of the new user creation
Latest release:
1451 sites
362 downloads
136 fans
Current versions available: 3
Usage:
This plugin sends one email message to users that are new in Moodle and one email to a moderator.
This will work to all standard moodle authentication systems:
- manually created users
- users that signed up
- users authentication through LDAP
- all other standard authentication systems
Configuration can be done using:
Site administration->Plugins->Local plugins->Moodle welcome
Configurable fields are:
enable / disable welcome messages to users
enable / disable welcome messages to moderators
message send to user
message send to moderator
message subject for user
message subject for moderator
send from firstname
send from lastname
send from email address
moderator email address
Installation:
Download and install in your /local folder in moodle's wwwroot
Run Moodle notifications,
Configure your email messages / moderators etc
Useful links
Contributors
Bas Brands (Lead maintainer)
Please login to view contributors details and/or to contact them
Of course the plugin can't access encrypted passwords in the database, but if what you're trying to achieve is for new users (well, users imported by CSV) to get an HTML-formatted, admin-customisable email with their password, then there's another solution.
It's possible to set a new password for each user during e-mail sending; if they have never seen the one that Moodle itself generated, then generating and saving a new one is of no (minimal?) consequence.
The following patch (against version 2014101300 of this plugin) generates and sets a password per-user, and makes it available as `newpasswordtext` following the example of Moodle core: http://pastebin.com/yAPTYDTS
Changes made available under GNU GPL v3 or later.
Cheers,
C
are there any plans to add Moodle 2.8 support to this plugin? Or is it fully compatible and just the compatibility info has not been upgraded yet?
Yes if fully supports version 2.8. I just forgot to update the compatibility info. Thanks for notifying me!
nice plugin!
It would be nice to have the github URL also =)
I've found this one:
https://github.com/bmbrands/moodle-local_welcome
Kind regards,
Daniel
I have one question that what will happen if the user email is not correct?
Thank You
I am glad you like it. If a user's email is not correct the notification will not arrive. If the users contacts you about it you can use Moodle's standard user administration to correct the email address an confirm the user account.
I have not tried the Joomdle auth plugin yet. This plugin hooks into Moodle's event triggers that are fired when a new user is created. Auth plugins should fire this event. If the Joomdle auth plugin does not have this trigger no email will be send.
Thank you for the feedback.
Then I have to check with the Joomdle people.
if (strpos($message_user, 'newpasswordtext') !== FALSE){
$fields[] = 'newpasswordtext';
$newpassword = generate_password();
update_internal_user_password($user, $newpassword, FALSE);
$values[] = $newpassword;;
}
That looks like it could work yes. I will not add the code to the welcome plugin, if an admin uploads a csv with passwords they will be reset when using this bit of code. It would be okay if the admin knows about this but if not it could confuse users.
In any case thanks for posting this!