Block Users

General plugins (Local) ::: local_blockusers
Maintained by gayatri venugopal
A local plugin that allows the site administrator to block multiple users for a certain period by uploading a csv file containing the usernames of the users to be blocked.

Block Users 1.1.0

Moodle 2.3
Released: Thursday, 25 April 2013, 6:13 PM
moodle-local_blockusers
====================
A local plugin that allows admin to block multiple users by uploading a csv file containing the usernames of the users to be blocked

Version
-------
1.1.0 (2013042308)

Requires:
--------
Moodle 1.9 or higher

Installation:
------------
Download zip from: https://github.com/innovg/moodle-local_blockusers/tree/master/blockusers
Unzip into the 'local' subfolder of your Moodle install.
Rename the new folder to blockusers.
Add the following lines in moodle/login/index.php starting from line 117:
$username = $frm->username;
global $DB;
$curTime = time();
$queryString = "SELECT * FROM mdl_blockusers WHERE start_timestamp <= ".$curTime." && ".$curTime." <= stop_timestamp && username like '".$username."'";
if($DB->record_exists_sql($queryString))
{
$errormsg = "You are not permitted to login";
$errorcode = 3;
}

Visit http://yoursite.com/admin to finish the installation.

Documentation:
-------------
Please feel free to contribute documentation in the relevant area of
the MoodleDocs wiki.

Version information

Version build number
2013042308
Version release name
1.1.0
Maturity
Stable version
MD5 Sum
f55ca61476d4454d6d06c597da7e1f87
Supported software
Moodle 2.3
  • Latest release for Moodle 2.3

Default installation instructions for plugins of the type General plugins (Local)

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder in the "local" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation.