FN-GM Posted June 8, 2008 Posted June 8, 2008 Hi all, How can I stop the e-mail field (when updating the profile) in Moodle from being mandatory please? Thanks Z
SimpleSi Posted June 8, 2008 Posted June 8, 2008 One way is to never amend via front end and always use a csv file. Prob not answer looking for but it works regards Simon
Edu-IT Posted June 8, 2008 Posted June 8, 2008 Just been looking at the Moodle demo and you could change the authentication type so it's set at no authentication. That way it doesn't matter what email address the user enters. That might work.
FN-GM Posted June 8, 2008 Author Posted June 8, 2008 My moodle setup authenticates users using LDAP it automatically fills the e-mail filed in for most users. But our year 7’s don’t have e-mail so I don’t want to make it mandatory so it doesn’t make them put an address in. Off topic but has anyone had problems with moodle pulling e-mail addresses from AD? It doesn’t always work first time on my setup.
Edu-IT Posted June 8, 2008 Posted June 8, 2008 (edited) You could change the field to locked? That way users won't be able to edit the email field and therefore Moodle shouldn't complain about it being blank? Edited June 8, 2008 by Edu-IT
FN-GM Posted June 8, 2008 Author Posted June 8, 2008 Edit: you edited the post lol this is what it said before If you're pulling the information from AD then users don't need to register at all do they so surely it doesn't matter? Sorry if I've not understood what you mean. No they don’t need to register but when they login for the first time the “update profile” page comes up. If you look on my previous posts I didn’t say when registering, sorry I should have made it more clear. You could change the field to locked? That way users won't be able to edit the email field and therefore Moodle shouldn't complain about it being blank? i'm pretty sure it still complains.
Edu-IT Posted June 8, 2008 Posted June 8, 2008 Are you able to try it? I do not have an installation of Moodle and the demo ones don't allow you full control. If it does then why not just populate the field with a dummy address?
FN-GM Posted June 8, 2008 Author Posted June 8, 2008 Yep I have an installation on my work laptop, I will try tomorrow if it works but im pretty sure it doesn’t.
maniac Posted June 8, 2008 Posted June 8, 2008 (edited) Take a look at this forum page from the moodle.org website, it should help you find the correct files to edit to achieve this. http://moodle.org/mod/forum/discuss.php?d=79669 Mike. Edited June 8, 2008 by maniac
Geoff Posted June 8, 2008 Posted June 8, 2008 When using LDAP authentication, there is no requirement for email addresses to be present. Email addresses only become mandatory when you enable the 'Email based self registration' authentication plugin. 1
strawberry Posted June 9, 2008 Posted June 9, 2008 you can pull accross any dummy information. If your using mail a few people have problems with it, i use upn instead.
FN-GM Posted June 9, 2008 Author Posted June 9, 2008 When using LDAP authentication, there is no requirement for email addresses to be present. Email addresses only become mandatory when you enable the 'Email based self registration' authentication plugin. Nope I get the error saying invalid e-mail address
Edu-IT Posted June 9, 2008 Posted June 9, 2008 Nope I get the error saying invalid e-mail address Did you try what I suggested?
FN-GM Posted June 9, 2008 Author Posted June 9, 2008 No When you first login you get a page to update your profile.
Edu-IT Posted June 9, 2008 Posted June 9, 2008 No When you first login you get a page to update your profile. So did you try what I suggested? I've been looking again today and if that doesn't work then I have no idea. It doesn't appear to be possible. As I said before you could just put dummy information into the email field.
Jona Posted June 9, 2008 Posted June 9, 2008 We had this problem at one point unfortunatly we now have a script to create users directly for our database. This might work: In LDAP settings don't assign an e-mail field but set it to be locked. Does your OU not hold e-mail addresses? Sorry not to be more help. Cheers Jona
FN-GM Posted June 9, 2008 Author Posted June 9, 2008 So did you try what I suggested? I've been looking again today and if that doesn't work then I have no idea. It doesn't appear to be possible. As I said before you could just put dummy information into the email field. Sorry i missed that bit out, yes i tried that We had this problem at one point unfortunatly we now have a script to create users directly for our database. This might work: In LDAP settings don't assign an e-mail field but set it to be locked. Does your OU not hold e-mail addresses? Sorry not to be more help. Cheers Jona I dont get what you mean, sorry
Edu-IT Posted June 9, 2008 Posted June 9, 2008 What's stopping you from using a dummy email address for your year 7 students?
FN-GM Posted June 9, 2008 Author Posted June 9, 2008 Nothing really but i would rather have it blank before i do that.
Edu-IT Posted June 9, 2008 Posted June 9, 2008 Nothing really but i would rather have it blank before i do that. I think Moodle requires email addresses because the user has the option to send email messages when a new forum topic is posted etc.
Jona Posted June 9, 2008 Posted June 9, 2008 To clarify what I was trying to say (admittedly a long shot). Navigate to your LDAP authentication plug settings page in moodle "Settings link in Administration > Users > Authentication" Scroll down until you get to Email: then set Lock value to be "Locked" (See screenshot).
maniac Posted June 9, 2008 Posted June 9, 2008 It is possible, I tried this today at work. Read this post on the moodle.org webstie and edit the relevant PHP files, you can choose whether e-mail is mandatory or not, and it does work!! http://moodle.org/mod/forum/discuss.php?d=79669 Mike.
FN-GM Posted June 9, 2008 Author Posted June 9, 2008 To clarify what I was trying to say (admittedly a long shot). Navigate to your LDAP authentication plug settings page in moodle "Settings link in Administration > Users > Authentication" Scroll down until you get to Email: then set Lock value to be "Locked" (See screenshot). Thanks anyway, but i tried that. It is possible, I tried this today at work. Read this post on the moodle.org webstie and edit the relevant PHP files, you can choose whether e-mail is mandatory or not, and it does work!! http://moodle.org/mod/forum/discuss.php?d=79669 Mike. thanks i will have a look on Wednesday (day off tomorrow)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now