Difference between revisions of "Score lock"

Jump to: navigation, search
(Installation)
(Features)
Line 18: Line 18:
 
* Separate data base table instead of the log
 
* Separate data base table instead of the log
 
* Block for deleting students log
 
* Block for deleting students log
 +
**Delete all logs from course
 +
**Delete selected (students) logs
 +
** Allow students to delete their own logs
 
* Install '''and de-install''' function
 
* Install '''and de-install''' function
* Source code stored and published for further development  
+
* Source code stored and published for further development
 +
 
 
==Major Changes==
 
==Major Changes==
 
In previous versions of Activity Locking the result, whether a student has accessed a resource has been pulled from the normal log. Because of that, the log files could never have been deleted. Score Lock has its own table, where the accessing of students on resources is saved immediately. With the optional block, teacher can allow the students to delete their own record and/or the teacher may delete all or selected students entries of the course.
 
In previous versions of Activity Locking the result, whether a student has accessed a resource has been pulled from the normal log. Because of that, the log files could never have been deleted. Score Lock has its own table, where the accessing of students on resources is saved immediately. With the optional block, teacher can allow the students to delete their own record and/or the teacher may delete all or selected students entries of the course.

Revision as of 12:34, 7 September 2006


Introduction

This is an advanced version of Activity Locking v2.4. Since there are many different version of this hack, I decided to give this new branch a new name:

Score Lock

Features

Already included as in ActivityLocking v2.4:

  • Supports module and section locks
  • Parallel locking and completing modules and sections
  • CSS style and checkbox for locking and completing
  • Hide when locked
  • Language support and help
  • Readme for features and installation
  • SQL commands for DB update
  • Info on how to update the CSS style sheets

New features:

  • Separate data base table instead of the log
  • Block for deleting students log
    • Delete all logs from course
    • Delete selected (students) logs
    • Allow students to delete their own logs
  • Install and de-install function
  • Source code stored and published for further development

Major Changes

In previous versions of Activity Locking the result, whether a student has accessed a resource has been pulled from the normal log. Because of that, the log files could never have been deleted. Score Lock has its own table, where the accessing of students on resources is saved immediately. With the optional block, teacher can allow the students to delete their own record and/or the teacher may delete all or selected students entries of the course. Score Lock includes a block, that is used for log control and installation.

Open Issues

There is still a problem, that I have not figured yet:

Since Score Lock is part a hack, you can not update your system without destroying Score Lock and on re-installation upgraded features (of moodle) will be lost. I will try to make up for this with updated versions or even a durable solution, but it may take me a while.

Installation

Score Lock includes a block, that is used for the first part of the installation: Installing its own tables. Since a part of Score Lock is still a hack, it requires for a modification of other tables and files. This is done in a second step, which is done with a switch in the global settings of the block. This will add to existing tables, backup your existing files and install the modified Score Lock files. Even if the installation (de-installation) should fail, you will be able to recover to your original moodle files. The remaining table adds will cause no problem, but will have to be deleted previous to a new installation.

Step by step

Part 1: Block Installation
  • Unpack the ScoreLock file
  • Copy the content of the moodle folder into your moodle folder.
  • Optional you may copy moodledata to your moodle data folder (contains german language files)
  • Log in to your moodle site as administrator and access administration
  • You should get a message of two tables to be installed
  • If you access now the page for block setup you will notice a new block called ScoreLock

You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.

Part 2: Hack Installation
  • In global block setup (admin > blocks) open settings of ScoreLock
  • Check install
  • Open any page, where you have added the ScoreLock block or add it right now.
  • The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).
  • ScoreLock is now functional.

If anything went wrong

I tested installation and de-installation by now about 50 times and it worked, but you never know ...

  • Don't panic! All files are still on your server!
  • All original files in /moodle/course/ and in /moodle/course/format/weeks and /topics, as well as the moodlelib in /moodle/lib have only get renamed with the extension .org.
  • To change back simply delete this four characters from the end of the file name.
  • Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.

De-installation

  • Go to the block settings in admin and check de-install from the ScoreLock block.
  • Access again any page with the ScoreLock block to trigger the de-installation of the hack.
  • Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.
  • Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib

Once finished, there is no more part of ScoreLock on your system