Yes. It's all in the language files. Those are in lang/en/moodle.php. To keep your changes through upgrades, I would recommend you make a copy of the whole lang/en directory and call it lang/zz, then make your changes in there. Make sure you set "zz" to be your new site default language.
> also I was expecting a e-mail to be sent to the Administrator notifying me of new account users does moodle support this.
Nope, sorry. The idea of self-confirmation is to reduce admin load, not increase it! Remember that you can use enrolment keys to restrict access to courses.
Soon there will be other forms of authentication (implemented as plug-in modules) ...
Cheers,
Martin
Hello,
I'd like to make a small contribution to the issue of administrator's notification emails. I did implement this in my installation by adding a snippet of code to the signup.php file. Just change your subject and the message any way you want... then place the code in the signup.php
AFTER THIS CODE:
$emailconfirm = get_string("emailconfirm");
print_header($emailconfirm, $emailconfirm, $emailconfirm);
echo "<CENTER>";
print_string("emailconfirmsent", "", $user->email);
echo "</CENTER>";
print_footer();
INSERT THIS CODE:
$toemail = "You@YourDomain.com";
$subjectemail = "New Moodle Account";
$bodyemail = "
The following user has just applied for membership in Moodle!
=========================================
Name: $firstname $lastname
ID Number: $idnumber
Email: $email
Phone: $phone
City: $city
=========================================
Moodle is an AWESOME Application!
";
mail($toemail, $subjectemail, $bodyemail);
END OF CODE SNIPPET
That's all there is to it!. You will get an email with the info from the new user. You can also add fields to the signup form and send those as well. I actually put a "Student, Parent, or Teacher" radio button in the form and included the follow line to the email:
Status: $radiobutton
I have not yet done the code to put it in the database, but you can at least import the form-mail into ACT or other such application.
I also plan to write an IF such that when the signup is a teacher, they are emailed with a questionaire for them. The same type of thing can apply to students or parents too.
Martin: Fantastic app!
Cory Adams
www.ButteCounty411.com/education
Unfortunately I keep getting a parse error which I don;t see to be able to resolve...
any thoughts ?
Jai
Hi,
Those parse errors are quite a pain. Email me your entire modified signup.php file and I'll take a look at it.
webmaster@buttecounty411.com or cory@netassistants.com
Also, which version of Moodle are you using?
Cheers.
Does this work in 1.2? I get email confirmations but the lastname, firstname, and other info are blank except for 1 which had user info.
Thanks,
Eric
----------paste signup.php print_footer(); is line 74 --------
print_header($newaccount, $newaccount, "<A HREF=\"index.php\">$login</A> -> $newaccount", $focus, "", true, "<div align=right>$langmenu</div>");
include("signup_form.html");
print_footer();
$toemail = myemail@mydomain.com;
$subjectemail = "New Moodle Account";
$bodyemail = "
The following user has just applied for membership in Moodle!
=========================================
Name: $firstname $lastname
ID Number: $idnumber
Email: $email
Phone: $phone
City: $city
=========================================
Moodle is an AWESOME Application!
";
mail($toemail, $subjectemail, $bodyemail);
/******************************************************************************
* FUNCTIONS
*****************************************************************************/
I found the lines in login/index.php
if (empty($user->confirmed)) { // This account was never confirmed
print_header(get_string("mustconfirm"), get_string("mustconfirm") );
print_heading(get_string("mustconfirm"));
print_simple_box(get_string("emailconfirmsent", "", $user->email), "center");
print_footer();
die;
;
I really need that the administrator get a notification whenever a new user registered in moodle !
Hi I used you script and it sent the e-mail to administrator just fine, but all fields are blank! What needs to be added for it to include new user info? Help would be much appreciated!
Thanks