1 |
efrain |
1 |
<?php
|
|
|
2 |
// This file is part of the Local welcome plugin
|
|
|
3 |
//
|
|
|
4 |
// Moodle is free software: you can redistribute it and/or modify
|
|
|
5 |
// it under the terms of the GNU General Public License as published by
|
|
|
6 |
// the Free Software Foundation, either version 3 of the License, or
|
|
|
7 |
// (at your option) any later version.
|
|
|
8 |
//
|
|
|
9 |
// Moodle is distributed in the hope that it will be useful,
|
|
|
10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
12 |
// GNU General Public License for more details.
|
|
|
13 |
//
|
|
|
14 |
// You should have received a copy of the GNU General Public License
|
|
|
15 |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16 |
|
|
|
17 |
/**
|
|
|
18 |
* This plugin sends users a welcome message after logging in
|
|
|
19 |
* and notify a moderator a new user has been added
|
|
|
20 |
* it has a settings page that allow you to configure the messages
|
|
|
21 |
* send.
|
|
|
22 |
*
|
|
|
23 |
* @package local
|
|
|
24 |
* @subpackage welcome
|
|
|
25 |
* @copyright 2017 Bas Brands, basbrands.nl, bas@sonsbeekmedia.nl
|
|
|
26 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
27 |
*/
|
|
|
28 |
|
|
|
29 |
$string['pluginname'] = 'Moodle welcome';
|
|
|
30 |
$string['fieldname'] = 'Fieldname';
|
|
|
31 |
$string['type'] = 'Type';
|
|
|
32 |
$string['yourvalue'] = 'Your Value';
|
|
|
33 |
$string['customprofilefields'] = 'Custom profile fields';
|
|
|
34 |
$string['defaultprofilefields'] = 'Default profile fields';
|
|
|
35 |
$string['welcomefields'] = 'Additional template fields';
|
|
|
36 |
$string['globalhelp'] = 'This plugin for Moodle sends a configurable welcome message to new users.
|
|
|
37 |
<br><br>
|
|
|
38 |
The plugin uses the event system in Moodle and will be triggerd when a new
|
|
|
39 |
user is created, no matter if this was a manually created account or an
|
|
|
40 |
account created using self registration.<br>
|
|
|
41 |
<br>
|
|
|
42 |
The tables on this page show the available profile fields that can be used in the message template on this plugin\'s configuration page.
|
|
|
43 |
The values shown in this table are YOUR profile field values, they will be replaced by the recipients values when the welcome email is send.';
|
|
|
44 |
$string['configure'] = 'Configure this plugin';
|
|
|
45 |
$string['auth_plugins'] = 'Auth plugins';
|
|
|
46 |
$string['auth_plugins_desc'] = 'Choose the auth plugins for which a welcome message should be send';
|
|
|
47 |
$string['message_user_enabled'] = 'Enable user messages';
|
|
|
48 |
$string['message_user_enabled_desc'] = 'This tickbox enables the sending of welcome messages to new users<br><br>Visit <a href="{$a}">this page to see the list of available fields</a>';
|
|
|
49 |
$string['message_user_subject'] = 'User subject';
|
|
|
50 |
$string['message_user_subject_desc'] = 'This will be the subject of the email send to the user. Use [[fullname]] as a tag, this will be replaced with the users Firstname Lastname.';
|
|
|
51 |
$string['message_user'] = 'User message';
|
|
|
52 |
$string['message_user_desc'] = 'Message send to new users';
|
|
|
53 |
|
|
|
54 |
$string['message_moderator_enabled'] = 'Enable moderator messages';
|
|
|
55 |
$string['message_moderator_enabled_desc'] = 'This tickbox enables the sending of notification messages to moderators';
|
|
|
56 |
$string['message_moderator'] = 'Moderator message';
|
|
|
57 |
$string['message_moderator_subject'] = 'Moderator subject';
|
|
|
58 |
$string['message_moderator_subject_desc'] = 'This will be the subject of the email send to the moderator. Use [[fullname]] as a tag, this wil be replaced with the users Firstname Lastname.';
|
|
|
59 |
$string['message_moderator_desc'] = 'Message send to moderators';
|
|
|
60 |
$string['moderator_email'] = 'Moderator email';
|
|
|
61 |
$string['moderator_email_desc'] = 'New user notifications are send to this email address';
|
|
|
62 |
|
|
|
63 |
$string['sender_email'] = 'Sender email address';
|
|
|
64 |
$string['sender_email_desc'] = 'When new users log in this email address is used to send a notification message, users will be able to see this email address';
|
|
|
65 |
|
|
|
66 |
$string['sender_firstname'] = 'Welcome message sender firstname';
|
|
|
67 |
$string['sender_firstname_desc'] = 'First name used when sending mail to users.';
|
|
|
68 |
|
|
|
69 |
$string['sender_lastname'] = 'Moderator lastname';
|
|
|
70 |
$string['sender_lastname_desc'] = 'Last name used when sending mail to users.';
|
|
|
71 |
|
|
|
72 |
$string['default_user_email_subject'] = 'Hello [[fullname]] Welcome to [[sitename]]';
|
|
|
73 |
$string['default_user_email'] = '
|
|
|
74 |
|
|
|
75 |
<html>
|
|
|
76 |
<body>
|
|
|
77 |
<table cellspacing="0" cellpadding="8">
|
|
|
78 |
<tr><td colspan="2"><h3>Welcome [[fullname]]</h3>
|
|
|
79 |
Your Moodle account has been created and you\'re ready to go! Your account has
|
|
|
80 |
been created on [[sitelink]] with the following details:</td></tr>
|
|
|
81 |
<tr><td>Name:</td><td>[[fullname]]</td></tr>
|
|
|
82 |
<tr><td>Username: </td><td>[[username]]</td></tr>
|
|
|
83 |
<tr><td>Email: </td><td>[[email]]</td></tr>
|
|
|
84 |
<tr><td colspan="2">If you ever loose your password resetting it is easy:<br>[[resetpasswordlink]]</tr>
|
|
|
85 |
</table>
|
|
|
86 |
</body>
|
|
|
87 |
</html>
|
|
|
88 |
';
|
|
|
89 |
$string['default_moderator_email_subject'] = 'A new user signed up on [[sitename]] : [[fullname]]';
|
|
|
90 |
$string['default_moderator_email'] = '
|
|
|
91 |
<html>
|
|
|
92 |
<body>
|
|
|
93 |
<table cellspacing="0" cellpadding="8">
|
|
|
94 |
<tr><td colspan="2"><h3>New site user [[fullname]]</h3>
|
|
|
95 |
A new account has been created with the following details:</td></tr>
|
|
|
96 |
<tr><td>Name:</td><td>[[fullname]]</td></tr>
|
|
|
97 |
<tr><td>Username: </td><td>[[username]]</td></tr>
|
|
|
98 |
<tr><td>Email: </td><td>[[email]]</td></tr>
|
|
|
99 |
</table>
|
|
|
100 |
</body>
|
|
|
101 |
</html>';
|
|
|
102 |
|
|
|
103 |
$string['resetpass'] = 'Reset your password here';
|
|
|
104 |
$string['privacy:metadata'] = 'This plugin only sends a welcome email. It does not store any personal data.';
|