Some of our student programmers did a simple page that deletes a list of users from a text file of user names. Works well for us so far. I'll attach the zip file. Comments on the code greatly appreciated. Writen for 1.8
Jeff Church
Posts made by Jeff Church
Not sure what version you are on but in 1.7 if you log in as primary admin look under 'Language' then 'Language editing'. You will see a grouping of php files. The one I think you want is Moodle.php. When you click on it you will see ‘Save file into folder : en_utf8_local’ and a switch button. This maybe different if you are using a different default language. Click the switch button to get into edit mode and scroll down the list. Not sure exactly what you are trying to change but there are a lot of text settings for password. Here is an example list of some of the text variables you can chage:
- newusernewpasswordsubj
- newusernewpasswordtext
- password
- passwordchanged
- passwordconfirmchange
- passwordextlink
- passwordforgotten
- passwordforgotteninstructions
- passwordnohelp
- passwordrecovery
- passwordsdiffer
- passwordsent
- passwordsenttext
As you can see some are not listed with password as the start so keep looking if don’t find what you need at first. Also I have found that I can only change these as the primary admin. Other admin accounts can see it but not edit.
Hope this helps,
Jeff
Hi Anton,
I will just post the file here in case someone else finds it useful. The fields are
Username,password,firstname,lastname,email,course1,group1,type1,city,auth
It works on our 1.7+ server but as Paul pointed out it does not apparently work on 1.6. I am going to be testing it on our 1.8 this week and will try to post the results. If you post other specific questions I will try to reply with what I know about it. Some things we have found:
1. The type can be set as 1 for student 2 for editingteacher and if I remember right 3 for noneditingteacher.
2. We have authentication set to ‘Manual accounts only’ have not tested this with other authentication methods enabled.
3. You can add students or teachers to multiple courses by adding course2 type2 course3 type3 and so on to the file. I have done this mixing student and teacher roles in the same file and it works fine. Have not tried it where a course column for some users is left blank. Not sure what it would do with that.
4. Make sure your cron is set up to run the cron.php file. Without this the users will not receive their emails. Speaking of the email that is sent out in an earlier post I asked how to change the text that is sent in the email. I did find the answer to that. As the primary admin go under Language -- Language editing -- moodle.php and scroll down to ‘newusernewpasswordtext’. This is where you can change the text that issent out to users.
That’s all I can think of for now.
Good luck,
Jeff Church
Two of our student programmers (Cole Spicer js72111@appstate.edu and Austin Gooding bg66444@appstate.edu) modified the course upload file to work in 1.7.1. It does not have a hook into the gui interface so you run it just like you did for the original quick method. Login as the admin and enter http://moodleaddress/admin/uploadcourse.php. Most of it works the same as before but in this version the add teacher works and the fields needed for 1.7 have been added. For the teacher role use the role short name, found under define roles. This is beta software and we have only done simple test on it so far. Please do your own testing before using it on a live instance. Any feedback on this would be greatly appreciated. We are very new to Moodle so I apologize any newbie faux pas.
I would like to second Manuel's question. Does anyone have a fix for running this in 1.7?