Admin tools: Reset MyMoodle

tool_resetmymoodle
Maintained by Picture of Carlos Escobedo Carlos Escobedo
This tool allows reset all MyMoodle Users except main admin. Is for admins.
129 sites
46 downloads
7 fans

Administrators can reset all MyMoodles except main admin with one click with this tool. Located in Development Menu Node.

In the future, will be capable to select groups of users or one single users to reset MyMoodle.

Screenshots

Screenshot #0
Screenshot #1

Contributors

Picture of Carlos Escobedo
Carlos Escobedo (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of David Mudrák
    Mon, 2 Jun 2014, 4:19 AM
    Hi Carlos. Thanks for fixing the raised issues promptly. I am about to approve your plugin that provide simple yet useful functionality. There is one thing I would strongly recommend to improve in your future plugin's version though. Instead of doing things on your own, please use existing APIs unless you have a good reason not to. In this particular page, I believe your tool could simply call my_reset_page() in a loop for all users. It's much cleaner way how to clean and reset data there. Only when you were facing massive performance issues (which could happen at big sites with many users having MyMoodle customized), it would be good idea to have more effective bulk reset mechanisms.

    Said, that, you are cleared to land. Runway free, welcome to Moodle plugins!
  • Picture of Carlos Escobedo
    Mon, 2 Jun 2014, 10:24 PM
    I'm agree with your comments. As soon as possible I will upgrade the plugin to use the API. In fact, is inside new proposals.
  • Picture of Nadav Kavalerchik
    Wed, 29 Jul 2015, 9:19 PM
    Beautiful and useful block! It would be nice if we could choose a specific user and reset his/her My (Dashboard) blocks.
  • Picture of Roger Domínguez Argemí
    Thu, 20 Aug 2015, 7:47 PM
    Nice and useful plugin!
  • Picture of Peter R
    Wed, 9 Sep 2015, 2:04 PM
    Hi, Does this plugin work on 2.9+?
  • Me, with my new 'slow explosion' hair!
    Fri, 2 Oct 2015, 4:54 PM
    I've upgraded this (for 2.9, notionally, but will probably work on 2.8 too) and submitted a pull request.
  • Picture of Chris Booth
    Wed, 18 Nov 2015, 6:39 PM
    Hi there

    I am having a problem using this plugin. When I click the Continue button I get the following error message:

    Reset My Moodle

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 84 bytes) in /var/www/sandbox/lib/dml/pgsql_native_moodle_database.php on line 776

    We are on Moodle 2.9.

    Any ideas why this may be / has anyone come across this before?
    Thanks in advance
  • Picture of Carlos Escobedo
    Tue, 26 Jan 2016, 3:31 PM
    Hi Chris,

    I am sorry for being late in my reply.

    Typically, this error happens when PHP is out of memory. You could increase the size of memory in this viariable memory_limit in php.ini. So you can update the code of this plugin to set more memory to the execution and restore the original when the executions ends like ini_set('memory_limit', '-1'); or using standards in Moodle like raise_memory_limit(MEMORY_HUGE); to set more memory and raise_memory_limit(MEMORY_STANDARD); to restore the original state. If you still have the problem I can build a patch for you in my GitHub repository. However, in Moodle this feature is in the core (https://docs.moodle.org/30/en/Dashboard) and always you can upgrade your Moodle.

  • Ozan Varli
    Fri, 12 Feb 2016, 9:49 PM
    Works very well with 2.9, thanks a lot!
  • C'est moi :-)
    Wed, 24 Feb 2016, 7:21 PM
    Hi Carlos,
    This plugin is very useful. I've just used it in my 2.9.4+ Moodle (took nearly 2 hours !). But it seems (number shown at end) it run reset for all users, even deleted! Would be good to improve it.
  • Picture of Carlos Escobedo
    Fri, 26 Feb 2016, 3:29 PM
    Hi Séverin,

    thanks for your comments. I just push a new version with your proposal and other amazing features. The new version you can include or exclude guest users and deleted users. So you can enable or disabled log and download it. I hope was successfully for you.
  • C'est moi :-)
    Mon, 29 Feb 2016, 6:15 PM
    Thanks Carlos for these nice enhancements. I haven't already tested them.
    I think it would be really useful to be able to choose these option when launching the tool on admin/tool/resetmymoodle/index.php page!
    Because it's a tool that is rarely used, and i think one (even admin) will forgot that settings can be (previously) defined...

    PS : just for information : i had launched again the "reset my moodle" tool (some days ago), and it took "only" 15 minutes (less things to delete in tables), even with deleted users.
  • Picture of Geetha Venugopal
    Tue, 17 May 2016, 1:22 PM
    I already added the plugin. How to get the Progress Report Dashboard where the aggreation of grades appear just like in your screenshots. Another question: When I click on the student name as parent, it goes to the profile. Can I make it go to the overall Progress Report?
  • Picture of Evgeniy Schuetz
    Mon, 21 Nov 2016, 4:34 PM
    Hi, Carlos!
    Is this plugin compartible with Moodle 3.1 and higher versions?
  • Picture of Carlos Escobedo
    Mon, 21 Nov 2016, 4:46 PM
    Hi Evgeniy, it isn't compatible because since Moodle 3+ you can with Moodle the same like my plugin. If you can browse into Site Administration block and place into Apparence > Default Dashboard Page and then from here (http://MOODLE/my/indexsys.php you can Reset Dashboar for all users.
    Even so, I'm working in change the face of my plugin to provide a new feature what you can choose a group of users to reset their dashboard instead all of users.
    Do not hesitate if you have new features about reset dashboard that you will.
    Thanks for your comments.
1 2
Please login to post comments