Auto Generate Content/Users Plugin

Auto Generate Content/Users Plugin

Allan Watson -
回帖数: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?

回复Allan Watson

Re: Auto Generate Content/Users Plugin

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
回复David Scotson

Re: Auto Generate Content/Users Plugin

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" 眨眼

Thanks for posting this!

回复David Scotson

Re: Auto Generate Content/Users Plugin

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.
回复Allan Watson

Re: Auto Generate Content/Users Plugin

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!