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

Screenshots

Screenshot #0

Contributors

Bas Brands (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Mohammad Mohammad
    Tue, 23 Dec 2014, 9:01 PM
    can send password also in this Plugin or not
  • Bas Brands
    Tue, 23 Dec 2014, 9:34 PM
    No it can't. Moodle are stored encrypted in the Moodle database before the welcome message can retreive it
  • Mohammad Mohammad
    Tue, 23 Dec 2014, 9:36 PM
    ok can help me for any solution when i created user send email about username and password
  • C v T
    Thu, 15 Jan 2015, 12:31 AM
    Folks,

    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
  • Marek Kancelarek
    Thu, 29 Jan 2015, 9:42 PM
    Hi,
    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?
  • Bas Brands
    Fri, 30 Jan 2015, 2:59 AM
    Hi Marek,

    Yes if fully supports version 2.8. I just forgot to update the compatibility info. Thanks for notifying me!
  • Daniel Neis Araujo
    Fri, 30 Jan 2015, 8:13 AM
    Hello,

    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
  • Marek Kancelarek
    Fri, 30 Jan 2015, 6:30 PM
    Thank you for updating the compatibility info. Is it possible to make the plugin send welcome messages only after the user has confirmed his e-mail? I initially though that they were send before because of some compatibility issue but it seems to be the intended action.
  • Mohammed Shiekh
    Mon, 1 June 2015, 10:10 PM
    Hi this is fantastic plugin, I have tried it and it it useful.

    I have one question that what will happen if the user email is not correct?

    Thank You
  • Bas Brands
    Tue, 2 June 2015, 1:36 AM
    Hi Mohammed,

    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.

  • Adolfo Franco
    Thu, 4 June 2015, 3:45 AM
    Hi. Is it compatible with the Joomdle Auth plugin? Although joomdle is listed, the welcome message is not sent...
  • Bas Brands
    Thu, 4 June 2015, 2:32 PM
    Hi Adolfo,

    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.
  • Adolfo Franco
    Mon, 8 June 2015, 11:44 AM
    Hi Bas Brands,
    Thank you for the feedback. smile
    Then I have to check with the Joomdle people.
  • Mykl Belfatto
    Mon, 8 June 2015, 2:45 PM
    So, if I understand your post above. In order to set the Password at the time the email is sent, the following lines of code need to be added after the value array is loaded in the latest iteration as well:

    if (strpos($message_user, 'newpasswordtext') !== FALSE){
    $fields[] = 'newpasswordtext';
    $newpassword = generate_password();
    update_internal_user_password($user, $newpassword, FALSE);
    $values[] = $newpassword;;
    }
  • Bas Brands
    Mon, 8 June 2015, 8:27 PM
    Hi Mykl,

    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!
Please login to post comments