Auto Generate Content/Users Plugin

Auto Generate Content/Users Plugin

by Allan Watson -
Number of replies: 5

I'm new to Moodle, and going to be developing a moodle theme.

I'm looking for a plugin to automatically generate content and users for me. Does anyone know if such a plugin exists?

Average of ratings: -
In reply to Allan Watson

Re: Auto Generate Content/Users Plugin

by David Scotson -
There is a script for this but it was slightly broken the last time I tried it so only certain parts worked. Have a look at:

http://yourmoodle/admin/tool/generator/index.php

or via the command line: admin/tool/generator/cli/generate.php
Average of ratings:Useful (1)
In reply to David Scotson

Re: Auto Generate Content/Users Plugin

by Onno Schuit -

Interesting! I'll definitely give this a try for my next clean slate project.

I like the "Your database contents will probably be massacred. You have been warned" wink

Thanks for posting this!

In reply to David Scotson

Re: Auto Generate Content/Users Plugin

by David Scotson -
Checking again in the latest 2.4, deselecting Workshop and Quiz seems to let the rest run as expected. In 2.3 you need to deselect Lesson as well.
In reply to Allan Watson

Re: Auto Generate Content/Users Plugin

by Dan Poltawski -

My colleague at Moodle HQ, Frédéric Massart has created an authentication module for Moodle (auth_mdk) which automatically creates user accounts and enrols them to every course when you use a prefix to the username. https://github.com/FMCorz/moodle-auth_mdk.

Fred is on holiday at the moment, but was going to add it to the plugins directory.

NOTE: its not suitable for production sites!