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

  • Bas Brands
    Fri, 12 Apr 2013, 1:24 PM
    Sorry Jan, I have been too busy working on the bootstrap theme, I am afraid that has been taking up all of my time. I'll try again next week. In the mean time keep poking me for a new version smile
  • Alan Hare
    Wed, 17 Apr 2013, 5:08 AM
    Hey Bas Brands nice addon! Works perfectly with 2.5

    Suggestion(s):
    1. Increase the width size of the subject field in the settings to allow admin to see full text
    2. Move the text "Default: Hello user Welcome to site" Default text below the input field in the settings
    3. List more system varables to use as examples besides only user
  • Rob Skeet
    Fri, 21 June 2013, 11:38 PM
    I'm on version 2.4
    I get the defective or outdated error as well.
    any idea when the new version might be coming?
    I really think this should have been part of Moodle proper since 2.0 released.
    please let us know when it comes available.
  • Sergio González
    Thu, 12 Sept 2013, 9:17 PM
    Hi. Thanks for the plugin. Could I send the username and password in the welcome mail?

    Thanks
  • Bas Brands
    Thu, 12 Sept 2013, 9:46 PM
    HI Sergion,

    Unfortunately it can't get the users passwords. Those are stored encrypted in the Moodle database
  • Doug Osborne
    Fri, 20 Sept 2013, 7:43 AM
    Hi, I just installed the welcome plugin (v2.4). I'm trying to send an email only to a custom admin email address, and it doesn't seem to be working. Any ideas on how I can troubleshoot this?
  • John Rickard
    Mon, 23 Sept 2013, 6:08 PM
    Good Morning

    Brilliant addition to our site - however we would like it that if possible we could include other profile fields in the emails?

    email address / country etc.

    Is this possible?
  • On the jetty
    Thu, 28 Nov 2013, 8:18 PM
    Fantastic plug-in that saves so much time!

    Will you be releasing a Moodle 2.6 version please?
  • Aleksandar Marjanovic
    Sun, 5 Jan 2014, 7:40 AM
    Greetings from Macedonia smile

    Yesterday I had a sleepless night and guess what - I spent the night thinking of improving the functionality of your plugin. It was a sleepless but not useless night. I realized that actually having a [password] field is not necessary at all! The problem could be solved by sending same password to all new registered users and forcing them to change the password at their first logging on Moodle. The only thing that will be necessary is to have [username] field in the welcome message. Is that possible? And instead of having User which results in showing Firstname Lastname in the welcome message, can we have only [Firstname] field?

    Best regards,
    Aleksandar
  • Just wondering . . .
    Fri, 17 Jan 2014, 9:36 AM
    I have the same question as Roger. Does this plugin work with Moodle 2.6?

    -Derek
  • Bas Brands
    Fri, 17 Jan 2014, 4:12 PM
    Hi Derek, Roger. The current release works for Moodle 2.6.
    @aleksandar: I am expecting some contributed code to this plugin that allows you to use more profile fields.

    Cheers,
    Bas
  • Diego Quiros
    Fri, 7 Feb 2014, 9:22 AM
    I get this error when trying to enable the plugin on moodle 2.5 whit archaius theme. Any Idea what´s the problem?

    Debug info: Missing mandatory en language pack.
    Error code: detectedbrokenplugin
    Stack trace:
    line 606 of /lib/upgradelib.php: plugin_defective_exception thrown
    line 395 of /lib/upgradelib.php: call to upgrade_plugins_modules()
    line 1580 of /lib/upgradelib.php: call to upgrade_plugins()
    line 431 of /admin/index.php: call to upgrade_noncore()


    Invalid get_string() identifier: 'modulename' or component 'mod_welcome'. Perhaps you are missing $string['modulename'] = ''; in mod/welcome/lang/en/welcome.php?
    line 293 of /lib/classes/string_manager_standard.php: call to debugging()
    line 6828 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
    line 64 of /lib/classes/plugininfo/mod.php: call to get_string()
    line 131 of /lib/classes/plugininfo/base.php: call to core\plugininfo\mod->init_display_name()
    line 88 of /lib/classes/plugininfo/base.php: call to core\plugininfo\base::make_plugin_instance()
    line 368 of /lib/classes/plugin_manager.php: call to core\plugininfo\base::get_plugins()
    line 33 of /admin/settings/plugins.php: call to core_plugin_manager->get_plugins_of_type()
    line 6363 of /lib/adminlib.php: call to require()
    line 3515 of /lib/navigationlib.php: call to admin_get_root()
    line 3372 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
    line 717 of /lib/pagelib.php: call to settings_navigation->initialise()
    line 734 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
    line 109 of /blocks/admin_bookmarks/block_admin_bookmarks.php: call to moodle_page->__get()
    line 296 of /blocks/moodleblock.class.php: call to block_admin_bookmarks->get_content()
    line 238 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
    line 956 of /lib/blocklib.php: call to block_base->get_content_for_output()
    line 1008 of /lib/blocklib.php: call to block_manager->create_block_contents()
    line 353 of /lib/blocklib.php: call to block_manager->ensure_content_created()
    line 3 of /theme/archaius/layout/partials/header.php: call to block_manager->region_has_content()
    line 1 of /theme/archaius/layout/general.php: call to include()
    line 866 of /lib/outputrenderers.php: call to include()
    line 796 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 2559 of /lib/outputrenderers.php: call to core_renderer->header()
    line 362 of /lib/setuplib.php: call to core_renderer->fatal_error()
    line 1158 of /lib/upgradelib.php: call to default_exception_handler()
    line 1592 of /lib/upgradelib.php: call to upgrade_handle_exception()
    line 431 of /admin/index.php: call to upgrade_noncore()
    get_context_instance() is deprecated, please use context_xxxx::instance() instead.
    line 4020 of /lib/deprecatedlib.php: call to debugging()
    line 26 of /theme/archaius/layout/partials/header.php: call to get_context_instance()
    line 1 of /theme/archaius/layout/general.php: call to include()
    line 866 of /lib/outputrenderers.php: call to include()
    line 796 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
    line 2559 of /lib/outputrenderers.php: call to core_renderer->header()
    line 362 of /lib/setuplib.php: call to core_renderer->fatal_error()
    line 1158 of /lib/upgradelib.php: call to default_exception_handler()
    line 1592 of /lib/upgradelib.php: call to upgrade_handle_exception()
    line 431 of /admin/index.php: call to upgrade_noncore()
  • Diego Quiros
    Fri, 7 Feb 2014, 10:37 AM
    The whole second block of errors dissapears when I renamed the lang/en/local_welcome file to welcome
  • Alan Hare
    Thu, 20 Feb 2014, 5:51 AM
    I could not find a forum discussion topic listed in the plugin details above or by searching the forums, so I am posting this here as it may help others.

    To add some flexibility to the plugin I changed lines 49-55 in local\welcome\event_handlers.php to read:

    //$tag = '[[user]]';
    //$replacement = $user->firstname . ' ' . $user->lastname;

    $message_user = str_replace(
    array('[[user]]', '[[username]]', '[[firstname]]', '[[lastname]]', '[[email]]', '[[city]]'),
    array($user->firstname . ' ' . $user->lastname, $user->username, $user->firstname, $user->lastname, $user->email, $user->city),
    $message_user);

    $message_user_subject = str_replace(
    array('[[user]]', '[[username]]', '[[firstname]]', '[[lastname]]', '[[email]]', '[[city]]'),
    array($user->firstname . ' ' . $user->lastname, $user->username, $user->firstname, $user->lastname, $user->email, $user->city),
    $message_user_subject);

    $message_moderator = str_replace(
    array('[[user]]', '[[username]]', '[[firstname]]', '[[lastname]]', '[[email]]', '[[city]]'),
    array($user->firstname . ' ' . $user->lastname, $user->username, $user->firstname, $user->lastname, $user->email, $user->city),
    $message_moderator);

    $message_moderator_subject = str_replace(
    array('[[user]]', '[[username]]', '[[firstname]]', '[[lastname]]', '[[email]]', '[[city]]'),
    array($user->firstname . ' ' . $user->lastname, $user->username, $user->firstname, $user->lastname, $user->email, $user->city),
    $message_moderator_subject);

    //$message_user = str_replace($tag, $replacement, $message_user);
    //$message_user_subject = str_replace($tag, $replacement, $message_user_subject);
    //$message_moderator = str_replace($tag, $replacement, $message_moderator);
    //$message_moderator_subject = str_replace($tag, $replacement, $message_moderator_subject);

    and changed lines 34 and 42 from \local\welcome\local_welcome.php to read:

    $string['message_user_subject_desc'] = 'This will be the subject of the email send to the user. Use username, [[firstname]], [[lastname]], [[email]], [[city]] as a tag, this will be replace with the Username, Firstname, Lastname, Email address, and City.';

    $string['message_moderator_subject_desc'] = 'This will be the subject of the email send to the moderator. Use username, [[firstname]], [[lastname]], [[email]], [[city]] as a tag, this will be replace with the Username, Firstname, Lastname, Email address, and City.';

    This will add the user profile fields/tags for [[username]], [[firstname]], [[lastname]], [[email]], and [[city]].

  • Bas Brands
    Thu, 20 Feb 2014, 4:40 PM
    Thanks for that. I updated the plugin to have more template fields:

    Name: fullname,
    Username: username,
    Firstname: firstname,
    Lastname: lastname,
    Email: email,
    City: city,
    Country: country

    Cheers,
    Bas

Please login to post comments