<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=John1mb</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=John1mb"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/Special:Contributions/John1mb"/>
	<updated>2026-04-26T17:01:22Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5382</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5382"/>
		<updated>2006-10-27T07:35:41Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* How to use Score Lock */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
by John Gschnaidner&lt;br /&gt;
=Introduction=&lt;br /&gt;
{{Moodle 1.6}}&lt;br /&gt;
This is an advanced version of Activity Locking v2.4. for Moodle 1.6.x but not other versions earlier or later.  Since there are many different version of this hack, I decided to give this new branch a new name:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will allow you to give students access on activities, resources and complete sections within a course, only after having completed other tasks before that. For example: To get a certificate, the test has to be taken with a minimum result.  &lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
**Delete all logs from course&lt;br /&gt;
**Delete selected (students) logs&lt;br /&gt;
** Allow students to delete their own logs&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development&lt;br /&gt;
&#039;&#039;&#039;Current Restrictions:&#039;&#039;&#039;&lt;br /&gt;
*Score Lock v 1.0 beta installation currently supports only mySQL&lt;br /&gt;
*Backup and restore will be realized in v 1.1&lt;br /&gt;
&lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
&lt;br /&gt;
=How to use Score Lock=&lt;br /&gt;
Score Lock is based on ActivityLocking v2.4 and uses therefore tabs as teacher interface.&lt;br /&gt;
*To lock an activity, a resource or a section simply click the edit icon behind it or behind the section topic.&lt;br /&gt;
[[image:EditSectionModule.gif]]&lt;br /&gt;
*Aside of the normal edit function you will find two additional tabs&lt;br /&gt;
[[image:ModuleResourceEdit.gif]]   [[image:SumTopicEdit.gif]]&lt;br /&gt;
*The tab &#039;Lock by Score&#039; gives you a selection of modules, that you may use as requirements.&lt;br /&gt;
[[image:ModuleResourceLock.gif]]   [[image:SumTopicLock.gif]]&lt;br /&gt;
*In &#039;Settings&#039; you may adjust, at what condition the module / section is completed plus some settings for visualization of completiton and/or locking.&lt;br /&gt;
[[image:ModuleResourceSettings.gif]]   [[image:SumTopicSetting.gif]]&lt;br /&gt;
*If you are going to test locks in a course, you can only do that as a student. The new function of students view won&#039;t work proper.&lt;br /&gt;
*Be aware, that for some modules (resources) accessing that module will trigger completition of that module. To reset this values, you need to delete the logs (moodle log as well as the Score Lock log). you can do that from the Score Lock block.&lt;br /&gt;
[[image:Scl_block.gif]]&lt;br /&gt;
*Click the &#039;delete&#039; link to select if you want to delete all student logs or specific.&lt;br /&gt;
*Before you do that, check your Score Lock settings for this course. Click on the edid icon to access settings.&lt;br /&gt;
[[image:Scl_block_conf2.gif]]&lt;br /&gt;
*Make sure before, that the option for deleting the moodle logs as well is activated; otherwise the resource will still count as completed.&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Download and Forum==&lt;br /&gt;
*You can download the actual version of Score Lock from here: [http://moodle.org/file.php/5/moddata/forum/678/255250/ScoreLock_v103beta.tgz ScoreLock_v103beta]&lt;br /&gt;
:The current version is 1.0.3 which is compatible with Moodle 1.6.1 and 1.6.2&lt;br /&gt;
*If you need assistance or found a problem or a bug please post it here: [http://moodle.org/mod/forum/discuss.php?d=54195#247088 Conditional Activities Forum thread: Score Lock v 1.0 ]&lt;br /&gt;
&lt;br /&gt;
==Copyrights==&lt;br /&gt;
Score Lock is under General Public License.&lt;br /&gt;
&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup open settings of ScoreLock&lt;br /&gt;
&amp;gt;&amp;gt; Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; Blocks&lt;br /&gt;
*Check install&lt;br /&gt;
[[image:GlobalInstall.gif]]&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
[[image:ScoreLockIsInstalled.gif]]&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
[[image:ScoreLockIsDeInstalled.gif]]&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;br /&gt;
&lt;br /&gt;
=The future of Score Lock=&lt;br /&gt;
*Once the beta has been successfully tested an most bugs are fixed I will release the code of Score Lock on sourceforge.&lt;br /&gt;
*I have started on version 1.1, where backing up and restoring of locks and settings is included.&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5378</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5378"/>
		<updated>2006-10-11T06:22:41Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Download and Forum */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
by John Gschnaidner&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will allow you to give students access on activities, resources and complete sections within a course, only after having completed other tasks before that. For example: To get a certificate, the test has to be taken with a minimum result.  &lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
**Delete all logs from course&lt;br /&gt;
**Delete selected (students) logs&lt;br /&gt;
** Allow students to delete their own logs&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development&lt;br /&gt;
&#039;&#039;&#039;Current Restrictions:&#039;&#039;&#039;&lt;br /&gt;
*Score Lock v 1.0 beta installation currently supports only mySQL&lt;br /&gt;
*Backup and restore will be realized in v 1.1&lt;br /&gt;
&lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
=How to use Score Lock=&lt;br /&gt;
Score Lock is based on ActivityLocking v2.4 and uses therefore tabs as teacher interface.&lt;br /&gt;
*To lock an activity, a resource or a section simply click the edit icon behind it or behind the section topic.&lt;br /&gt;
[[image:EditSectionModule.gif]]&lt;br /&gt;
*Aside of the normal edit function you will find two additional tabs&lt;br /&gt;
[[image:ModuleResourceEdit.gif]]   [[image:SumTopicEdit.gif]]&lt;br /&gt;
*The tab &#039;Lock by Score&#039; gives you a selection of modules, that you may use as requirements.&lt;br /&gt;
[[image:ModuleResourceLock.gif]]   [[image:SumTopicLock.gif]]&lt;br /&gt;
*In &#039;Settings&#039; you may adjust, at what condition the module / section is completed plus some settings for visualization of completiton and/or locking.&lt;br /&gt;
[[image:ModuleResourceSettings.gif]]   [[image:SumTopicSetting.gif]]&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Download and Forum==&lt;br /&gt;
*You can download the actual version of Score Lock from here: [http://moodle.org/file.php/5/moddata/forum/678/255250/ScoreLock_v103beta.tgz]&lt;br /&gt;
:The current version is 1.0.3 which is compatible with Moodle 1.6.1 and 1.6.2&lt;br /&gt;
*If you need assistance or found a problem or a bug please post it here: [http://moodle.org/mod/forum/discuss.php?d=54195#247088]&lt;br /&gt;
&lt;br /&gt;
==Copyrights==&lt;br /&gt;
Score Lock is under General Public License.&lt;br /&gt;
&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup open settings of ScoreLock&lt;br /&gt;
&amp;gt;&amp;gt; Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; Blocks&lt;br /&gt;
*Check install&lt;br /&gt;
[[image:GlobalInstall.gif]]&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
[[image:ScoreLockIsInstalled.gif]]&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
[[image:ScoreLockIsDeInstalled.gif]]&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;br /&gt;
&lt;br /&gt;
=The future of Score Lock=&lt;br /&gt;
*Once the beta has been successfully tested an most bugs are fixed I will release the code of Score Lock on sourceforge.&lt;br /&gt;
*I have started on version 1.1, where backing up and restoring of locks and settings is included.&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5377</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5377"/>
		<updated>2006-10-11T05:35:51Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Download and Forum */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
by John Gschnaidner&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will allow you to give students access on activities, resources and complete sections within a course, only after having completed other tasks before that. For example: To get a certificate, the test has to be taken with a minimum result.  &lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
**Delete all logs from course&lt;br /&gt;
**Delete selected (students) logs&lt;br /&gt;
** Allow students to delete their own logs&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development&lt;br /&gt;
&#039;&#039;&#039;Current Restrictions:&#039;&#039;&#039;&lt;br /&gt;
*Score Lock v 1.0 beta installation currently supports only mySQL&lt;br /&gt;
*Backup and restore will be realized in v 1.1&lt;br /&gt;
&lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
=How to use Score Lock=&lt;br /&gt;
Score Lock is based on ActivityLocking v2.4 and uses therefore tabs as teacher interface.&lt;br /&gt;
*To lock an activity, a resource or a section simply click the edit icon behind it or behind the section topic.&lt;br /&gt;
[[image:EditSectionModule.gif]]&lt;br /&gt;
*Aside of the normal edit function you will find two additional tabs&lt;br /&gt;
[[image:ModuleResourceEdit.gif]]   [[image:SumTopicEdit.gif]]&lt;br /&gt;
*The tab &#039;Lock by Score&#039; gives you a selection of modules, that you may use as requirements.&lt;br /&gt;
[[image:ModuleResourceLock.gif]]   [[image:SumTopicLock.gif]]&lt;br /&gt;
*In &#039;Settings&#039; you may adjust, at what condition the module / section is completed plus some settings for visualization of completiton and/or locking.&lt;br /&gt;
[[image:ModuleResourceSettings.gif]]   [[image:SumTopicSetting.gif]]&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Download and Forum==&lt;br /&gt;
*You can download the actual version of Score Lock from here: [http://moodle.org/file.php/5/moddata/forum/678/255250/ScoreLock_v103beta.tgz]&lt;br /&gt;
*If you need assistance or found a problem or a bug please post it here: [http://moodle.org/mod/forum/discuss.php?d=54195#247088]&lt;br /&gt;
&lt;br /&gt;
==Copyrights==&lt;br /&gt;
Score Lock is under General Public License.&lt;br /&gt;
&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup open settings of ScoreLock&lt;br /&gt;
&amp;gt;&amp;gt; Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; Blocks&lt;br /&gt;
*Check install&lt;br /&gt;
[[image:GlobalInstall.gif]]&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
[[image:ScoreLockIsInstalled.gif]]&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
[[image:ScoreLockIsDeInstalled.gif]]&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;br /&gt;
&lt;br /&gt;
=The future of Score Lock=&lt;br /&gt;
*Once the beta has been successfully tested an most bugs are fixed I will release the code of Score Lock on sourceforge.&lt;br /&gt;
*I have started on version 1.1, where backing up and restoring of locks and settings is included.&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5376</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5376"/>
		<updated>2006-10-05T21:16:47Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Download and Forum */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
by John Gschnaidner&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will allow you to give students access on activities, resources and complete sections within a course, only after having completed other tasks before that. For example: To get a certificate, the test has to be taken with a minimum result.  &lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
**Delete all logs from course&lt;br /&gt;
**Delete selected (students) logs&lt;br /&gt;
** Allow students to delete their own logs&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development&lt;br /&gt;
&#039;&#039;&#039;Current Restrictions:&#039;&#039;&#039;&lt;br /&gt;
*Score Lock v 1.0 beta installation currently supports only mySQL&lt;br /&gt;
*Backup and restore will be realized in v 1.1&lt;br /&gt;
&lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
=How to use Score Lock=&lt;br /&gt;
Score Lock is based on ActivityLocking v2.4 and uses therefore tabs as teacher interface.&lt;br /&gt;
*To lock an activity, a resource or a section simply click the edit icon behind it or behind the section topic.&lt;br /&gt;
[[image:EditSectionModule.gif]]&lt;br /&gt;
*Aside of the normal edit function you will find two additional tabs&lt;br /&gt;
[[image:ModuleResourceEdit.gif]]   [[image:SumTopicEdit.gif]]&lt;br /&gt;
*The tab &#039;Lock by Score&#039; gives you a selection of modules, that you may use as requirements.&lt;br /&gt;
[[image:ModuleResourceLock.gif]]   [[image:SumTopicLock.gif]]&lt;br /&gt;
*In &#039;Settings&#039; you may adjust, at what condition the module / section is completed plus some settings for visualization of completiton and/or locking.&lt;br /&gt;
[[image:ModuleResourceSettings.gif]]   [[image:SumTopicSetting.gif]]&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Download and Forum==&lt;br /&gt;
*You can download the actual version of Score Lock from here: [http://moodle.org/file.php/5/moddata/forum/678/253689/ScoreLock_v102beta.tgz]&lt;br /&gt;
*If you need assistance or found a problem or a bug please post it here: [http://moodle.org/mod/forum/discuss.php?d=54195#247088]&lt;br /&gt;
&lt;br /&gt;
==Copyrights==&lt;br /&gt;
Score Lock is under General Public License.&lt;br /&gt;
&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup open settings of ScoreLock&lt;br /&gt;
&amp;gt;&amp;gt; Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; Blocks&lt;br /&gt;
*Check install&lt;br /&gt;
[[image:GlobalInstall.gif]]&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
[[image:ScoreLockIsInstalled.gif]]&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
[[image:ScoreLockIsDeInstalled.gif]]&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;br /&gt;
&lt;br /&gt;
=The future of Score Lock=&lt;br /&gt;
*Once the beta has been successfully tested an most bugs are fixed I will release the code of Score Lock on sourceforge.&lt;br /&gt;
*I have started on version 1.1, where backing up and restoring of locks and settings is included.&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5375</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5375"/>
		<updated>2006-09-15T22:00:34Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
by John Gschnaidner&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will allow you to give students access on activities, resources and complete sections within a course, only after having completed other tasks before that. For example: To get a certificate, the test has to be taken with a minimum result.  &lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
**Delete all logs from course&lt;br /&gt;
**Delete selected (students) logs&lt;br /&gt;
** Allow students to delete their own logs&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development&lt;br /&gt;
&#039;&#039;&#039;Current Restrictions:&#039;&#039;&#039;&lt;br /&gt;
*Score Lock v 1.0 beta installation currently supports only mySQL&lt;br /&gt;
*Backup and restore will be realized in v 1.1&lt;br /&gt;
&lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
=How to use Score Lock=&lt;br /&gt;
Score Lock is based on ActivityLocking v2.4 and uses therefore tabs as teacher interface.&lt;br /&gt;
*To lock an activity, a resource or a section simply click the edit icon behind it or behind the section topic.&lt;br /&gt;
[[image:EditSectionModule.gif]]&lt;br /&gt;
*Aside of the normal edit function you will find two additional tabs&lt;br /&gt;
[[image:ModuleResourceEdit.gif]]   [[image:SumTopicEdit.gif]]&lt;br /&gt;
*The tab &#039;Lock by Score&#039; gives you a selection of modules, that you may use as requirements.&lt;br /&gt;
[[image:ModuleResourceLock.gif]]   [[image:SumTopicLock.gif]]&lt;br /&gt;
*In &#039;Settings&#039; you may adjust, at what condition the module / section is completed plus some settings for visualization of completiton and/or locking.&lt;br /&gt;
[[image:ModuleResourceSettings.gif]]   [[image:SumTopicSetting.gif]]&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Download and Forum==&lt;br /&gt;
*You can download the actual version of Score Lock from here: [http://moodle.org/file.php/5/moddata/forum/678/247088/ScoreLock10beta.tgz]&lt;br /&gt;
*If you need assistance or found a problem or a bug please post it here: [http://moodle.org/mod/forum/discuss.php?d=54195#247088]&lt;br /&gt;
&lt;br /&gt;
==Copyrights==&lt;br /&gt;
Score Lock is under General Public License.&lt;br /&gt;
&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup open settings of ScoreLock&lt;br /&gt;
&amp;gt;&amp;gt; Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; Blocks&lt;br /&gt;
*Check install&lt;br /&gt;
[[image:GlobalInstall.gif]]&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
[[image:ScoreLockIsInstalled.gif]]&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
[[image:ScoreLockIsDeInstalled.gif]]&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;br /&gt;
&lt;br /&gt;
=The future of Score Lock=&lt;br /&gt;
*Once the beta has been successfully tested an most bugs are fixed I will release the code of Score Lock on sourceforge.&lt;br /&gt;
*I have started on version 1.1, where backing up and restoring of locks and settings is included.&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5374</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5374"/>
		<updated>2006-09-15T21:58:22Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Features */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
by John Gschnaidner&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will allow you to give students access on activities, resources and complete sections within a course, only after having completed other tasks before that. For example: To get a certificate, the test has to be taken with a minimum result.  &lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
**Delete all logs from course&lt;br /&gt;
**Delete selected (students) logs&lt;br /&gt;
** Allow students to delete their own logs&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development&lt;br /&gt;
&#039;&#039;&#039;Current Restrictions:&#039;&#039;&#039;&lt;br /&gt;
*Score Lock v 1.0 beta installation currently supports only mySQL&lt;br /&gt;
*Backup and restore will be realized in v 1.1&lt;br /&gt;
&lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
=How to use Score Lock=&lt;br /&gt;
Score Lock is based on ActivityLocking v2.4 and uses therefore tabs as teacher interface.&lt;br /&gt;
*To lock an activity, a resource or a section simply click the edit icon behind it or behind the section topic.&lt;br /&gt;
[[image:EditSectionModule.gif]]&lt;br /&gt;
*Aside of the normal edit function you will find two additional tabs&lt;br /&gt;
[[image:ModuleResourceEdit.gif]]   [[image:SumTopicEdit.gif]]&lt;br /&gt;
*The tab &#039;Lock by Score&#039; gives you a selection of modules, that you may use as requirements.&lt;br /&gt;
[[image:ModuleResourceLock.gif]]   [[image:SumTopicLock.gif]]&lt;br /&gt;
*In &#039;Settings&#039; you may adjust, at what condition the module / section is completed plus some settings for visualization of completiton and/or locking.&lt;br /&gt;
[[image:ModuleResourceSettings.gif]]   [[image:SumTopicSetting.gif]]&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Download and Forum==&lt;br /&gt;
*You can download the actual version of Score Lock from here: [http://moodle.org/file.php/5/moddata/forum/678/247088/ScoreLock10beta.tgz]&lt;br /&gt;
*If you need assistance or found a problem or a bug please post it here: [http://moodle.org/mod/forum/discuss.php?d=54195#247088]&lt;br /&gt;
&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup open settings of ScoreLock&lt;br /&gt;
&amp;gt;&amp;gt; Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; Blocks&lt;br /&gt;
*Check install&lt;br /&gt;
[[image:GlobalInstall.gif]]&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
[[image:ScoreLockIsInstalled.gif]]&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
[[image:ScoreLockIsDeInstalled.gif]]&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;br /&gt;
=The future of Score Lock=&lt;br /&gt;
*Once the beta has been successfully tested an most bugs are fixed I will release the code of Score Lock on sourceforge.&lt;br /&gt;
*I have started on version 1.1, where backing up and restoring of locks and settings is included.&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5373</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5373"/>
		<updated>2006-09-15T21:42:10Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Download and Forum */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
by John Gschnaidner&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will allow you to give students access on activities, resources and complete sections within a course, only after having completed other tasks before that. For example: To get a certificate, the test has to be taken with a minimum result.  &lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
**Delete all logs from course&lt;br /&gt;
**Delete selected (students) logs&lt;br /&gt;
** Allow students to delete their own logs&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development&lt;br /&gt;
&lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
=How to use Score Lock=&lt;br /&gt;
Score Lock is based on ActivityLocking v2.4 and uses therefore tabs as teacher interface.&lt;br /&gt;
*To lock an activity, a resource or a section simply click the edit icon behind it or behind the section topic.&lt;br /&gt;
[[image:EditSectionModule.gif]]&lt;br /&gt;
*Aside of the normal edit function you will find two additional tabs&lt;br /&gt;
[[image:ModuleResourceEdit.gif]]   [[image:SumTopicEdit.gif]]&lt;br /&gt;
*The tab &#039;Lock by Score&#039; gives you a selection of modules, that you may use as requirements.&lt;br /&gt;
[[image:ModuleResourceLock.gif]]   [[image:SumTopicLock.gif]]&lt;br /&gt;
*In &#039;Settings&#039; you may adjust, at what condition the module / section is completed plus some settings for visualization of completiton and/or locking.&lt;br /&gt;
[[image:ModuleResourceSettings.gif]]   [[image:SumTopicSetting.gif]]&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Download and Forum==&lt;br /&gt;
*You can download the actual version of Score Lock from here: [http://moodle.org/file.php/5/moddata/forum/678/247088/ScoreLock10beta.tgz]&lt;br /&gt;
*If you need assistance or found a problem or a bug please post it here: [http://moodle.org/mod/forum/discuss.php?d=54195#247088]&lt;br /&gt;
&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup open settings of ScoreLock&lt;br /&gt;
&amp;gt;&amp;gt; Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; Blocks&lt;br /&gt;
*Check install&lt;br /&gt;
[[image:GlobalInstall.gif]]&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
[[image:ScoreLockIsInstalled.gif]]&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
[[image:ScoreLockIsDeInstalled.gif]]&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;br /&gt;
=The future of Score Lock=&lt;br /&gt;
*Once the beta has been successfully tested an most bugs are fixed I will release the code of Score Lock on sourceforge.&lt;br /&gt;
*I have started on version 1.1, where backing up and restoring of locks and settings is included.&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5372</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5372"/>
		<updated>2006-09-15T21:37:43Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Step by step */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
by John Gschnaidner&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will allow you to give students access on activities, resources and complete sections within a course, only after having completed other tasks before that. For example: To get a certificate, the test has to be taken with a minimum result.  &lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
**Delete all logs from course&lt;br /&gt;
**Delete selected (students) logs&lt;br /&gt;
** Allow students to delete their own logs&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development&lt;br /&gt;
&lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
=How to use Score Lock=&lt;br /&gt;
Score Lock is based on ActivityLocking v2.4 and uses therefore tabs as teacher interface.&lt;br /&gt;
*To lock an activity, a resource or a section simply click the edit icon behind it or behind the section topic.&lt;br /&gt;
[[image:EditSectionModule.gif]]&lt;br /&gt;
*Aside of the normal edit function you will find two additional tabs&lt;br /&gt;
[[image:ModuleResourceEdit.gif]]   [[image:SumTopicEdit.gif]]&lt;br /&gt;
*The tab &#039;Lock by Score&#039; gives you a selection of modules, that you may use as requirements.&lt;br /&gt;
[[image:ModuleResourceLock.gif]]   [[image:SumTopicLock.gif]]&lt;br /&gt;
*In &#039;Settings&#039; you may adjust, at what condition the module / section is completed plus some settings for visualization of completiton and/or locking.&lt;br /&gt;
[[image:ModuleResourceSettings.gif]]   [[image:SumTopicSetting.gif]]&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Download and Forum==&lt;br /&gt;
You can download the actual version of Score Lock from here: [[]]&lt;br /&gt;
If you need assistance or found a problem or a bug please post it here: [[]]&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup open settings of ScoreLock&lt;br /&gt;
&amp;gt;&amp;gt; Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; Blocks&lt;br /&gt;
*Check install&lt;br /&gt;
[[image:GlobalInstall.gif]]&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
[[image:ScoreLockIsInstalled.gif]]&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
[[image:ScoreLockIsDeInstalled.gif]]&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;br /&gt;
=The future of Score Lock=&lt;br /&gt;
*Once the beta has been successfully tested an most bugs are fixed I will release the code of Score Lock on sourceforge.&lt;br /&gt;
*I have started on version 1.1, where backing up and restoring of locks and settings is included.&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5371</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5371"/>
		<updated>2006-09-15T21:23:17Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* De-installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
by John Gschnaidner&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will allow you to give students access on activities, resources and complete sections within a course, only after having completed other tasks before that. For example: To get a certificate, the test has to be taken with a minimum result.  &lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
**Delete all logs from course&lt;br /&gt;
**Delete selected (students) logs&lt;br /&gt;
** Allow students to delete their own logs&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development&lt;br /&gt;
&lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
=How to use Score Lock=&lt;br /&gt;
Score Lock is based on ActivityLocking v2.4 and uses therefore tabs as teacher interface.&lt;br /&gt;
*To lock an activity, a resource or a section simply click the edit icon behind it or behind the section topic.&lt;br /&gt;
[[image:EditSectionModule.gif]]&lt;br /&gt;
*Aside of the normal edit function you will find two additional tabs&lt;br /&gt;
[[image:ModuleResourceEdit.gif]]   [[image:SumTopicEdit.gif]]&lt;br /&gt;
*The tab &#039;Lock by Score&#039; gives you a selection of modules, that you may use as requirements.&lt;br /&gt;
[[image:ModuleResourceLock.gif]]   [[image:SumTopicLock.gif]]&lt;br /&gt;
*In &#039;Settings&#039; you may adjust, at what condition the module / section is completed plus some settings for visualization of completiton and/or locking.&lt;br /&gt;
[[image:ModuleResourceSettings.gif]]   [[image:SumTopicSetting.gif]]&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup open settings of ScoreLock&lt;br /&gt;
&amp;gt;&amp;gt; Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; Blocks&lt;br /&gt;
*Check install&lt;br /&gt;
[[image:GlobalInstall.gif]]&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
[[image:ScoreLockIsInstalled.gif]]&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
[[image:ScoreLockIsDeInstalled.gif]]&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;br /&gt;
=The future of Score Lock=&lt;br /&gt;
*Once the beta has been successfully tested an most bugs are fixed I will release the code of Score Lock on sourceforge.&lt;br /&gt;
*I have started on version 1.1, where backing up and restoring of locks and settings is included.&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4074</id>
		<title>Activity Locking</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4074"/>
		<updated>2006-09-08T09:09:55Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Table of Versions, to be completed... */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
This page is an attempt to consolidate and explain the available activity locking (AL) code that is present for Moodle 1.5.x and 1.6.x. This page will hopefully help explain all the available versions and their respective features. Some of the reference here will overlap with the existing MoodleDoc page covering [[Conditional activities]]. &lt;br /&gt;
&lt;br /&gt;
Please be patient as this page is new and under development.  See page comments for reference material.&lt;br /&gt;
&lt;br /&gt;
=Types of activity locking code=&lt;br /&gt;
For the purpose of this MoodleDoc article: AL is any code that allows the user to make decisions on the next available resource or item the student will be able to use based on student events or quiz performance. There is some activity locking code that is very quick and dirty to simply lock future activities and then there is much more complex code based on the conditional activity though structure which attempts to progress the student through the course in a thought out progression based on activities and performance. Again we hope to clarify some of this here.&lt;br /&gt;
&lt;br /&gt;
==AL Branch 0.1 (Bernard Boucher)==&lt;br /&gt;
Bernard started all this with a hack to lock quiz and resources in [http://moodle.org/mod/forum/discuss.php?d=2948#12825 october 2003]. The certificate based on a quiz score was added in [http://moodle.org/mod/forum/discuss.php?d=9766#59875 september 2004] with version 0.7.  It was a great start!&lt;br /&gt;
&lt;br /&gt;
== AL Branch 2.0 for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
*This has been virtually a complete rewrite and as such there are areas of functionality the were available in older versions of AL that are not in this.    &lt;br /&gt;
&lt;br /&gt;
* Conditional locking: Lock based on a user&#039;s performance in previous activities. You can also choose to unlock and activity if a user scores less than a certain grade.&lt;br /&gt;
* Show activity completion: The checkbox that appears before each activity to show it have been done.&lt;br /&gt;
* A variation on this  also hides future activities, see AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch) below.&lt;br /&gt;
* Bernard Boucher reworked Stuart&#039;s version for Moolde 1.6, initially on June 20, 2006 and updated on July 10, 2006 posted [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip &#039;&#039;&#039;Activity Locking V 2.0 for Moodle 1.6&#039;&#039;&#039;] on [http://moodle.org/mod/forum/discuss.php?d=46863#220125 Activity Locking v3 or v2 for testing only].&lt;br /&gt;
&lt;br /&gt;
===Installation for 2.1 for Moodle 1.6(Stuart Mayor)===&lt;br /&gt;
&#039;&#039;&#039;activitylocking20051201.zip&#039;&#039;&#039; the initial version&lt;br /&gt;
&lt;br /&gt;
* Firstly, you need the stable build of Moodle 1.6. This version of AL might work on earlier releases but I didn&#039;t write it with them in mind and I certainly can&#039;t support them.&lt;br /&gt;
Next, you need to modify one table in the database and add a new one (I use phpmyadmin for this). &lt;br /&gt;
&lt;br /&gt;
* The table you need to modify is mdl_course_modules and you need to add the following fields:&lt;br /&gt;
completedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
completedscore VARCHAR(255) NOT NULL&lt;br /&gt;
completedstyle VARCHAR(255) NOT NULL&lt;br /&gt;
lockedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
lockedstyle VARCHAR(255) NOT NULL DEFAULT &#039;locked&#039;&lt;br /&gt;
lockedvisible TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
delay INT(10) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
&lt;br /&gt;
* The table you need to create is as follows:&lt;br /&gt;
CREATE TABLE `mdl_course_locks` (&lt;br /&gt;
`id` int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
`courseid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locktype` varchar(10) NOT NULL default &#039;&#039;,&lt;br /&gt;
`targetid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locks` longtext NOT NULL,&lt;br /&gt;
PRIMARY KEY (`id`)&lt;br /&gt;
) TYPE=MyISAM COMMENT=&#039;Contains locks for sections and modules&#039;;&lt;br /&gt;
* Lastly, you need to copy the following files from the zip file:&lt;br /&gt;
lib/moodlelib.php to moodle/lib/moodlelib.php&lt;br /&gt;
lib/locklib.php to moodle/lib/locklib.php&lt;br /&gt;
course/lib.php to moodle/course/lib.php&lt;br /&gt;
course/lock.php to moodle/course/lock.php&lt;br /&gt;
course/mod.php to moodle/course/mod.php&lt;br /&gt;
course/settings.html to moodle/course/settings.html&lt;br /&gt;
pix/t/open.gif to moodle/pix/t/open.gif&lt;br /&gt;
pix/t/closed.gif to moodle/pix/t/closed.gif&lt;br /&gt;
lang/en/lock.php to moodle/lang/en/lock.php&lt;br /&gt;
&lt;br /&gt;
==AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch and others)==&lt;br /&gt;
John&#039;s versionincludes the settings tab--making it possible to set the hide/visible options, as well as the completion (a checkmark in front of a resource/activity) options, says Chardelle.  &lt;br /&gt;
* A variation on  Stuart Mayor&#039;s 2.1, it hides topics dependent upon conditions set on specific activities/resources  &#039;&#039;&#039;ALV2_1_debug.ZIP&#039;&#039;&#039; (John). Had bug which Benard tweaked out.&lt;br /&gt;
* A build of Stuarts Mayor&#039;s 2.1 it locks and/or hides specific activities depending upon conditions set on specific activities/resources. Was posted by Chardelle in [http://proemployees.com/ActivityLockingWithHide-1.6.zip &#039;&#039;&#039;ActivityLockingWithHide-1.6.zip&#039;&#039;&#039;]. Probably same as above. Had bug which Benard tweaked out.&lt;br /&gt;
* A tweak by Bernard Boucher on June 27, 2006 was posted [http://moodle.org/mod/forum/discuss.php?d=35488&amp;amp;parent=222516 moodle/lib/locklib.php file] and called &#039;&#039;&#039;locklib.zip&#039;&#039;&#039; seems to fix known bug in both the above downloads.&lt;br /&gt;
==AL Branch 2.4 for Moodle 1.6 (John Gschnaidner)==&lt;br /&gt;
Further development of the 2.2 as a hack (no installation function).&lt;br /&gt;
:&lt;br /&gt;
&#039;&#039;&#039;WARNING:&#039;&#039;&#039;&lt;br /&gt;
:Because of some changes, this version may &#039;&#039;&#039;not&#039;&#039;&#039; be completely compatible to previous versions!&lt;br /&gt;
Status:&lt;br /&gt;
:Released, but you still should try it &#039;&#039;&#039;before&#039;&#039;&#039; implementing it on a production server.&lt;br /&gt;
:&lt;br /&gt;
In this version:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&lt;br /&gt;
==AL Branch 3.s for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
Similar to the 2.x versions. Major difference is that a question to the student unlocks activities.  Being actively developed and tested.&lt;br /&gt;
&lt;br /&gt;
==CA Branch 1.0 for Moodle 1.5.2 (Borja Rubio Reyes)==&lt;br /&gt;
Details and discussed in the thread &amp;quot;[http://moodle.org/mod/forum/discuss.php?d=36697 NEW research on CONDITIONAL ACTIVITIES in Moodle]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Score Lock for Moodle 1.6x (John Gschnaidner)==&lt;br /&gt;
As announced, this is a ongoing development for Activity Locking v2.4, with a couple of new features.&lt;br /&gt;
For further information please refer to&lt;br /&gt;
:&amp;quot;[https://docs.moodle.org/en/Score_Lock moodle Docs: &#039;&#039;&#039;Score Lock&#039;&#039;&#039;]&amp;quot;&lt;br /&gt;
Score Lock is scheduled for beta release until middle of September 2006.&lt;br /&gt;
&lt;br /&gt;
= Table of Versions, to be completed... =&lt;br /&gt;
{| border=&amp;quot;3&amp;quot; padding=&amp;quot;4&amp;quot;&lt;br /&gt;
|+ Activity Locking updated 1 Sept 2006 &lt;br /&gt;
! -Version-  &lt;br /&gt;
! Moodle version&lt;br /&gt;
! Who&lt;br /&gt;
! Status&lt;br /&gt;
! MySql Install&lt;br /&gt;
! Docs&lt;br /&gt;
! Download&lt;br /&gt;
! Teacher Interface &lt;br /&gt;
! Hide Option&lt;br /&gt;
! Completion Box Option&lt;br /&gt;
! Section Lock &lt;br /&gt;
! Quiz Question &lt;br /&gt;
! Comments &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Bug &lt;br /&gt;
! Bug &lt;br /&gt;
|-----&lt;br /&gt;
| AL 3.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| not finished&lt;br /&gt;
|&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=46863]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/214752/Activity_Locking_20060317.7z]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.4&lt;br /&gt;
| 1.6&lt;br /&gt;
| John Gschnaidner&lt;br /&gt;
| released&lt;br /&gt;
| manual&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=50835]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/241994/ALv2.4.7z]&lt;br /&gt;
| Tabs&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/244338/locking.php]&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.3&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=35488]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/164285/activitylocking20051201.zip]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| A/R/T dep on A/Rs&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.2&lt;br /&gt;
| 1.6&lt;br /&gt;
| Gschnaidner, Mayor, Busch&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=47906]&lt;br /&gt;
| [http://proemployees.com/ActivityLockingWithHide-1.6.zip]&lt;br /&gt;
| Tabs&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| almost&lt;br /&gt;
| A/R dep on A/Rs&lt;br /&gt;
| +Hide&lt;br /&gt;
|&lt;br /&gt;
| bug fix&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.0&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor, Bernard Boucher&lt;br /&gt;
| Updated&lt;br /&gt;
| Automatic&lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=31627#152788]&lt;br /&gt;
| [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip]&lt;br /&gt;
| Padlock Icons&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| see above&lt;br /&gt;
|-----&lt;br /&gt;
| C A 1.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Borja Rubio Reyes, David Delgado&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=36697]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=General installation instructions DRAFT=&lt;br /&gt;
Installing AL on a localhost (desktop) machine was not difficult!  Some months ago I must have downloaded and connected phpAdministration and that came in handy for step 6.   I just did a conversion and it took me less than 30 minutes (actually I think the AL part was done in 3 minutes ) because I wanted to install the latest version of Moodle 1.6 and then zipped my entire Moodle16 file structure before I attempted the AL installation.&lt;br /&gt;
*1. Perform any backups you think are necessary (I zipped everything in my localhost path).&lt;br /&gt;
*2. Select the zip file flavor of AL you want and download it (I used Chardelle&#039;s zip plus Bernards tweak found in 2.2 above)&lt;br /&gt;
*3. Unzip it to a non Moodle place.  (Like to keep the folder structures option)&lt;br /&gt;
*4. Locate the MySQL.sql file so you can find it again.&lt;br /&gt;
*5. In Moodle as admin, go to Administration, Configuration and turn on Maintence Mode.&lt;br /&gt;
*6. Go to Administration, Database. In the home query window, on the left, click on moodle (mine says Moodle16 and has a bunch of mdl_ listings under it). &lt;br /&gt;
*7. Best: Click on the SQL tab. In the location of the text file, browse to the file in #4, then click go.&lt;br /&gt;
*7. Alternative: use the MySQL document and make or changes in &lt;br /&gt;
*8. Leave Moodle, shut that browser window.&lt;br /&gt;
*9.  Now you need to move the files in the folders located in #3 to your Moodle file structure.   (See my tip below). In your non moodle area you have unpack the file to a folder called ActivityLockingWithHide.  It has a folder called Moodle in it, with sub folders under it, for example ActivityLockingWithHide\Moodle\Course.  You should copy ever file from there to your local host file structure in the same spot. (Mine is Moodle16\Moodle\Course ).&lt;br /&gt;
*10. Go back into Moodle, log in as Admin, go to Administration. Moodle will adjust itself.&lt;br /&gt;
*11 Check in Administration, Configuration, Maintence to make sure it is disabled.  &lt;br /&gt;
*12.  You are done, check out a lesson with weeks or topics, go to lesson settings and notice the new tabs.&lt;br /&gt;
* TIP?   There is probably a slicker way but after I unzipped the file in #3, I went down a level and zipped the Moodle folder.  Then I unpacked the files to Moodle16\, told the unzip program to keep the folder structure and overwrite existing files.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
*[[Adding_activity_locks]] will give the reader an idea of what one of the flavors of Activity Locking looks like for a student and teacher setting it up.  &lt;br /&gt;
&lt;br /&gt;
Please visit the Moodle Forum for more information concerning Activity Locking and Conditional Activities-&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=35488#220984:  AL v2.1-M1.6] titled Activity Locking v2.1 (for Moodle 1.6)&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=46863:  AL v3.0-Mx] titled Activity Locking v3&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36697 AL v3.0-DD] titled NEW research on CONDITIONAL ACTIVITIES in Moodle&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=31627&amp;amp;parent=152788: AL v2.1 LALR]  titled Latest Activity Locking Release started 19 October 2005&lt;br /&gt;
* http://moodle.org/mod/forum/view.php?id=4295&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=47906&amp;amp;parent=221613 AL v2.1 wH1.6] titled Re: Certificate for 1.6 with security in Activity Modules forum&lt;br /&gt;
&lt;br /&gt;
There is a very specialized-limited type of activity locking under a lesson (activity) setting called dependency in 1.6.   See: *https://docs.moodle.org/en/Adding/editing_a_lesson#Dependent_on .&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5370</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5370"/>
		<updated>2006-09-07T15:21:46Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* How to use Score Lock */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
by John Gschnaidner&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will allow you to give students access on activities, resources and complete sections within a course, only after having completed other tasks before that. For example: To get a certificate, the test has to be taken with a minimum result.  &lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
**Delete all logs from course&lt;br /&gt;
**Delete selected (students) logs&lt;br /&gt;
** Allow students to delete their own logs&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development&lt;br /&gt;
&lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
=How to use Score Lock=&lt;br /&gt;
Score Lock is based on ActivityLocking v2.4 and uses therefore tabs as teacher interface.&lt;br /&gt;
*To lock an activity, a resource or a section simply click the edit icon behind it or behind the section topic.&lt;br /&gt;
[[image:EditSectionModule.gif]]&lt;br /&gt;
*Aside of the normal edit function you will find two additional tabs&lt;br /&gt;
[[image:ModuleResourceEdit.gif]]   [[image:SumTopicEdit.gif]]&lt;br /&gt;
*The tab &#039;Lock by Score&#039; gives you a selection of modules, that you may use as requirements.&lt;br /&gt;
[[image:ModuleResourceLock.gif]]   [[image:SumTopicLock.gif]]&lt;br /&gt;
*In &#039;Settings&#039; you may adjust, at what condition the module / section is completed plus some settings for visualization of completiton and/or locking.&lt;br /&gt;
[[image:ModuleResourceSettings.gif]]   [[image:SumTopicSetting.gif]]&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup open settings of ScoreLock&lt;br /&gt;
&amp;gt;&amp;gt; Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; Blocks&lt;br /&gt;
*Check install&lt;br /&gt;
[[image:GlobalInstall.gif]]&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
[[image:ScoreLockIsInstalled.gif]]&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
[[image:ScoreLockIsDeInstalled.gif]]&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5369</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5369"/>
		<updated>2006-09-07T15:10:22Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* De-installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
by John Gschnaidner&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will allow you to give students access on activities, resources and complete sections within a course, only after having completed other tasks before that. For example: To get a certificate, the test has to be taken with a minimum result.  &lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
**Delete all logs from course&lt;br /&gt;
**Delete selected (students) logs&lt;br /&gt;
** Allow students to delete their own logs&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development&lt;br /&gt;
&lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
=How to use Score Lock=&lt;br /&gt;
Score Lock is based on ActivityLocking v2.4 and uses therefore tabs as teacher interface.&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup open settings of ScoreLock&lt;br /&gt;
&amp;gt;&amp;gt; Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; Blocks&lt;br /&gt;
*Check install&lt;br /&gt;
[[image:GlobalInstall.gif]]&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
[[image:ScoreLockIsInstalled.gif]]&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
[[image:ScoreLockIsDeInstalled.gif]]&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5368</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5368"/>
		<updated>2006-09-07T15:04:40Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Step by step */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
by John Gschnaidner&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will allow you to give students access on activities, resources and complete sections within a course, only after having completed other tasks before that. For example: To get a certificate, the test has to be taken with a minimum result.  &lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
**Delete all logs from course&lt;br /&gt;
**Delete selected (students) logs&lt;br /&gt;
** Allow students to delete their own logs&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development&lt;br /&gt;
&lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
=How to use Score Lock=&lt;br /&gt;
Score Lock is based on ActivityLocking v2.4 and uses therefore tabs as teacher interface.&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup open settings of ScoreLock&lt;br /&gt;
&amp;gt;&amp;gt; Administration &amp;gt;&amp;gt; Configuration &amp;gt;&amp;gt; Blocks&lt;br /&gt;
*Check install&lt;br /&gt;
[[image:GlobalInstall.gif]]&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
[[image:ScoreLockIsInstalled.gif]]&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5367</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5367"/>
		<updated>2006-09-07T15:02:17Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Step by step */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
by John Gschnaidner&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will allow you to give students access on activities, resources and complete sections within a course, only after having completed other tasks before that. For example: To get a certificate, the test has to be taken with a minimum result.  &lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
**Delete all logs from course&lt;br /&gt;
**Delete selected (students) logs&lt;br /&gt;
** Allow students to delete their own logs&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development&lt;br /&gt;
&lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
=How to use Score Lock=&lt;br /&gt;
Score Lock is based on ActivityLocking v2.4 and uses therefore tabs as teacher interface.&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup open settings of ScoreLock&lt;br /&gt;
[[image:AdminConfigBlocks.gif]]&lt;br /&gt;
[[image:AdminConfigBlocksScorLockBlock.gif]]&lt;br /&gt;
*Check install&lt;br /&gt;
[[image:GlobalInstall.gif]]&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
[[image:ScoreLockIsInstalled.gif]]&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5366</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5366"/>
		<updated>2006-09-07T13:49:13Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* How to use ScoreLock */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
by John Gschnaidner&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will allow you to give students access on activities, resources and complete sections within a course, only after having completed other tasks before that. For example: To get a certificate, the test has to be taken with a minimum result.  &lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
**Delete all logs from course&lt;br /&gt;
**Delete selected (students) logs&lt;br /&gt;
** Allow students to delete their own logs&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development&lt;br /&gt;
&lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
=How to use Score Lock=&lt;br /&gt;
Score Lock is based on ActivityLocking v2.4 and uses therefore tabs as teacher interface.&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup (admin &amp;gt; blocks) open settings of ScoreLock&lt;br /&gt;
*Check install&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5365</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5365"/>
		<updated>2006-09-07T13:46:28Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Open Issues */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
by John Gschnaidner&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will allow you to give students access on activities, resources and complete sections within a course, only after having completed other tasks before that. For example: To get a certificate, the test has to be taken with a minimum result.  &lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
**Delete all logs from course&lt;br /&gt;
**Delete selected (students) logs&lt;br /&gt;
** Allow students to delete their own logs&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development&lt;br /&gt;
&lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
=How to use ScoreLock=&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup (admin &amp;gt; blocks) open settings of ScoreLock&lt;br /&gt;
*Check install&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5364</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5364"/>
		<updated>2006-09-07T13:43:19Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
by John Gschnaidner&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will allow you to give students access on activities, resources and complete sections within a course, only after having completed other tasks before that. For example: To get a certificate, the test has to be taken with a minimum result.  &lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
**Delete all logs from course&lt;br /&gt;
**Delete selected (students) logs&lt;br /&gt;
** Allow students to delete their own logs&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development&lt;br /&gt;
&lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup (admin &amp;gt; blocks) open settings of ScoreLock&lt;br /&gt;
*Check install&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5363</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5363"/>
		<updated>2006-09-07T12:42:06Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will allow you to give students access on activities, resources and complete sections within a course, only after having completed other tasks before that. For example: To get a certificate, the test has to be taken with a minimum result.  &lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
**Delete all logs from course&lt;br /&gt;
**Delete selected (students) logs&lt;br /&gt;
** Allow students to delete their own logs&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development&lt;br /&gt;
&lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup (admin &amp;gt; blocks) open settings of ScoreLock&lt;br /&gt;
*Check install&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5362</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5362"/>
		<updated>2006-09-07T12:34:32Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Features */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
**Delete all logs from course&lt;br /&gt;
**Delete selected (students) logs&lt;br /&gt;
** Allow students to delete their own logs&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development&lt;br /&gt;
&lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup (admin &amp;gt; blocks) open settings of ScoreLock&lt;br /&gt;
*Check install&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5361</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5361"/>
		<updated>2006-09-07T12:29:38Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development &lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
==Step by step==&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup (admin &amp;gt; blocks) open settings of ScoreLock&lt;br /&gt;
*Check install&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
==If anything went wrong==&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
==De-installation==&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5360</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5360"/>
		<updated>2006-09-07T12:28:12Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development &lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
&#039;&#039;&#039;Step by step&#039;&#039;&#039;&lt;br /&gt;
:&#039;&#039;&#039;Part 1: Block Installation&#039;&#039;&#039;&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
:&#039;&#039;&#039;Part 2: Hack Installation&#039;&#039;&#039;&lt;br /&gt;
* In global block setup (admin &amp;gt; blocks) open settings of ScoreLock&lt;br /&gt;
*Check install&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
If anything went wrong:&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
:&#039;&#039;&#039;De-installation:&#039;&#039;&#039;&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5359</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5359"/>
		<updated>2006-09-07T12:27:08Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development &lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
&#039;&#039;&#039;Step by step&#039;&#039;&#039;&lt;br /&gt;
:Part 1: Block Installation&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
: Part 2: Hack Installation&lt;br /&gt;
* In global block setup (admin &amp;gt; blocks) open settings of ScoreLock&lt;br /&gt;
*Check install&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
If anything went wrong:&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*&#039;&#039;&#039;Don&#039;t panic!&#039;&#039;&#039; All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
:De-installation:&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
Once finished, there is no more part of ScoreLock on your system&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5358</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5358"/>
		<updated>2006-09-07T12:26:34Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development &lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;br /&gt;
&#039;&#039;&#039;Step by step&#039;&#039;&#039;&lt;br /&gt;
:Part 1: Block Installation&lt;br /&gt;
*Unpack the ScoreLock file&lt;br /&gt;
*Copy the content of the moodle folder into your moodle folder.&lt;br /&gt;
*Optional you may copy moodledata to your moodle data folder (contains german language files)&lt;br /&gt;
*Log in to your moodle site as administrator and access administration&lt;br /&gt;
*You should get a message of two tables to be installed&lt;br /&gt;
*If you access now the page for block setup you will notice a new block called ScoreLock&lt;br /&gt;
You may place this block into a course, but it wont do much, but remind you, that the installation is not finished yet.&lt;br /&gt;
: Part 2: Hack Installation&lt;br /&gt;
* In global block setup (admin &amp;gt; blocks) open settings of ScoreLock&lt;br /&gt;
*Check install&lt;br /&gt;
*Open any page, where you have added the ScoreLock block or add it right now.&lt;br /&gt;
*The installation is triggered and you receive a success message (or, hopefully not, an error message in the block).&lt;br /&gt;
*ScoreLock is now functional.&lt;br /&gt;
If anything went wrong:&lt;br /&gt;
I tested installation and de-installation by now about 50 times and it worked, but you never know ...&lt;br /&gt;
*Don&#039;t panic! All files are still on your server!&lt;br /&gt;
*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.&lt;br /&gt;
*To change back simply delete this four characters from the end of the file name.&lt;br /&gt;
*Do not forget to check global settings of the block ScoreLock to avoid another unwanted installation attempt.&lt;br /&gt;
:De-installation:&lt;br /&gt;
*Go to the block settings in admin and check de-install from the ScoreLock block.&lt;br /&gt;
*Access again any page with the ScoreLock block to trigger the de-installation of the hack.&lt;br /&gt;
*Once the hack is removed (see message on the block) you may delete the ScoreLock block at the global block settings.&lt;br /&gt;
*Do not forget to delete the folder scorelock from /moodle/blocks and the .scl files from /moodle/course and /moodle/lib&lt;br /&gt;
*Once finished, there is no more part of ScoreLock on your system&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5357</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5357"/>
		<updated>2006-09-07T12:00:46Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Score Lock for Moodle 1.6x */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
==Features==&lt;br /&gt;
Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development &lt;br /&gt;
==Major Changes==&lt;br /&gt;
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.&lt;br /&gt;
Score Lock includes a block, that is used for log control and installation.&lt;br /&gt;
==Open Issues==&lt;br /&gt;
There is still a problem, that I have not figured yet:&lt;br /&gt;
: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.&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
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.&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4071</id>
		<title>Activity Locking</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4071"/>
		<updated>2006-09-01T06:27:58Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* AL Branch 2.4 for Moodle 1.6 (John Gschnaidner) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
This page is an attempt to consolidate and explain the available activity locking (AL) code that is present for Moodle 1.5.x and 1.6.x. This page will hopefully help explain all the available versions and their respective features. Some of the reference here will overlap with the existing MoodleDoc page covering [[Conditional activities]]. &lt;br /&gt;
&lt;br /&gt;
Please be patient as this page is new and under development.  See page comments for reference material.&lt;br /&gt;
&lt;br /&gt;
=Types of activity locking code=&lt;br /&gt;
For the purpose of this MoodleDoc article: AL is any code that allows the user to make decisions on the next available resource or item the student will be able to use based on student events or quiz performance. There is some activity locking code that is very quick and dirty to simply lock future activities and then there is much more complex code based on the conditional activity though structure which attempts to progress the student through the course in a thought out progression based on activities and performance. Again we hope to clarify some of this here.&lt;br /&gt;
&lt;br /&gt;
==AL Branch 0.1 (Bernard Boucher)==&lt;br /&gt;
Bernard started all this with a hack to lock quiz and resources in [http://moodle.org/mod/forum/discuss.php?d=2948#12825 october 2003]. The certificate based on a quiz score was added in [http://moodle.org/mod/forum/discuss.php?d=9766#59875 september 2004] with version 0.7.  It was a great start!&lt;br /&gt;
&lt;br /&gt;
== AL Branch 2.0 for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
*This has been virtually a complete rewrite and as such there are areas of functionality the were available in older versions of AL that are not in this.    &lt;br /&gt;
&lt;br /&gt;
* Conditional locking: Lock based on a user&#039;s performance in previous activities. You can also choose to unlock and activity if a user scores less than a certain grade.&lt;br /&gt;
* Show activity completion: The checkbox that appears before each activity to show it have been done.&lt;br /&gt;
* A variation on this  also hides future activities, see AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch) below.&lt;br /&gt;
* Bernard Boucher reworked Stuart&#039;s version for Moolde 1.6, initially on June 20, 2006 and updated on July 10, 2006 posted [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip &#039;&#039;&#039;Activity Locking V 2.0 for Moodle 1.6&#039;&#039;&#039;] on [http://moodle.org/mod/forum/discuss.php?d=46863#220125 Activity Locking v3 or v2 for testing only].&lt;br /&gt;
&lt;br /&gt;
===Installation for 2.1 for Moodle 1.6(Stuart Mayor)===&lt;br /&gt;
&#039;&#039;&#039;activitylocking20051201.zip&#039;&#039;&#039; the initial version&lt;br /&gt;
&lt;br /&gt;
* Firstly, you need the stable build of Moodle 1.6. This version of AL might work on earlier releases but I didn&#039;t write it with them in mind and I certainly can&#039;t support them.&lt;br /&gt;
Next, you need to modify one table in the database and add a new one (I use phpmyadmin for this). &lt;br /&gt;
&lt;br /&gt;
* The table you need to modify is mdl_course_modules and you need to add the following fields:&lt;br /&gt;
completedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
completedscore VARCHAR(255) NOT NULL&lt;br /&gt;
completedstyle VARCHAR(255) NOT NULL&lt;br /&gt;
lockedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
lockedstyle VARCHAR(255) NOT NULL DEFAULT &#039;locked&#039;&lt;br /&gt;
lockedvisible TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
delay INT(10) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
&lt;br /&gt;
* The table you need to create is as follows:&lt;br /&gt;
CREATE TABLE `mdl_course_locks` (&lt;br /&gt;
`id` int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
`courseid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locktype` varchar(10) NOT NULL default &#039;&#039;,&lt;br /&gt;
`targetid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locks` longtext NOT NULL,&lt;br /&gt;
PRIMARY KEY (`id`)&lt;br /&gt;
) TYPE=MyISAM COMMENT=&#039;Contains locks for sections and modules&#039;;&lt;br /&gt;
* Lastly, you need to copy the following files from the zip file:&lt;br /&gt;
lib/moodlelib.php to moodle/lib/moodlelib.php&lt;br /&gt;
lib/locklib.php to moodle/lib/locklib.php&lt;br /&gt;
course/lib.php to moodle/course/lib.php&lt;br /&gt;
course/lock.php to moodle/course/lock.php&lt;br /&gt;
course/mod.php to moodle/course/mod.php&lt;br /&gt;
course/settings.html to moodle/course/settings.html&lt;br /&gt;
pix/t/open.gif to moodle/pix/t/open.gif&lt;br /&gt;
pix/t/closed.gif to moodle/pix/t/closed.gif&lt;br /&gt;
lang/en/lock.php to moodle/lang/en/lock.php&lt;br /&gt;
&lt;br /&gt;
==AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch and others)==&lt;br /&gt;
John&#039;s versionincludes the settings tab--making it possible to set the hide/visible options, as well as the completion (a checkmark in front of a resource/activity) options, says Chardelle.  &lt;br /&gt;
* A variation on  Stuart Mayor&#039;s 2.1, it hides topics dependent upon conditions set on specific activities/resources  &#039;&#039;&#039;ALV2_1_debug.ZIP&#039;&#039;&#039; (John). Had bug which Benard tweaked out.&lt;br /&gt;
* A build of Stuarts Mayor&#039;s 2.1 it locks and/or hides specific activities depending upon conditions set on specific activities/resources. Was posted by Chardelle in [http://proemployees.com/ActivityLockingWithHide-1.6.zip &#039;&#039;&#039;ActivityLockingWithHide-1.6.zip&#039;&#039;&#039;]. Probably same as above. Had bug which Benard tweaked out.&lt;br /&gt;
* A tweak by Bernard Boucher on June 27, 2006 was posted [http://moodle.org/mod/forum/discuss.php?d=35488&amp;amp;parent=222516 moodle/lib/locklib.php file] and called &#039;&#039;&#039;locklib.zip&#039;&#039;&#039; seems to fix known bug in both the above downloads.&lt;br /&gt;
==AL Branch 2.4 for Moodle 1.6 (John Gschnaidner)==&lt;br /&gt;
Further development of the 2.2 as a hack (no installation function).&lt;br /&gt;
:&lt;br /&gt;
&#039;&#039;&#039;WARNING:&#039;&#039;&#039;&lt;br /&gt;
:Because of some changes, this version may &#039;&#039;&#039;not&#039;&#039;&#039; be completely compatible to previous versions!&lt;br /&gt;
Status:&lt;br /&gt;
:Released, but you still should try it &#039;&#039;&#039;before&#039;&#039;&#039; implementing it on a production server.&lt;br /&gt;
:&lt;br /&gt;
In this version:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&lt;br /&gt;
==AL Branch 3.s for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
Similar to the 2.x versions. Major difference is that a question to the student unlocks activities.  Being actively developed and tested.&lt;br /&gt;
&lt;br /&gt;
==CA Branch 1.0 for Moodle 1.5.2 (Borja Rubio Reyes)==&lt;br /&gt;
Details and discussed in the thread &amp;quot;[http://moodle.org/mod/forum/discuss.php?d=36697 NEW research on CONDITIONAL ACTIVITIES in Moodle]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Score Lock for Moodle 1.6x (John Gschnaidner)==&lt;br /&gt;
As announced, this is a ongoing development for Activity Locking v2.4, with a couple of new features.&lt;br /&gt;
For further information please refer to&lt;br /&gt;
:&amp;quot;[https://docs.moodle.org/en/Score_Lock moodle Docs: &#039;&#039;&#039;Score Lock&#039;&#039;&#039;]&amp;quot;&lt;br /&gt;
Score Lock is scheduled for beta release until middle of September 2006.&lt;br /&gt;
&lt;br /&gt;
= Table of Versions, to be completed... =&lt;br /&gt;
{| border=&amp;quot;3&amp;quot; padding=&amp;quot;4&amp;quot;&lt;br /&gt;
|+ Activity Locking updated 10 July 2006 17:50 EDT&lt;br /&gt;
! -Version-  &lt;br /&gt;
! Moodle version&lt;br /&gt;
! Who&lt;br /&gt;
! Status&lt;br /&gt;
! MySql Install&lt;br /&gt;
! Docs&lt;br /&gt;
! Download&lt;br /&gt;
! Teacher Interface &lt;br /&gt;
! Hide Option&lt;br /&gt;
! Completion Box Option&lt;br /&gt;
! Section Lock &lt;br /&gt;
! Quiz Question &lt;br /&gt;
! Comments &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Bug &lt;br /&gt;
! Bug &lt;br /&gt;
|-----&lt;br /&gt;
| AL 3.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| not finished&lt;br /&gt;
|&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=46863]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/214752/Activity_Locking_20060317.7z]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.4&lt;br /&gt;
| 1.6&lt;br /&gt;
| John Gschnaidner&lt;br /&gt;
| released&lt;br /&gt;
| manual&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=50835]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/241994/ALv2.4.7z]&lt;br /&gt;
| Tabs&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.3&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=35488]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/164285/activitylocking20051201.zip]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| A/R/T dep on A/Rs&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.2&lt;br /&gt;
| 1.6&lt;br /&gt;
| Gschnaidner, Mayor, Busch&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=47906]&lt;br /&gt;
| [http://proemployees.com/ActivityLockingWithHide-1.6.zip]&lt;br /&gt;
| Tabs&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| almost&lt;br /&gt;
| A/R dep on A/Rs&lt;br /&gt;
| +Hide&lt;br /&gt;
|&lt;br /&gt;
| bug fix&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.0&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor, Bernard Boucher&lt;br /&gt;
| Updated&lt;br /&gt;
| Automatic&lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=31627#152788]&lt;br /&gt;
| [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip]&lt;br /&gt;
| Padlock Icons&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| see above&lt;br /&gt;
|-----&lt;br /&gt;
| C A 1.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Borja Rubio Reyes, David Delgado&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=36697]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=General installation instructions DRAFT=&lt;br /&gt;
Installing AL on a localhost (desktop) machine was not difficult!  Some months ago I must have downloaded and connected phpAdministration and that came in handy for step 6.   I just did a conversion and it took me less than 30 minutes (actually I think the AL part was done in 3 minutes ) because I wanted to install the latest version of Moodle 1.6 and then zipped my entire Moodle16 file structure before I attempted the AL installation.&lt;br /&gt;
*1. Perform any backups you think are necessary (I zipped everything in my localhost path).&lt;br /&gt;
*2. Select the zip file flavor of AL you want and download it (I used Chardelle&#039;s zip plus Bernards tweak found in 2.2 above)&lt;br /&gt;
*3. Unzip it to a non Moodle place.  (Like to keep the folder structures option)&lt;br /&gt;
*4. Locate the MySQL.sql file so you can find it again.&lt;br /&gt;
*5. In Moodle as admin, go to Administration, Configuration and turn on Maintence Mode.&lt;br /&gt;
*6. Go to Administration, Database. In the home query window, on the left, click on moodle (mine says Moodle16 and has a bunch of mdl_ listings under it). &lt;br /&gt;
*7. Best: Click on the SQL tab. In the location of the text file, browse to the file in #4, then click go.&lt;br /&gt;
*7. Alternative: use the MySQL document and make or changes in &lt;br /&gt;
*8. Leave Moodle, shut that browser window.&lt;br /&gt;
*9.  Now you need to move the files in the folders located in #3 to your Moodle file structure.   (See my tip below). In your non moodle area you have unpack the file to a folder called ActivityLockingWithHide.  It has a folder called Moodle in it, with sub folders under it, for example ActivityLockingWithHide\Moodle\Course.  You should copy ever file from there to your local host file structure in the same spot. (Mine is Moodle16\Moodle\Course ).&lt;br /&gt;
*10. Go back into Moodle, log in as Admin, go to Administration. Moodle will adjust itself.&lt;br /&gt;
*11 Check in Administration, Configuration, Maintence to make sure it is disabled.  &lt;br /&gt;
*12.  You are done, check out a lesson with weeks or topics, go to lesson settings and notice the new tabs.&lt;br /&gt;
* TIP?   There is probably a slicker way but after I unzipped the file in #3, I went down a level and zipped the Moodle folder.  Then I unpacked the files to Moodle16\, told the unzip program to keep the folder structure and overwrite existing files.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
*[[Adding_activity_locks]] will give the reader an idea of what one of the flavors of Activity Locking looks like for a student and teacher setting it up.  &lt;br /&gt;
&lt;br /&gt;
Please visit the Moodle Forum for more information concerning Activity Locking and Conditional Activities-&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=35488#220984:  AL v2.1-M1.6] titled Activity Locking v2.1 (for Moodle 1.6)&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=46863:  AL v3.0-Mx] titled Activity Locking v3&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36697 AL v3.0-DD] titled NEW research on CONDITIONAL ACTIVITIES in Moodle&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=31627&amp;amp;parent=152788: AL v2.1 LALR]  titled Latest Activity Locking Release started 19 October 2005&lt;br /&gt;
* http://moodle.org/mod/forum/view.php?id=4295&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=47906&amp;amp;parent=221613 AL v2.1 wH1.6] titled Re: Certificate for 1.6 with security in Activity Modules forum&lt;br /&gt;
&lt;br /&gt;
There is a very specialized-limited type of activity locking under a lesson (activity) setting called dependency in 1.6.   See: *https://docs.moodle.org/en/Adding/editing_a_lesson#Dependent_on .&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4070</id>
		<title>Activity Locking</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4070"/>
		<updated>2006-09-01T06:27:22Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* AL Branch 2.4 for Moodle 1.6 (John Gschnaidner) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
This page is an attempt to consolidate and explain the available activity locking (AL) code that is present for Moodle 1.5.x and 1.6.x. This page will hopefully help explain all the available versions and their respective features. Some of the reference here will overlap with the existing MoodleDoc page covering [[Conditional activities]]. &lt;br /&gt;
&lt;br /&gt;
Please be patient as this page is new and under development.  See page comments for reference material.&lt;br /&gt;
&lt;br /&gt;
=Types of activity locking code=&lt;br /&gt;
For the purpose of this MoodleDoc article: AL is any code that allows the user to make decisions on the next available resource or item the student will be able to use based on student events or quiz performance. There is some activity locking code that is very quick and dirty to simply lock future activities and then there is much more complex code based on the conditional activity though structure which attempts to progress the student through the course in a thought out progression based on activities and performance. Again we hope to clarify some of this here.&lt;br /&gt;
&lt;br /&gt;
==AL Branch 0.1 (Bernard Boucher)==&lt;br /&gt;
Bernard started all this with a hack to lock quiz and resources in [http://moodle.org/mod/forum/discuss.php?d=2948#12825 october 2003]. The certificate based on a quiz score was added in [http://moodle.org/mod/forum/discuss.php?d=9766#59875 september 2004] with version 0.7.  It was a great start!&lt;br /&gt;
&lt;br /&gt;
== AL Branch 2.0 for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
*This has been virtually a complete rewrite and as such there are areas of functionality the were available in older versions of AL that are not in this.    &lt;br /&gt;
&lt;br /&gt;
* Conditional locking: Lock based on a user&#039;s performance in previous activities. You can also choose to unlock and activity if a user scores less than a certain grade.&lt;br /&gt;
* Show activity completion: The checkbox that appears before each activity to show it have been done.&lt;br /&gt;
* A variation on this  also hides future activities, see AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch) below.&lt;br /&gt;
* Bernard Boucher reworked Stuart&#039;s version for Moolde 1.6, initially on June 20, 2006 and updated on July 10, 2006 posted [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip &#039;&#039;&#039;Activity Locking V 2.0 for Moodle 1.6&#039;&#039;&#039;] on [http://moodle.org/mod/forum/discuss.php?d=46863#220125 Activity Locking v3 or v2 for testing only].&lt;br /&gt;
&lt;br /&gt;
===Installation for 2.1 for Moodle 1.6(Stuart Mayor)===&lt;br /&gt;
&#039;&#039;&#039;activitylocking20051201.zip&#039;&#039;&#039; the initial version&lt;br /&gt;
&lt;br /&gt;
* Firstly, you need the stable build of Moodle 1.6. This version of AL might work on earlier releases but I didn&#039;t write it with them in mind and I certainly can&#039;t support them.&lt;br /&gt;
Next, you need to modify one table in the database and add a new one (I use phpmyadmin for this). &lt;br /&gt;
&lt;br /&gt;
* The table you need to modify is mdl_course_modules and you need to add the following fields:&lt;br /&gt;
completedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
completedscore VARCHAR(255) NOT NULL&lt;br /&gt;
completedstyle VARCHAR(255) NOT NULL&lt;br /&gt;
lockedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
lockedstyle VARCHAR(255) NOT NULL DEFAULT &#039;locked&#039;&lt;br /&gt;
lockedvisible TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
delay INT(10) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
&lt;br /&gt;
* The table you need to create is as follows:&lt;br /&gt;
CREATE TABLE `mdl_course_locks` (&lt;br /&gt;
`id` int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
`courseid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locktype` varchar(10) NOT NULL default &#039;&#039;,&lt;br /&gt;
`targetid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locks` longtext NOT NULL,&lt;br /&gt;
PRIMARY KEY (`id`)&lt;br /&gt;
) TYPE=MyISAM COMMENT=&#039;Contains locks for sections and modules&#039;;&lt;br /&gt;
* Lastly, you need to copy the following files from the zip file:&lt;br /&gt;
lib/moodlelib.php to moodle/lib/moodlelib.php&lt;br /&gt;
lib/locklib.php to moodle/lib/locklib.php&lt;br /&gt;
course/lib.php to moodle/course/lib.php&lt;br /&gt;
course/lock.php to moodle/course/lock.php&lt;br /&gt;
course/mod.php to moodle/course/mod.php&lt;br /&gt;
course/settings.html to moodle/course/settings.html&lt;br /&gt;
pix/t/open.gif to moodle/pix/t/open.gif&lt;br /&gt;
pix/t/closed.gif to moodle/pix/t/closed.gif&lt;br /&gt;
lang/en/lock.php to moodle/lang/en/lock.php&lt;br /&gt;
&lt;br /&gt;
==AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch and others)==&lt;br /&gt;
John&#039;s versionincludes the settings tab--making it possible to set the hide/visible options, as well as the completion (a checkmark in front of a resource/activity) options, says Chardelle.  &lt;br /&gt;
* A variation on  Stuart Mayor&#039;s 2.1, it hides topics dependent upon conditions set on specific activities/resources  &#039;&#039;&#039;ALV2_1_debug.ZIP&#039;&#039;&#039; (John). Had bug which Benard tweaked out.&lt;br /&gt;
* A build of Stuarts Mayor&#039;s 2.1 it locks and/or hides specific activities depending upon conditions set on specific activities/resources. Was posted by Chardelle in [http://proemployees.com/ActivityLockingWithHide-1.6.zip &#039;&#039;&#039;ActivityLockingWithHide-1.6.zip&#039;&#039;&#039;]. Probably same as above. Had bug which Benard tweaked out.&lt;br /&gt;
* A tweak by Bernard Boucher on June 27, 2006 was posted [http://moodle.org/mod/forum/discuss.php?d=35488&amp;amp;parent=222516 moodle/lib/locklib.php file] and called &#039;&#039;&#039;locklib.zip&#039;&#039;&#039; seems to fix known bug in both the above downloads.&lt;br /&gt;
==AL Branch 2.4 for Moodle 1.6 (John Gschnaidner)==&lt;br /&gt;
Further development of the 2.2 as a hack (no installation function).&lt;br /&gt;
:&lt;br /&gt;
&#039;&#039;&#039;WARNING:&#039;&#039;&#039;&lt;br /&gt;
:Because of some changes, this version may &#039;&#039;&#039;not&#039;&#039;&#039; be completely compatible to previous versions!&lt;br /&gt;
Status:&lt;br /&gt;
:Released, but you still should try it &#039;&#039;&#039;before&#039;&#039;&#039; implementing it on a production server.&lt;br /&gt;
:In this version:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&lt;br /&gt;
==AL Branch 3.s for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
Similar to the 2.x versions. Major difference is that a question to the student unlocks activities.  Being actively developed and tested.&lt;br /&gt;
&lt;br /&gt;
==CA Branch 1.0 for Moodle 1.5.2 (Borja Rubio Reyes)==&lt;br /&gt;
Details and discussed in the thread &amp;quot;[http://moodle.org/mod/forum/discuss.php?d=36697 NEW research on CONDITIONAL ACTIVITIES in Moodle]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Score Lock for Moodle 1.6x (John Gschnaidner)==&lt;br /&gt;
As announced, this is a ongoing development for Activity Locking v2.4, with a couple of new features.&lt;br /&gt;
For further information please refer to&lt;br /&gt;
:&amp;quot;[https://docs.moodle.org/en/Score_Lock moodle Docs: &#039;&#039;&#039;Score Lock&#039;&#039;&#039;]&amp;quot;&lt;br /&gt;
Score Lock is scheduled for beta release until middle of September 2006.&lt;br /&gt;
&lt;br /&gt;
= Table of Versions, to be completed... =&lt;br /&gt;
{| border=&amp;quot;3&amp;quot; padding=&amp;quot;4&amp;quot;&lt;br /&gt;
|+ Activity Locking updated 10 July 2006 17:50 EDT&lt;br /&gt;
! -Version-  &lt;br /&gt;
! Moodle version&lt;br /&gt;
! Who&lt;br /&gt;
! Status&lt;br /&gt;
! MySql Install&lt;br /&gt;
! Docs&lt;br /&gt;
! Download&lt;br /&gt;
! Teacher Interface &lt;br /&gt;
! Hide Option&lt;br /&gt;
! Completion Box Option&lt;br /&gt;
! Section Lock &lt;br /&gt;
! Quiz Question &lt;br /&gt;
! Comments &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Bug &lt;br /&gt;
! Bug &lt;br /&gt;
|-----&lt;br /&gt;
| AL 3.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| not finished&lt;br /&gt;
|&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=46863]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/214752/Activity_Locking_20060317.7z]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.4&lt;br /&gt;
| 1.6&lt;br /&gt;
| John Gschnaidner&lt;br /&gt;
| released&lt;br /&gt;
| manual&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=50835]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/241994/ALv2.4.7z]&lt;br /&gt;
| Tabs&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.3&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=35488]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/164285/activitylocking20051201.zip]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| A/R/T dep on A/Rs&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.2&lt;br /&gt;
| 1.6&lt;br /&gt;
| Gschnaidner, Mayor, Busch&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=47906]&lt;br /&gt;
| [http://proemployees.com/ActivityLockingWithHide-1.6.zip]&lt;br /&gt;
| Tabs&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| almost&lt;br /&gt;
| A/R dep on A/Rs&lt;br /&gt;
| +Hide&lt;br /&gt;
|&lt;br /&gt;
| bug fix&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.0&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor, Bernard Boucher&lt;br /&gt;
| Updated&lt;br /&gt;
| Automatic&lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=31627#152788]&lt;br /&gt;
| [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip]&lt;br /&gt;
| Padlock Icons&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| see above&lt;br /&gt;
|-----&lt;br /&gt;
| C A 1.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Borja Rubio Reyes, David Delgado&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=36697]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=General installation instructions DRAFT=&lt;br /&gt;
Installing AL on a localhost (desktop) machine was not difficult!  Some months ago I must have downloaded and connected phpAdministration and that came in handy for step 6.   I just did a conversion and it took me less than 30 minutes (actually I think the AL part was done in 3 minutes ) because I wanted to install the latest version of Moodle 1.6 and then zipped my entire Moodle16 file structure before I attempted the AL installation.&lt;br /&gt;
*1. Perform any backups you think are necessary (I zipped everything in my localhost path).&lt;br /&gt;
*2. Select the zip file flavor of AL you want and download it (I used Chardelle&#039;s zip plus Bernards tweak found in 2.2 above)&lt;br /&gt;
*3. Unzip it to a non Moodle place.  (Like to keep the folder structures option)&lt;br /&gt;
*4. Locate the MySQL.sql file so you can find it again.&lt;br /&gt;
*5. In Moodle as admin, go to Administration, Configuration and turn on Maintence Mode.&lt;br /&gt;
*6. Go to Administration, Database. In the home query window, on the left, click on moodle (mine says Moodle16 and has a bunch of mdl_ listings under it). &lt;br /&gt;
*7. Best: Click on the SQL tab. In the location of the text file, browse to the file in #4, then click go.&lt;br /&gt;
*7. Alternative: use the MySQL document and make or changes in &lt;br /&gt;
*8. Leave Moodle, shut that browser window.&lt;br /&gt;
*9.  Now you need to move the files in the folders located in #3 to your Moodle file structure.   (See my tip below). In your non moodle area you have unpack the file to a folder called ActivityLockingWithHide.  It has a folder called Moodle in it, with sub folders under it, for example ActivityLockingWithHide\Moodle\Course.  You should copy ever file from there to your local host file structure in the same spot. (Mine is Moodle16\Moodle\Course ).&lt;br /&gt;
*10. Go back into Moodle, log in as Admin, go to Administration. Moodle will adjust itself.&lt;br /&gt;
*11 Check in Administration, Configuration, Maintence to make sure it is disabled.  &lt;br /&gt;
*12.  You are done, check out a lesson with weeks or topics, go to lesson settings and notice the new tabs.&lt;br /&gt;
* TIP?   There is probably a slicker way but after I unzipped the file in #3, I went down a level and zipped the Moodle folder.  Then I unpacked the files to Moodle16\, told the unzip program to keep the folder structure and overwrite existing files.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
*[[Adding_activity_locks]] will give the reader an idea of what one of the flavors of Activity Locking looks like for a student and teacher setting it up.  &lt;br /&gt;
&lt;br /&gt;
Please visit the Moodle Forum for more information concerning Activity Locking and Conditional Activities-&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=35488#220984:  AL v2.1-M1.6] titled Activity Locking v2.1 (for Moodle 1.6)&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=46863:  AL v3.0-Mx] titled Activity Locking v3&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36697 AL v3.0-DD] titled NEW research on CONDITIONAL ACTIVITIES in Moodle&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=31627&amp;amp;parent=152788: AL v2.1 LALR]  titled Latest Activity Locking Release started 19 October 2005&lt;br /&gt;
* http://moodle.org/mod/forum/view.php?id=4295&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=47906&amp;amp;parent=221613 AL v2.1 wH1.6] titled Re: Certificate for 1.6 with security in Activity Modules forum&lt;br /&gt;
&lt;br /&gt;
There is a very specialized-limited type of activity locking under a lesson (activity) setting called dependency in 1.6.   See: *https://docs.moodle.org/en/Adding/editing_a_lesson#Dependent_on .&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4069</id>
		<title>Activity Locking</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4069"/>
		<updated>2006-09-01T06:26:34Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Table of Versions, to be completed... */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
This page is an attempt to consolidate and explain the available activity locking (AL) code that is present for Moodle 1.5.x and 1.6.x. This page will hopefully help explain all the available versions and their respective features. Some of the reference here will overlap with the existing MoodleDoc page covering [[Conditional activities]]. &lt;br /&gt;
&lt;br /&gt;
Please be patient as this page is new and under development.  See page comments for reference material.&lt;br /&gt;
&lt;br /&gt;
=Types of activity locking code=&lt;br /&gt;
For the purpose of this MoodleDoc article: AL is any code that allows the user to make decisions on the next available resource or item the student will be able to use based on student events or quiz performance. There is some activity locking code that is very quick and dirty to simply lock future activities and then there is much more complex code based on the conditional activity though structure which attempts to progress the student through the course in a thought out progression based on activities and performance. Again we hope to clarify some of this here.&lt;br /&gt;
&lt;br /&gt;
==AL Branch 0.1 (Bernard Boucher)==&lt;br /&gt;
Bernard started all this with a hack to lock quiz and resources in [http://moodle.org/mod/forum/discuss.php?d=2948#12825 october 2003]. The certificate based on a quiz score was added in [http://moodle.org/mod/forum/discuss.php?d=9766#59875 september 2004] with version 0.7.  It was a great start!&lt;br /&gt;
&lt;br /&gt;
== AL Branch 2.0 for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
*This has been virtually a complete rewrite and as such there are areas of functionality the were available in older versions of AL that are not in this.    &lt;br /&gt;
&lt;br /&gt;
* Conditional locking: Lock based on a user&#039;s performance in previous activities. You can also choose to unlock and activity if a user scores less than a certain grade.&lt;br /&gt;
* Show activity completion: The checkbox that appears before each activity to show it have been done.&lt;br /&gt;
* A variation on this  also hides future activities, see AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch) below.&lt;br /&gt;
* Bernard Boucher reworked Stuart&#039;s version for Moolde 1.6, initially on June 20, 2006 and updated on July 10, 2006 posted [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip &#039;&#039;&#039;Activity Locking V 2.0 for Moodle 1.6&#039;&#039;&#039;] on [http://moodle.org/mod/forum/discuss.php?d=46863#220125 Activity Locking v3 or v2 for testing only].&lt;br /&gt;
&lt;br /&gt;
===Installation for 2.1 for Moodle 1.6(Stuart Mayor)===&lt;br /&gt;
&#039;&#039;&#039;activitylocking20051201.zip&#039;&#039;&#039; the initial version&lt;br /&gt;
&lt;br /&gt;
* Firstly, you need the stable build of Moodle 1.6. This version of AL might work on earlier releases but I didn&#039;t write it with them in mind and I certainly can&#039;t support them.&lt;br /&gt;
Next, you need to modify one table in the database and add a new one (I use phpmyadmin for this). &lt;br /&gt;
&lt;br /&gt;
* The table you need to modify is mdl_course_modules and you need to add the following fields:&lt;br /&gt;
completedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
completedscore VARCHAR(255) NOT NULL&lt;br /&gt;
completedstyle VARCHAR(255) NOT NULL&lt;br /&gt;
lockedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
lockedstyle VARCHAR(255) NOT NULL DEFAULT &#039;locked&#039;&lt;br /&gt;
lockedvisible TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
delay INT(10) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
&lt;br /&gt;
* The table you need to create is as follows:&lt;br /&gt;
CREATE TABLE `mdl_course_locks` (&lt;br /&gt;
`id` int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
`courseid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locktype` varchar(10) NOT NULL default &#039;&#039;,&lt;br /&gt;
`targetid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locks` longtext NOT NULL,&lt;br /&gt;
PRIMARY KEY (`id`)&lt;br /&gt;
) TYPE=MyISAM COMMENT=&#039;Contains locks for sections and modules&#039;;&lt;br /&gt;
* Lastly, you need to copy the following files from the zip file:&lt;br /&gt;
lib/moodlelib.php to moodle/lib/moodlelib.php&lt;br /&gt;
lib/locklib.php to moodle/lib/locklib.php&lt;br /&gt;
course/lib.php to moodle/course/lib.php&lt;br /&gt;
course/lock.php to moodle/course/lock.php&lt;br /&gt;
course/mod.php to moodle/course/mod.php&lt;br /&gt;
course/settings.html to moodle/course/settings.html&lt;br /&gt;
pix/t/open.gif to moodle/pix/t/open.gif&lt;br /&gt;
pix/t/closed.gif to moodle/pix/t/closed.gif&lt;br /&gt;
lang/en/lock.php to moodle/lang/en/lock.php&lt;br /&gt;
&lt;br /&gt;
==AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch and others)==&lt;br /&gt;
John&#039;s versionincludes the settings tab--making it possible to set the hide/visible options, as well as the completion (a checkmark in front of a resource/activity) options, says Chardelle.  &lt;br /&gt;
* A variation on  Stuart Mayor&#039;s 2.1, it hides topics dependent upon conditions set on specific activities/resources  &#039;&#039;&#039;ALV2_1_debug.ZIP&#039;&#039;&#039; (John). Had bug which Benard tweaked out.&lt;br /&gt;
* A build of Stuarts Mayor&#039;s 2.1 it locks and/or hides specific activities depending upon conditions set on specific activities/resources. Was posted by Chardelle in [http://proemployees.com/ActivityLockingWithHide-1.6.zip &#039;&#039;&#039;ActivityLockingWithHide-1.6.zip&#039;&#039;&#039;]. Probably same as above. Had bug which Benard tweaked out.&lt;br /&gt;
* A tweak by Bernard Boucher on June 27, 2006 was posted [http://moodle.org/mod/forum/discuss.php?d=35488&amp;amp;parent=222516 moodle/lib/locklib.php file] and called &#039;&#039;&#039;locklib.zip&#039;&#039;&#039; seems to fix known bug in both the above downloads.&lt;br /&gt;
==AL Branch 2.4 for Moodle 1.6 (John Gschnaidner)==&lt;br /&gt;
Further development of the 2.2 as a hack (no installation function).&lt;br /&gt;
:&lt;br /&gt;
&#039;&#039;&#039;WARNING:&#039;&#039;&#039;&lt;br /&gt;
:Because of some changes, this version may &#039;&#039;&#039;not&#039;&#039;&#039; be completely compatible to previous versions!&lt;br /&gt;
Status:&lt;br /&gt;
:Released, but better try it before implementing it on a production server.&lt;br /&gt;
:In this version:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&lt;br /&gt;
==AL Branch 3.s for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
Similar to the 2.x versions. Major difference is that a question to the student unlocks activities.  Being actively developed and tested.&lt;br /&gt;
&lt;br /&gt;
==CA Branch 1.0 for Moodle 1.5.2 (Borja Rubio Reyes)==&lt;br /&gt;
Details and discussed in the thread &amp;quot;[http://moodle.org/mod/forum/discuss.php?d=36697 NEW research on CONDITIONAL ACTIVITIES in Moodle]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Score Lock for Moodle 1.6x (John Gschnaidner)==&lt;br /&gt;
As announced, this is a ongoing development for Activity Locking v2.4, with a couple of new features.&lt;br /&gt;
For further information please refer to&lt;br /&gt;
:&amp;quot;[https://docs.moodle.org/en/Score_Lock moodle Docs: &#039;&#039;&#039;Score Lock&#039;&#039;&#039;]&amp;quot;&lt;br /&gt;
Score Lock is scheduled for beta release until middle of September 2006.&lt;br /&gt;
&lt;br /&gt;
= Table of Versions, to be completed... =&lt;br /&gt;
{| border=&amp;quot;3&amp;quot; padding=&amp;quot;4&amp;quot;&lt;br /&gt;
|+ Activity Locking updated 10 July 2006 17:50 EDT&lt;br /&gt;
! -Version-  &lt;br /&gt;
! Moodle version&lt;br /&gt;
! Who&lt;br /&gt;
! Status&lt;br /&gt;
! MySql Install&lt;br /&gt;
! Docs&lt;br /&gt;
! Download&lt;br /&gt;
! Teacher Interface &lt;br /&gt;
! Hide Option&lt;br /&gt;
! Completion Box Option&lt;br /&gt;
! Section Lock &lt;br /&gt;
! Quiz Question &lt;br /&gt;
! Comments &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Bug &lt;br /&gt;
! Bug &lt;br /&gt;
|-----&lt;br /&gt;
| AL 3.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| not finished&lt;br /&gt;
|&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=46863]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/214752/Activity_Locking_20060317.7z]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.4&lt;br /&gt;
| 1.6&lt;br /&gt;
| John Gschnaidner&lt;br /&gt;
| released&lt;br /&gt;
| manual&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=50835]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/241994/ALv2.4.7z]&lt;br /&gt;
| Tabs&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.3&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=35488]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/164285/activitylocking20051201.zip]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| A/R/T dep on A/Rs&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.2&lt;br /&gt;
| 1.6&lt;br /&gt;
| Gschnaidner, Mayor, Busch&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=47906]&lt;br /&gt;
| [http://proemployees.com/ActivityLockingWithHide-1.6.zip]&lt;br /&gt;
| Tabs&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| almost&lt;br /&gt;
| A/R dep on A/Rs&lt;br /&gt;
| +Hide&lt;br /&gt;
|&lt;br /&gt;
| bug fix&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.0&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor, Bernard Boucher&lt;br /&gt;
| Updated&lt;br /&gt;
| Automatic&lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=31627#152788]&lt;br /&gt;
| [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip]&lt;br /&gt;
| Padlock Icons&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| see above&lt;br /&gt;
|-----&lt;br /&gt;
| C A 1.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Borja Rubio Reyes, David Delgado&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=36697]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=General installation instructions DRAFT=&lt;br /&gt;
Installing AL on a localhost (desktop) machine was not difficult!  Some months ago I must have downloaded and connected phpAdministration and that came in handy for step 6.   I just did a conversion and it took me less than 30 minutes (actually I think the AL part was done in 3 minutes ) because I wanted to install the latest version of Moodle 1.6 and then zipped my entire Moodle16 file structure before I attempted the AL installation.&lt;br /&gt;
*1. Perform any backups you think are necessary (I zipped everything in my localhost path).&lt;br /&gt;
*2. Select the zip file flavor of AL you want and download it (I used Chardelle&#039;s zip plus Bernards tweak found in 2.2 above)&lt;br /&gt;
*3. Unzip it to a non Moodle place.  (Like to keep the folder structures option)&lt;br /&gt;
*4. Locate the MySQL.sql file so you can find it again.&lt;br /&gt;
*5. In Moodle as admin, go to Administration, Configuration and turn on Maintence Mode.&lt;br /&gt;
*6. Go to Administration, Database. In the home query window, on the left, click on moodle (mine says Moodle16 and has a bunch of mdl_ listings under it). &lt;br /&gt;
*7. Best: Click on the SQL tab. In the location of the text file, browse to the file in #4, then click go.&lt;br /&gt;
*7. Alternative: use the MySQL document and make or changes in &lt;br /&gt;
*8. Leave Moodle, shut that browser window.&lt;br /&gt;
*9.  Now you need to move the files in the folders located in #3 to your Moodle file structure.   (See my tip below). In your non moodle area you have unpack the file to a folder called ActivityLockingWithHide.  It has a folder called Moodle in it, with sub folders under it, for example ActivityLockingWithHide\Moodle\Course.  You should copy ever file from there to your local host file structure in the same spot. (Mine is Moodle16\Moodle\Course ).&lt;br /&gt;
*10. Go back into Moodle, log in as Admin, go to Administration. Moodle will adjust itself.&lt;br /&gt;
*11 Check in Administration, Configuration, Maintence to make sure it is disabled.  &lt;br /&gt;
*12.  You are done, check out a lesson with weeks or topics, go to lesson settings and notice the new tabs.&lt;br /&gt;
* TIP?   There is probably a slicker way but after I unzipped the file in #3, I went down a level and zipped the Moodle folder.  Then I unpacked the files to Moodle16\, told the unzip program to keep the folder structure and overwrite existing files.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
*[[Adding_activity_locks]] will give the reader an idea of what one of the flavors of Activity Locking looks like for a student and teacher setting it up.  &lt;br /&gt;
&lt;br /&gt;
Please visit the Moodle Forum for more information concerning Activity Locking and Conditional Activities-&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=35488#220984:  AL v2.1-M1.6] titled Activity Locking v2.1 (for Moodle 1.6)&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=46863:  AL v3.0-Mx] titled Activity Locking v3&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36697 AL v3.0-DD] titled NEW research on CONDITIONAL ACTIVITIES in Moodle&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=31627&amp;amp;parent=152788: AL v2.1 LALR]  titled Latest Activity Locking Release started 19 October 2005&lt;br /&gt;
* http://moodle.org/mod/forum/view.php?id=4295&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=47906&amp;amp;parent=221613 AL v2.1 wH1.6] titled Re: Certificate for 1.6 with security in Activity Modules forum&lt;br /&gt;
&lt;br /&gt;
There is a very specialized-limited type of activity locking under a lesson (activity) setting called dependency in 1.6.   See: *https://docs.moodle.org/en/Adding/editing_a_lesson#Dependent_on .&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4068</id>
		<title>Activity Locking</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4068"/>
		<updated>2006-09-01T06:20:18Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* AL Branch 2.4 for Moodle 1.6 (John Gschnaidner) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
This page is an attempt to consolidate and explain the available activity locking (AL) code that is present for Moodle 1.5.x and 1.6.x. This page will hopefully help explain all the available versions and their respective features. Some of the reference here will overlap with the existing MoodleDoc page covering [[Conditional activities]]. &lt;br /&gt;
&lt;br /&gt;
Please be patient as this page is new and under development.  See page comments for reference material.&lt;br /&gt;
&lt;br /&gt;
=Types of activity locking code=&lt;br /&gt;
For the purpose of this MoodleDoc article: AL is any code that allows the user to make decisions on the next available resource or item the student will be able to use based on student events or quiz performance. There is some activity locking code that is very quick and dirty to simply lock future activities and then there is much more complex code based on the conditional activity though structure which attempts to progress the student through the course in a thought out progression based on activities and performance. Again we hope to clarify some of this here.&lt;br /&gt;
&lt;br /&gt;
==AL Branch 0.1 (Bernard Boucher)==&lt;br /&gt;
Bernard started all this with a hack to lock quiz and resources in [http://moodle.org/mod/forum/discuss.php?d=2948#12825 october 2003]. The certificate based on a quiz score was added in [http://moodle.org/mod/forum/discuss.php?d=9766#59875 september 2004] with version 0.7.  It was a great start!&lt;br /&gt;
&lt;br /&gt;
== AL Branch 2.0 for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
*This has been virtually a complete rewrite and as such there are areas of functionality the were available in older versions of AL that are not in this.    &lt;br /&gt;
&lt;br /&gt;
* Conditional locking: Lock based on a user&#039;s performance in previous activities. You can also choose to unlock and activity if a user scores less than a certain grade.&lt;br /&gt;
* Show activity completion: The checkbox that appears before each activity to show it have been done.&lt;br /&gt;
* A variation on this  also hides future activities, see AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch) below.&lt;br /&gt;
* Bernard Boucher reworked Stuart&#039;s version for Moolde 1.6, initially on June 20, 2006 and updated on July 10, 2006 posted [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip &#039;&#039;&#039;Activity Locking V 2.0 for Moodle 1.6&#039;&#039;&#039;] on [http://moodle.org/mod/forum/discuss.php?d=46863#220125 Activity Locking v3 or v2 for testing only].&lt;br /&gt;
&lt;br /&gt;
===Installation for 2.1 for Moodle 1.6(Stuart Mayor)===&lt;br /&gt;
&#039;&#039;&#039;activitylocking20051201.zip&#039;&#039;&#039; the initial version&lt;br /&gt;
&lt;br /&gt;
* Firstly, you need the stable build of Moodle 1.6. This version of AL might work on earlier releases but I didn&#039;t write it with them in mind and I certainly can&#039;t support them.&lt;br /&gt;
Next, you need to modify one table in the database and add a new one (I use phpmyadmin for this). &lt;br /&gt;
&lt;br /&gt;
* The table you need to modify is mdl_course_modules and you need to add the following fields:&lt;br /&gt;
completedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
completedscore VARCHAR(255) NOT NULL&lt;br /&gt;
completedstyle VARCHAR(255) NOT NULL&lt;br /&gt;
lockedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
lockedstyle VARCHAR(255) NOT NULL DEFAULT &#039;locked&#039;&lt;br /&gt;
lockedvisible TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
delay INT(10) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
&lt;br /&gt;
* The table you need to create is as follows:&lt;br /&gt;
CREATE TABLE `mdl_course_locks` (&lt;br /&gt;
`id` int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
`courseid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locktype` varchar(10) NOT NULL default &#039;&#039;,&lt;br /&gt;
`targetid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locks` longtext NOT NULL,&lt;br /&gt;
PRIMARY KEY (`id`)&lt;br /&gt;
) TYPE=MyISAM COMMENT=&#039;Contains locks for sections and modules&#039;;&lt;br /&gt;
* Lastly, you need to copy the following files from the zip file:&lt;br /&gt;
lib/moodlelib.php to moodle/lib/moodlelib.php&lt;br /&gt;
lib/locklib.php to moodle/lib/locklib.php&lt;br /&gt;
course/lib.php to moodle/course/lib.php&lt;br /&gt;
course/lock.php to moodle/course/lock.php&lt;br /&gt;
course/mod.php to moodle/course/mod.php&lt;br /&gt;
course/settings.html to moodle/course/settings.html&lt;br /&gt;
pix/t/open.gif to moodle/pix/t/open.gif&lt;br /&gt;
pix/t/closed.gif to moodle/pix/t/closed.gif&lt;br /&gt;
lang/en/lock.php to moodle/lang/en/lock.php&lt;br /&gt;
&lt;br /&gt;
==AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch and others)==&lt;br /&gt;
John&#039;s versionincludes the settings tab--making it possible to set the hide/visible options, as well as the completion (a checkmark in front of a resource/activity) options, says Chardelle.  &lt;br /&gt;
* A variation on  Stuart Mayor&#039;s 2.1, it hides topics dependent upon conditions set on specific activities/resources  &#039;&#039;&#039;ALV2_1_debug.ZIP&#039;&#039;&#039; (John). Had bug which Benard tweaked out.&lt;br /&gt;
* A build of Stuarts Mayor&#039;s 2.1 it locks and/or hides specific activities depending upon conditions set on specific activities/resources. Was posted by Chardelle in [http://proemployees.com/ActivityLockingWithHide-1.6.zip &#039;&#039;&#039;ActivityLockingWithHide-1.6.zip&#039;&#039;&#039;]. Probably same as above. Had bug which Benard tweaked out.&lt;br /&gt;
* A tweak by Bernard Boucher on June 27, 2006 was posted [http://moodle.org/mod/forum/discuss.php?d=35488&amp;amp;parent=222516 moodle/lib/locklib.php file] and called &#039;&#039;&#039;locklib.zip&#039;&#039;&#039; seems to fix known bug in both the above downloads.&lt;br /&gt;
==AL Branch 2.4 for Moodle 1.6 (John Gschnaidner)==&lt;br /&gt;
Further development of the 2.2 as a hack (no installation function).&lt;br /&gt;
:&lt;br /&gt;
&#039;&#039;&#039;WARNING:&#039;&#039;&#039;&lt;br /&gt;
:Because of some changes, this version may &#039;&#039;&#039;not&#039;&#039;&#039; be completely compatible to previous versions!&lt;br /&gt;
Status:&lt;br /&gt;
:Released, but better try it before implementing it on a production server.&lt;br /&gt;
:In this version:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&lt;br /&gt;
==AL Branch 3.s for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
Similar to the 2.x versions. Major difference is that a question to the student unlocks activities.  Being actively developed and tested.&lt;br /&gt;
&lt;br /&gt;
==CA Branch 1.0 for Moodle 1.5.2 (Borja Rubio Reyes)==&lt;br /&gt;
Details and discussed in the thread &amp;quot;[http://moodle.org/mod/forum/discuss.php?d=36697 NEW research on CONDITIONAL ACTIVITIES in Moodle]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Score Lock for Moodle 1.6x (John Gschnaidner)==&lt;br /&gt;
As announced, this is a ongoing development for Activity Locking v2.4, with a couple of new features.&lt;br /&gt;
For further information please refer to&lt;br /&gt;
:&amp;quot;[https://docs.moodle.org/en/Score_Lock moodle Docs: &#039;&#039;&#039;Score Lock&#039;&#039;&#039;]&amp;quot;&lt;br /&gt;
Score Lock is scheduled for beta release until middle of September 2006.&lt;br /&gt;
&lt;br /&gt;
= Table of Versions, to be completed... =&lt;br /&gt;
{| border=&amp;quot;3&amp;quot; padding=&amp;quot;4&amp;quot;&lt;br /&gt;
|+ Activity Locking updated 10 July 2006 17:50 EDT&lt;br /&gt;
! -Version-  &lt;br /&gt;
! Moodle version&lt;br /&gt;
! Who&lt;br /&gt;
! Status&lt;br /&gt;
! MySql Install&lt;br /&gt;
! Docs&lt;br /&gt;
! Download&lt;br /&gt;
! Teacher Interface &lt;br /&gt;
! Hide Option&lt;br /&gt;
! Completion Box Option&lt;br /&gt;
! Section Lock &lt;br /&gt;
! Quiz Question &lt;br /&gt;
! Comments &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Bug &lt;br /&gt;
! Bug &lt;br /&gt;
|-----&lt;br /&gt;
| AL 3.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| not finished&lt;br /&gt;
|&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=46863]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/214752/Activity_Locking_20060317.7z]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.4&lt;br /&gt;
| 1.6&lt;br /&gt;
| John Gschnaidner&lt;br /&gt;
| beta&lt;br /&gt;
| manual&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=50835]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/232191/ALv2.4beta.7z]&lt;br /&gt;
| Tabs&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.3&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=35488]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/164285/activitylocking20051201.zip]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| A/R/T dep on A/Rs&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.2&lt;br /&gt;
| 1.6&lt;br /&gt;
| Gschnaidner, Mayor, Busch&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=47906]&lt;br /&gt;
| [http://proemployees.com/ActivityLockingWithHide-1.6.zip]&lt;br /&gt;
| Tabs&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| almost&lt;br /&gt;
| A/R dep on A/Rs&lt;br /&gt;
| +Hide&lt;br /&gt;
|&lt;br /&gt;
| bug fix&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.0&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor, Bernard Boucher&lt;br /&gt;
| Updated&lt;br /&gt;
| Automatic&lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=31627#152788]&lt;br /&gt;
| [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip]&lt;br /&gt;
| Padlock Icons&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| see above&lt;br /&gt;
|-----&lt;br /&gt;
| C A 1.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Borja Rubio Reyes, David Delgado&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=36697]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=General installation instructions DRAFT=&lt;br /&gt;
Installing AL on a localhost (desktop) machine was not difficult!  Some months ago I must have downloaded and connected phpAdministration and that came in handy for step 6.   I just did a conversion and it took me less than 30 minutes (actually I think the AL part was done in 3 minutes ) because I wanted to install the latest version of Moodle 1.6 and then zipped my entire Moodle16 file structure before I attempted the AL installation.&lt;br /&gt;
*1. Perform any backups you think are necessary (I zipped everything in my localhost path).&lt;br /&gt;
*2. Select the zip file flavor of AL you want and download it (I used Chardelle&#039;s zip plus Bernards tweak found in 2.2 above)&lt;br /&gt;
*3. Unzip it to a non Moodle place.  (Like to keep the folder structures option)&lt;br /&gt;
*4. Locate the MySQL.sql file so you can find it again.&lt;br /&gt;
*5. In Moodle as admin, go to Administration, Configuration and turn on Maintence Mode.&lt;br /&gt;
*6. Go to Administration, Database. In the home query window, on the left, click on moodle (mine says Moodle16 and has a bunch of mdl_ listings under it). &lt;br /&gt;
*7. Best: Click on the SQL tab. In the location of the text file, browse to the file in #4, then click go.&lt;br /&gt;
*7. Alternative: use the MySQL document and make or changes in &lt;br /&gt;
*8. Leave Moodle, shut that browser window.&lt;br /&gt;
*9.  Now you need to move the files in the folders located in #3 to your Moodle file structure.   (See my tip below). In your non moodle area you have unpack the file to a folder called ActivityLockingWithHide.  It has a folder called Moodle in it, with sub folders under it, for example ActivityLockingWithHide\Moodle\Course.  You should copy ever file from there to your local host file structure in the same spot. (Mine is Moodle16\Moodle\Course ).&lt;br /&gt;
*10. Go back into Moodle, log in as Admin, go to Administration. Moodle will adjust itself.&lt;br /&gt;
*11 Check in Administration, Configuration, Maintence to make sure it is disabled.  &lt;br /&gt;
*12.  You are done, check out a lesson with weeks or topics, go to lesson settings and notice the new tabs.&lt;br /&gt;
* TIP?   There is probably a slicker way but after I unzipped the file in #3, I went down a level and zipped the Moodle folder.  Then I unpacked the files to Moodle16\, told the unzip program to keep the folder structure and overwrite existing files.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
*[[Adding_activity_locks]] will give the reader an idea of what one of the flavors of Activity Locking looks like for a student and teacher setting it up.  &lt;br /&gt;
&lt;br /&gt;
Please visit the Moodle Forum for more information concerning Activity Locking and Conditional Activities-&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=35488#220984:  AL v2.1-M1.6] titled Activity Locking v2.1 (for Moodle 1.6)&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=46863:  AL v3.0-Mx] titled Activity Locking v3&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36697 AL v3.0-DD] titled NEW research on CONDITIONAL ACTIVITIES in Moodle&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=31627&amp;amp;parent=152788: AL v2.1 LALR]  titled Latest Activity Locking Release started 19 October 2005&lt;br /&gt;
* http://moodle.org/mod/forum/view.php?id=4295&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=47906&amp;amp;parent=221613 AL v2.1 wH1.6] titled Re: Certificate for 1.6 with security in Activity Modules forum&lt;br /&gt;
&lt;br /&gt;
There is a very specialized-limited type of activity locking under a lesson (activity) setting called dependency in 1.6.   See: *https://docs.moodle.org/en/Adding/editing_a_lesson#Dependent_on .&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5356</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5356"/>
		<updated>2006-08-28T06:43:40Z</updated>

		<summary type="html">&lt;p&gt;John1mb: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
==Score Lock for Moodle 1.6x==&lt;br /&gt;
by John Gschnaidner&lt;br /&gt;
Currently I am developing a new 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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will have following features:&lt;br /&gt;
:Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
:&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development &lt;br /&gt;
&lt;br /&gt;
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 students entries of the course. I am planning on a function, where the teacher can select certain entries of students/activities to be deleted.&lt;br /&gt;
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.&lt;br /&gt;
There is still one issue:&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Score Lock is scheduled for beta release by middle of September 06 (or earlier, if I manage).&lt;br /&gt;
I hope, this contribution will help a couple of people, who grew a bit of gray hair over previous releases of Activity Locking.&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4067</id>
		<title>Activity Locking</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4067"/>
		<updated>2006-08-28T06:42:28Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* CA Branch 1.0 for Moodle 1.5.2 (Borja Rubio Reyes) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
This page is an attempt to consolidate and explain the available activity locking (AL) code that is present for Moodle 1.5.x and 1.6.x. This page will hopefully help explain all the available versions and their respective features. Some of the reference here will overlap with the existing MoodleDoc page covering [[Conditional activities]]. &lt;br /&gt;
&lt;br /&gt;
Please be patient as this page is new and under development.  See page comments for reference material.&lt;br /&gt;
&lt;br /&gt;
=Types of activity locking code=&lt;br /&gt;
For the purpose of this MoodleDoc article: AL is any code that allows the user to make decisions on the next available resource or item the student will be able to use based on student events or quiz performance. There is some activity locking code that is very quick and dirty to simply lock future activities and then there is much more complex code based on the conditional activity though structure which attempts to progress the student through the course in a thought out progression based on activities and performance. Again we hope to clarify some of this here.&lt;br /&gt;
&lt;br /&gt;
==AL Branch 0.1 (Bernard Boucher)==&lt;br /&gt;
Bernard started all this with a hack to lock quiz and resources in [http://moodle.org/mod/forum/discuss.php?d=2948#12825 october 2003]. The certificate based on a quiz score was added in [http://moodle.org/mod/forum/discuss.php?d=9766#59875 september 2004] with version 0.7.  It was a great start!&lt;br /&gt;
&lt;br /&gt;
== AL Branch 2.0 for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
*This has been virtually a complete rewrite and as such there are areas of functionality the were available in older versions of AL that are not in this.    &lt;br /&gt;
&lt;br /&gt;
* Conditional locking: Lock based on a user&#039;s performance in previous activities. You can also choose to unlock and activity if a user scores less than a certain grade.&lt;br /&gt;
* Show activity completion: The checkbox that appears before each activity to show it have been done.&lt;br /&gt;
* A variation on this  also hides future activities, see AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch) below.&lt;br /&gt;
* Bernard Boucher reworked Stuart&#039;s version for Moolde 1.6, initially on June 20, 2006 and updated on July 10, 2006 posted [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip &#039;&#039;&#039;Activity Locking V 2.0 for Moodle 1.6&#039;&#039;&#039;] on [http://moodle.org/mod/forum/discuss.php?d=46863#220125 Activity Locking v3 or v2 for testing only].&lt;br /&gt;
&lt;br /&gt;
===Installation for 2.1 for Moodle 1.6(Stuart Mayor)===&lt;br /&gt;
&#039;&#039;&#039;activitylocking20051201.zip&#039;&#039;&#039; the initial version&lt;br /&gt;
&lt;br /&gt;
* Firstly, you need the stable build of Moodle 1.6. This version of AL might work on earlier releases but I didn&#039;t write it with them in mind and I certainly can&#039;t support them.&lt;br /&gt;
Next, you need to modify one table in the database and add a new one (I use phpmyadmin for this). &lt;br /&gt;
&lt;br /&gt;
* The table you need to modify is mdl_course_modules and you need to add the following fields:&lt;br /&gt;
completedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
completedscore VARCHAR(255) NOT NULL&lt;br /&gt;
completedstyle VARCHAR(255) NOT NULL&lt;br /&gt;
lockedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
lockedstyle VARCHAR(255) NOT NULL DEFAULT &#039;locked&#039;&lt;br /&gt;
lockedvisible TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
delay INT(10) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
&lt;br /&gt;
* The table you need to create is as follows:&lt;br /&gt;
CREATE TABLE `mdl_course_locks` (&lt;br /&gt;
`id` int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
`courseid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locktype` varchar(10) NOT NULL default &#039;&#039;,&lt;br /&gt;
`targetid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locks` longtext NOT NULL,&lt;br /&gt;
PRIMARY KEY (`id`)&lt;br /&gt;
) TYPE=MyISAM COMMENT=&#039;Contains locks for sections and modules&#039;;&lt;br /&gt;
* Lastly, you need to copy the following files from the zip file:&lt;br /&gt;
lib/moodlelib.php to moodle/lib/moodlelib.php&lt;br /&gt;
lib/locklib.php to moodle/lib/locklib.php&lt;br /&gt;
course/lib.php to moodle/course/lib.php&lt;br /&gt;
course/lock.php to moodle/course/lock.php&lt;br /&gt;
course/mod.php to moodle/course/mod.php&lt;br /&gt;
course/settings.html to moodle/course/settings.html&lt;br /&gt;
pix/t/open.gif to moodle/pix/t/open.gif&lt;br /&gt;
pix/t/closed.gif to moodle/pix/t/closed.gif&lt;br /&gt;
lang/en/lock.php to moodle/lang/en/lock.php&lt;br /&gt;
&lt;br /&gt;
==AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch and others)==&lt;br /&gt;
John&#039;s versionincludes the settings tab--making it possible to set the hide/visible options, as well as the completion (a checkmark in front of a resource/activity) options, says Chardelle.  &lt;br /&gt;
* A variation on  Stuart Mayor&#039;s 2.1, it hides topics dependent upon conditions set on specific activities/resources  &#039;&#039;&#039;ALV2_1_debug.ZIP&#039;&#039;&#039; (John). Had bug which Benard tweaked out.&lt;br /&gt;
* A build of Stuarts Mayor&#039;s 2.1 it locks and/or hides specific activities depending upon conditions set on specific activities/resources. Was posted by Chardelle in [http://proemployees.com/ActivityLockingWithHide-1.6.zip &#039;&#039;&#039;ActivityLockingWithHide-1.6.zip&#039;&#039;&#039;]. Probably same as above. Had bug which Benard tweaked out.&lt;br /&gt;
* A tweak by Bernard Boucher on June 27, 2006 was posted [http://moodle.org/mod/forum/discuss.php?d=35488&amp;amp;parent=222516 moodle/lib/locklib.php file] and called &#039;&#039;&#039;locklib.zip&#039;&#039;&#039; seems to fix known bug in both the above downloads.&lt;br /&gt;
==AL Branch 2.4 for Moodle 1.6 (John Gschnaidner)==&lt;br /&gt;
Further development of the 2.2 as a hack (no installation function).&lt;br /&gt;
:&#039;&#039;&#039;WARNING:&#039;&#039;&#039;&lt;br /&gt;
:Because of some changes, this version may &#039;&#039;&#039;not&#039;&#039;&#039; be completely compatible to previous versions!&lt;br /&gt;
:&#039;&#039;&#039;Currently beta status!&#039;&#039;&#039;&lt;br /&gt;
:In this version:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&lt;br /&gt;
==AL Branch 3.s for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
Similar to the 2.x versions. Major difference is that a question to the student unlocks activities.  Being actively developed and tested.&lt;br /&gt;
&lt;br /&gt;
==CA Branch 1.0 for Moodle 1.5.2 (Borja Rubio Reyes)==&lt;br /&gt;
Details and discussed in the thread &amp;quot;[http://moodle.org/mod/forum/discuss.php?d=36697 NEW research on CONDITIONAL ACTIVITIES in Moodle]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Score Lock for Moodle 1.6x (John Gschnaidner)==&lt;br /&gt;
As announced, this is a ongoing development for Activity Locking v2.4, with a couple of new features.&lt;br /&gt;
For further information please refer to&lt;br /&gt;
:&amp;quot;[https://docs.moodle.org/en/Score_Lock moodle Docs: &#039;&#039;&#039;Score Lock&#039;&#039;&#039;]&amp;quot;&lt;br /&gt;
Score Lock is scheduled for beta release until middle of September 2006.&lt;br /&gt;
&lt;br /&gt;
= Table of Versions, to be completed... =&lt;br /&gt;
{| border=&amp;quot;3&amp;quot; padding=&amp;quot;4&amp;quot;&lt;br /&gt;
|+ Activity Locking updated 10 July 2006 17:50 EDT&lt;br /&gt;
! -Version-  &lt;br /&gt;
! Moodle version&lt;br /&gt;
! Who&lt;br /&gt;
! Status&lt;br /&gt;
! MySql Install&lt;br /&gt;
! Docs&lt;br /&gt;
! Download&lt;br /&gt;
! Teacher Interface &lt;br /&gt;
! Hide Option&lt;br /&gt;
! Completion Box Option&lt;br /&gt;
! Section Lock &lt;br /&gt;
! Quiz Question &lt;br /&gt;
! Comments &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Bug &lt;br /&gt;
! Bug &lt;br /&gt;
|-----&lt;br /&gt;
| AL 3.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| not finished&lt;br /&gt;
|&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=46863]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/214752/Activity_Locking_20060317.7z]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.4&lt;br /&gt;
| 1.6&lt;br /&gt;
| John Gschnaidner&lt;br /&gt;
| beta&lt;br /&gt;
| manual&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=50835]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/232191/ALv2.4beta.7z]&lt;br /&gt;
| Tabs&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.3&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=35488]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/164285/activitylocking20051201.zip]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| A/R/T dep on A/Rs&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.2&lt;br /&gt;
| 1.6&lt;br /&gt;
| Gschnaidner, Mayor, Busch&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=47906]&lt;br /&gt;
| [http://proemployees.com/ActivityLockingWithHide-1.6.zip]&lt;br /&gt;
| Tabs&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| almost&lt;br /&gt;
| A/R dep on A/Rs&lt;br /&gt;
| +Hide&lt;br /&gt;
|&lt;br /&gt;
| bug fix&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.0&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor, Bernard Boucher&lt;br /&gt;
| Updated&lt;br /&gt;
| Automatic&lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=31627#152788]&lt;br /&gt;
| [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip]&lt;br /&gt;
| Padlock Icons&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| see above&lt;br /&gt;
|-----&lt;br /&gt;
| C A 1.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Borja Rubio Reyes, David Delgado&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=36697]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=General installation instructions DRAFT=&lt;br /&gt;
Installing AL on a localhost (desktop) machine was not difficult!  Some months ago I must have downloaded and connected phpAdministration and that came in handy for step 6.   I just did a conversion and it took me less than 30 minutes (actually I think the AL part was done in 3 minutes ) because I wanted to install the latest version of Moodle 1.6 and then zipped my entire Moodle16 file structure before I attempted the AL installation.&lt;br /&gt;
*1. Perform any backups you think are necessary (I zipped everything in my localhost path).&lt;br /&gt;
*2. Select the zip file flavor of AL you want and download it (I used Chardelle&#039;s zip plus Bernards tweak found in 2.2 above)&lt;br /&gt;
*3. Unzip it to a non Moodle place.  (Like to keep the folder structures option)&lt;br /&gt;
*4. Locate the MySQL.sql file so you can find it again.&lt;br /&gt;
*5. In Moodle as admin, go to Administration, Configuration and turn on Maintence Mode.&lt;br /&gt;
*6. Go to Administration, Database. In the home query window, on the left, click on moodle (mine says Moodle16 and has a bunch of mdl_ listings under it). &lt;br /&gt;
*7. Best: Click on the SQL tab. In the location of the text file, browse to the file in #4, then click go.&lt;br /&gt;
*7. Alternative: use the MySQL document and make or changes in &lt;br /&gt;
*8. Leave Moodle, shut that browser window.&lt;br /&gt;
*9.  Now you need to move the files in the folders located in #3 to your Moodle file structure.   (See my tip below). In your non moodle area you have unpack the file to a folder called ActivityLockingWithHide.  It has a folder called Moodle in it, with sub folders under it, for example ActivityLockingWithHide\Moodle\Course.  You should copy ever file from there to your local host file structure in the same spot. (Mine is Moodle16\Moodle\Course ).&lt;br /&gt;
*10. Go back into Moodle, log in as Admin, go to Administration. Moodle will adjust itself.&lt;br /&gt;
*11 Check in Administration, Configuration, Maintence to make sure it is disabled.  &lt;br /&gt;
*12.  You are done, check out a lesson with weeks or topics, go to lesson settings and notice the new tabs.&lt;br /&gt;
* TIP?   There is probably a slicker way but after I unzipped the file in #3, I went down a level and zipped the Moodle folder.  Then I unpacked the files to Moodle16\, told the unzip program to keep the folder structure and overwrite existing files.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
*[[Adding_activity_locks]] will give the reader an idea of what one of the flavors of Activity Locking looks like for a student and teacher setting it up.  &lt;br /&gt;
&lt;br /&gt;
Please visit the Moodle Forum for more information concerning Activity Locking and Conditional Activities-&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=35488#220984:  AL v2.1-M1.6] titled Activity Locking v2.1 (for Moodle 1.6)&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=46863:  AL v3.0-Mx] titled Activity Locking v3&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36697 AL v3.0-DD] titled NEW research on CONDITIONAL ACTIVITIES in Moodle&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=31627&amp;amp;parent=152788: AL v2.1 LALR]  titled Latest Activity Locking Release started 19 October 2005&lt;br /&gt;
* http://moodle.org/mod/forum/view.php?id=4295&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=47906&amp;amp;parent=221613 AL v2.1 wH1.6] titled Re: Certificate for 1.6 with security in Activity Modules forum&lt;br /&gt;
&lt;br /&gt;
There is a very specialized-limited type of activity locking under a lesson (activity) setting called dependency in 1.6.   See: *https://docs.moodle.org/en/Adding/editing_a_lesson#Dependent_on .&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5355</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5355"/>
		<updated>2006-08-28T06:35:31Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Score Lock for Moodle 1.6x */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
==Score Lock for Moodle 1.6x==&lt;br /&gt;
by John Gschnaidner&lt;br /&gt;
Currently I am developing a new 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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will have following features:&lt;br /&gt;
:Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
:&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development &lt;br /&gt;
&lt;br /&gt;
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 students entries of the course. I am planning on a function, where the teacher can select certain entries of students/activities to be deleted.&lt;br /&gt;
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.&lt;br /&gt;
There is still one issue:&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Score Lock is scheduled for beta release by middle of September 06 (or earlier, if I manage).&lt;br /&gt;
I hope, this contribution will help a couple of people, who grew a bit of gray hair over previous releases of Activity Locking.&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5354</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5354"/>
		<updated>2006-08-28T06:34:36Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Score Lock for Moodle 1.6x */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
==Score Lock for Moodle 1.6x==&lt;br /&gt;
Currently I am developing a new 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:&lt;br /&gt;
:&#039;&#039;&#039;Score Lock&#039;&#039;&#039;&lt;br /&gt;
Score Lock will have following features:&lt;br /&gt;
:Already included as in ActivityLocking v2.4:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
:&#039;&#039;&#039;New features:&#039;&#039;&#039;&lt;br /&gt;
* Separate data base table instead of the log&lt;br /&gt;
* Block for deleting students log&lt;br /&gt;
* Install &#039;&#039;&#039;and de-install&#039;&#039;&#039; function&lt;br /&gt;
* Source code stored and published for further development &lt;br /&gt;
&lt;br /&gt;
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 students entries of the course. I am planning on a function, where the teacher can select certain entries of students/activities to be deleted.&lt;br /&gt;
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.&lt;br /&gt;
There is still one issue:&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Score Lock is scheduled for beta release by middle of September 06 (or earlier, if I manage).&lt;br /&gt;
I hope, this contribution will help a couple of people, who grew a bit of gray hair over previous releases of Activity Locking.&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5353</id>
		<title>Score lock</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Score_lock&amp;diff=5353"/>
		<updated>2006-08-28T06:02:51Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /*by John Gschnaidner*/&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
==Score Lock for Moodle 1.6x==&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4066</id>
		<title>Activity Locking</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4066"/>
		<updated>2006-08-28T05:57:45Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* AL Branch 3.s for Moodle 1.6 (Stuart Mayor) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
This page is an attempt to consolidate and explain the available activity locking (AL) code that is present for Moodle 1.5.x and 1.6.x. This page will hopefully help explain all the available versions and their respective features. Some of the reference here will overlap with the existing MoodleDoc page covering [[Conditional activities]]. &lt;br /&gt;
&lt;br /&gt;
Please be patient as this page is new and under development.  See page comments for reference material.&lt;br /&gt;
&lt;br /&gt;
=Types of activity locking code=&lt;br /&gt;
For the purpose of this MoodleDoc article: AL is any code that allows the user to make decisions on the next available resource or item the student will be able to use based on student events or quiz performance. There is some activity locking code that is very quick and dirty to simply lock future activities and then there is much more complex code based on the conditional activity though structure which attempts to progress the student through the course in a thought out progression based on activities and performance. Again we hope to clarify some of this here.&lt;br /&gt;
&lt;br /&gt;
==AL Branch 0.1 (Bernard Boucher)==&lt;br /&gt;
Bernard started all this with a hack to lock quiz and resources in [http://moodle.org/mod/forum/discuss.php?d=2948#12825 october 2003]. The certificate based on a quiz score was added in [http://moodle.org/mod/forum/discuss.php?d=9766#59875 september 2004] with version 0.7.  It was a great start!&lt;br /&gt;
&lt;br /&gt;
== AL Branch 2.0 for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
*This has been virtually a complete rewrite and as such there are areas of functionality the were available in older versions of AL that are not in this.    &lt;br /&gt;
&lt;br /&gt;
* Conditional locking: Lock based on a user&#039;s performance in previous activities. You can also choose to unlock and activity if a user scores less than a certain grade.&lt;br /&gt;
* Show activity completion: The checkbox that appears before each activity to show it have been done.&lt;br /&gt;
* A variation on this  also hides future activities, see AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch) below.&lt;br /&gt;
* Bernard Boucher reworked Stuart&#039;s version for Moolde 1.6, initially on June 20, 2006 and updated on July 10, 2006 posted [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip &#039;&#039;&#039;Activity Locking V 2.0 for Moodle 1.6&#039;&#039;&#039;] on [http://moodle.org/mod/forum/discuss.php?d=46863#220125 Activity Locking v3 or v2 for testing only].&lt;br /&gt;
&lt;br /&gt;
===Installation for 2.1 for Moodle 1.6(Stuart Mayor)===&lt;br /&gt;
&#039;&#039;&#039;activitylocking20051201.zip&#039;&#039;&#039; the initial version&lt;br /&gt;
&lt;br /&gt;
* Firstly, you need the stable build of Moodle 1.6. This version of AL might work on earlier releases but I didn&#039;t write it with them in mind and I certainly can&#039;t support them.&lt;br /&gt;
Next, you need to modify one table in the database and add a new one (I use phpmyadmin for this). &lt;br /&gt;
&lt;br /&gt;
* The table you need to modify is mdl_course_modules and you need to add the following fields:&lt;br /&gt;
completedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
completedscore VARCHAR(255) NOT NULL&lt;br /&gt;
completedstyle VARCHAR(255) NOT NULL&lt;br /&gt;
lockedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
lockedstyle VARCHAR(255) NOT NULL DEFAULT &#039;locked&#039;&lt;br /&gt;
lockedvisible TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
delay INT(10) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
&lt;br /&gt;
* The table you need to create is as follows:&lt;br /&gt;
CREATE TABLE `mdl_course_locks` (&lt;br /&gt;
`id` int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
`courseid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locktype` varchar(10) NOT NULL default &#039;&#039;,&lt;br /&gt;
`targetid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locks` longtext NOT NULL,&lt;br /&gt;
PRIMARY KEY (`id`)&lt;br /&gt;
) TYPE=MyISAM COMMENT=&#039;Contains locks for sections and modules&#039;;&lt;br /&gt;
* Lastly, you need to copy the following files from the zip file:&lt;br /&gt;
lib/moodlelib.php to moodle/lib/moodlelib.php&lt;br /&gt;
lib/locklib.php to moodle/lib/locklib.php&lt;br /&gt;
course/lib.php to moodle/course/lib.php&lt;br /&gt;
course/lock.php to moodle/course/lock.php&lt;br /&gt;
course/mod.php to moodle/course/mod.php&lt;br /&gt;
course/settings.html to moodle/course/settings.html&lt;br /&gt;
pix/t/open.gif to moodle/pix/t/open.gif&lt;br /&gt;
pix/t/closed.gif to moodle/pix/t/closed.gif&lt;br /&gt;
lang/en/lock.php to moodle/lang/en/lock.php&lt;br /&gt;
&lt;br /&gt;
==AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch and others)==&lt;br /&gt;
John&#039;s versionincludes the settings tab--making it possible to set the hide/visible options, as well as the completion (a checkmark in front of a resource/activity) options, says Chardelle.  &lt;br /&gt;
* A variation on  Stuart Mayor&#039;s 2.1, it hides topics dependent upon conditions set on specific activities/resources  &#039;&#039;&#039;ALV2_1_debug.ZIP&#039;&#039;&#039; (John). Had bug which Benard tweaked out.&lt;br /&gt;
* A build of Stuarts Mayor&#039;s 2.1 it locks and/or hides specific activities depending upon conditions set on specific activities/resources. Was posted by Chardelle in [http://proemployees.com/ActivityLockingWithHide-1.6.zip &#039;&#039;&#039;ActivityLockingWithHide-1.6.zip&#039;&#039;&#039;]. Probably same as above. Had bug which Benard tweaked out.&lt;br /&gt;
* A tweak by Bernard Boucher on June 27, 2006 was posted [http://moodle.org/mod/forum/discuss.php?d=35488&amp;amp;parent=222516 moodle/lib/locklib.php file] and called &#039;&#039;&#039;locklib.zip&#039;&#039;&#039; seems to fix known bug in both the above downloads.&lt;br /&gt;
==AL Branch 2.4 for Moodle 1.6 (John Gschnaidner)==&lt;br /&gt;
Further development of the 2.2 as a hack (no installation function).&lt;br /&gt;
:&#039;&#039;&#039;WARNING:&#039;&#039;&#039;&lt;br /&gt;
:Because of some changes, this version may &#039;&#039;&#039;not&#039;&#039;&#039; be completely compatible to previous versions!&lt;br /&gt;
:&#039;&#039;&#039;Currently beta status!&#039;&#039;&#039;&lt;br /&gt;
:In this version:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&lt;br /&gt;
==AL Branch 3.s for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
Similar to the 2.x versions. Major difference is that a question to the student unlocks activities.  Being actively developed and tested.&lt;br /&gt;
&lt;br /&gt;
==CA Branch 1.0 for Moodle 1.5.2 (Borja Rubio Reyes)==&lt;br /&gt;
Details and discussed in the thread &amp;quot;[http://moodle.org/mod/forum/discuss.php?d=36697 NEW research on CONDITIONAL ACTIVITIES in Moodle]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
= Table of Versions, to be completed... =&lt;br /&gt;
{| border=&amp;quot;3&amp;quot; padding=&amp;quot;4&amp;quot;&lt;br /&gt;
|+ Activity Locking updated 10 July 2006 17:50 EDT&lt;br /&gt;
! -Version-  &lt;br /&gt;
! Moodle version&lt;br /&gt;
! Who&lt;br /&gt;
! Status&lt;br /&gt;
! MySql Install&lt;br /&gt;
! Docs&lt;br /&gt;
! Download&lt;br /&gt;
! Teacher Interface &lt;br /&gt;
! Hide Option&lt;br /&gt;
! Completion Box Option&lt;br /&gt;
! Section Lock &lt;br /&gt;
! Quiz Question &lt;br /&gt;
! Comments &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Bug &lt;br /&gt;
! Bug &lt;br /&gt;
|-----&lt;br /&gt;
| AL 3.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| not finished&lt;br /&gt;
|&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=46863]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/214752/Activity_Locking_20060317.7z]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.4&lt;br /&gt;
| 1.6&lt;br /&gt;
| John Gschnaidner&lt;br /&gt;
| beta&lt;br /&gt;
| manual&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=50835]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/232191/ALv2.4beta.7z]&lt;br /&gt;
| Tabs&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.3&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=35488]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/164285/activitylocking20051201.zip]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| A/R/T dep on A/Rs&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.2&lt;br /&gt;
| 1.6&lt;br /&gt;
| Gschnaidner, Mayor, Busch&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=47906]&lt;br /&gt;
| [http://proemployees.com/ActivityLockingWithHide-1.6.zip]&lt;br /&gt;
| Tabs&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| almost&lt;br /&gt;
| A/R dep on A/Rs&lt;br /&gt;
| +Hide&lt;br /&gt;
|&lt;br /&gt;
| bug fix&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.0&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor, Bernard Boucher&lt;br /&gt;
| Updated&lt;br /&gt;
| Automatic&lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=31627#152788]&lt;br /&gt;
| [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip]&lt;br /&gt;
| Padlock Icons&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| see above&lt;br /&gt;
|-----&lt;br /&gt;
| C A 1.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Borja Rubio Reyes, David Delgado&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=36697]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=General installation instructions DRAFT=&lt;br /&gt;
Installing AL on a localhost (desktop) machine was not difficult!  Some months ago I must have downloaded and connected phpAdministration and that came in handy for step 6.   I just did a conversion and it took me less than 30 minutes (actually I think the AL part was done in 3 minutes ) because I wanted to install the latest version of Moodle 1.6 and then zipped my entire Moodle16 file structure before I attempted the AL installation.&lt;br /&gt;
*1. Perform any backups you think are necessary (I zipped everything in my localhost path).&lt;br /&gt;
*2. Select the zip file flavor of AL you want and download it (I used Chardelle&#039;s zip plus Bernards tweak found in 2.2 above)&lt;br /&gt;
*3. Unzip it to a non Moodle place.  (Like to keep the folder structures option)&lt;br /&gt;
*4. Locate the MySQL.sql file so you can find it again.&lt;br /&gt;
*5. In Moodle as admin, go to Administration, Configuration and turn on Maintence Mode.&lt;br /&gt;
*6. Go to Administration, Database. In the home query window, on the left, click on moodle (mine says Moodle16 and has a bunch of mdl_ listings under it). &lt;br /&gt;
*7. Best: Click on the SQL tab. In the location of the text file, browse to the file in #4, then click go.&lt;br /&gt;
*7. Alternative: use the MySQL document and make or changes in &lt;br /&gt;
*8. Leave Moodle, shut that browser window.&lt;br /&gt;
*9.  Now you need to move the files in the folders located in #3 to your Moodle file structure.   (See my tip below). In your non moodle area you have unpack the file to a folder called ActivityLockingWithHide.  It has a folder called Moodle in it, with sub folders under it, for example ActivityLockingWithHide\Moodle\Course.  You should copy ever file from there to your local host file structure in the same spot. (Mine is Moodle16\Moodle\Course ).&lt;br /&gt;
*10. Go back into Moodle, log in as Admin, go to Administration. Moodle will adjust itself.&lt;br /&gt;
*11 Check in Administration, Configuration, Maintence to make sure it is disabled.  &lt;br /&gt;
*12.  You are done, check out a lesson with weeks or topics, go to lesson settings and notice the new tabs.&lt;br /&gt;
* TIP?   There is probably a slicker way but after I unzipped the file in #3, I went down a level and zipped the Moodle folder.  Then I unpacked the files to Moodle16\, told the unzip program to keep the folder structure and overwrite existing files.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
*[[Adding_activity_locks]] will give the reader an idea of what one of the flavors of Activity Locking looks like for a student and teacher setting it up.  &lt;br /&gt;
&lt;br /&gt;
Please visit the Moodle Forum for more information concerning Activity Locking and Conditional Activities-&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=35488#220984:  AL v2.1-M1.6] titled Activity Locking v2.1 (for Moodle 1.6)&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=46863:  AL v3.0-Mx] titled Activity Locking v3&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36697 AL v3.0-DD] titled NEW research on CONDITIONAL ACTIVITIES in Moodle&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=31627&amp;amp;parent=152788: AL v2.1 LALR]  titled Latest Activity Locking Release started 19 October 2005&lt;br /&gt;
* http://moodle.org/mod/forum/view.php?id=4295&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=47906&amp;amp;parent=221613 AL v2.1 wH1.6] titled Re: Certificate for 1.6 with security in Activity Modules forum&lt;br /&gt;
&lt;br /&gt;
There is a very specialized-limited type of activity locking under a lesson (activity) setting called dependency in 1.6.   See: *https://docs.moodle.org/en/Adding/editing_a_lesson#Dependent_on .&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4065</id>
		<title>Activity Locking</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4065"/>
		<updated>2006-08-28T05:56:04Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /*by john Gschnaidner*/&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
This page is an attempt to consolidate and explain the available activity locking (AL) code that is present for Moodle 1.5.x and 1.6.x. This page will hopefully help explain all the available versions and their respective features. Some of the reference here will overlap with the existing MoodleDoc page covering [[Conditional activities]]. &lt;br /&gt;
&lt;br /&gt;
Please be patient as this page is new and under development.  See page comments for reference material.&lt;br /&gt;
&lt;br /&gt;
=Types of activity locking code=&lt;br /&gt;
For the purpose of this MoodleDoc article: AL is any code that allows the user to make decisions on the next available resource or item the student will be able to use based on student events or quiz performance. There is some activity locking code that is very quick and dirty to simply lock future activities and then there is much more complex code based on the conditional activity though structure which attempts to progress the student through the course in a thought out progression based on activities and performance. Again we hope to clarify some of this here.&lt;br /&gt;
&lt;br /&gt;
==AL Branch 0.1 (Bernard Boucher)==&lt;br /&gt;
Bernard started all this with a hack to lock quiz and resources in [http://moodle.org/mod/forum/discuss.php?d=2948#12825 october 2003]. The certificate based on a quiz score was added in [http://moodle.org/mod/forum/discuss.php?d=9766#59875 september 2004] with version 0.7.  It was a great start!&lt;br /&gt;
&lt;br /&gt;
== AL Branch 2.0 for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
*This has been virtually a complete rewrite and as such there are areas of functionality the were available in older versions of AL that are not in this.    &lt;br /&gt;
&lt;br /&gt;
* Conditional locking: Lock based on a user&#039;s performance in previous activities. You can also choose to unlock and activity if a user scores less than a certain grade.&lt;br /&gt;
* Show activity completion: The checkbox that appears before each activity to show it have been done.&lt;br /&gt;
* A variation on this  also hides future activities, see AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch) below.&lt;br /&gt;
* Bernard Boucher reworked Stuart&#039;s version for Moolde 1.6, initially on June 20, 2006 and updated on July 10, 2006 posted [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip &#039;&#039;&#039;Activity Locking V 2.0 for Moodle 1.6&#039;&#039;&#039;] on [http://moodle.org/mod/forum/discuss.php?d=46863#220125 Activity Locking v3 or v2 for testing only].&lt;br /&gt;
&lt;br /&gt;
===Installation for 2.1 for Moodle 1.6(Stuart Mayor)===&lt;br /&gt;
&#039;&#039;&#039;activitylocking20051201.zip&#039;&#039;&#039; the initial version&lt;br /&gt;
&lt;br /&gt;
* Firstly, you need the stable build of Moodle 1.6. This version of AL might work on earlier releases but I didn&#039;t write it with them in mind and I certainly can&#039;t support them.&lt;br /&gt;
Next, you need to modify one table in the database and add a new one (I use phpmyadmin for this). &lt;br /&gt;
&lt;br /&gt;
* The table you need to modify is mdl_course_modules and you need to add the following fields:&lt;br /&gt;
completedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
completedscore VARCHAR(255) NOT NULL&lt;br /&gt;
completedstyle VARCHAR(255) NOT NULL&lt;br /&gt;
lockedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
lockedstyle VARCHAR(255) NOT NULL DEFAULT &#039;locked&#039;&lt;br /&gt;
lockedvisible TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
delay INT(10) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
&lt;br /&gt;
* The table you need to create is as follows:&lt;br /&gt;
CREATE TABLE `mdl_course_locks` (&lt;br /&gt;
`id` int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
`courseid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locktype` varchar(10) NOT NULL default &#039;&#039;,&lt;br /&gt;
`targetid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locks` longtext NOT NULL,&lt;br /&gt;
PRIMARY KEY (`id`)&lt;br /&gt;
) TYPE=MyISAM COMMENT=&#039;Contains locks for sections and modules&#039;;&lt;br /&gt;
* Lastly, you need to copy the following files from the zip file:&lt;br /&gt;
lib/moodlelib.php to moodle/lib/moodlelib.php&lt;br /&gt;
lib/locklib.php to moodle/lib/locklib.php&lt;br /&gt;
course/lib.php to moodle/course/lib.php&lt;br /&gt;
course/lock.php to moodle/course/lock.php&lt;br /&gt;
course/mod.php to moodle/course/mod.php&lt;br /&gt;
course/settings.html to moodle/course/settings.html&lt;br /&gt;
pix/t/open.gif to moodle/pix/t/open.gif&lt;br /&gt;
pix/t/closed.gif to moodle/pix/t/closed.gif&lt;br /&gt;
lang/en/lock.php to moodle/lang/en/lock.php&lt;br /&gt;
&lt;br /&gt;
==AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch and others)==&lt;br /&gt;
John&#039;s versionincludes the settings tab--making it possible to set the hide/visible options, as well as the completion (a checkmark in front of a resource/activity) options, says Chardelle.  &lt;br /&gt;
* A variation on  Stuart Mayor&#039;s 2.1, it hides topics dependent upon conditions set on specific activities/resources  &#039;&#039;&#039;ALV2_1_debug.ZIP&#039;&#039;&#039; (John). Had bug which Benard tweaked out.&lt;br /&gt;
* A build of Stuarts Mayor&#039;s 2.1 it locks and/or hides specific activities depending upon conditions set on specific activities/resources. Was posted by Chardelle in [http://proemployees.com/ActivityLockingWithHide-1.6.zip &#039;&#039;&#039;ActivityLockingWithHide-1.6.zip&#039;&#039;&#039;]. Probably same as above. Had bug which Benard tweaked out.&lt;br /&gt;
* A tweak by Bernard Boucher on June 27, 2006 was posted [http://moodle.org/mod/forum/discuss.php?d=35488&amp;amp;parent=222516 moodle/lib/locklib.php file] and called &#039;&#039;&#039;locklib.zip&#039;&#039;&#039; seems to fix known bug in both the above downloads.&lt;br /&gt;
==AL Branch 2.4 for Moodle 1.6 (John Gschnaidner)==&lt;br /&gt;
Further development of the 2.2 as a hack (no installation function).&lt;br /&gt;
:&#039;&#039;&#039;WARNING:&#039;&#039;&#039;&lt;br /&gt;
:Because of some changes, this version may &#039;&#039;&#039;not&#039;&#039;&#039; be completely compatible to previous versions!&lt;br /&gt;
:&#039;&#039;&#039;Currently beta status!&#039;&#039;&#039;&lt;br /&gt;
:In this version:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&lt;br /&gt;
==AL Branch 3.s for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
Similar to the 2.x versions. Major difference is that a question to the student unlocks activities.  Being actively developed and tested.&lt;br /&gt;
&lt;br /&gt;
[[Score Lock]]&lt;br /&gt;
&lt;br /&gt;
= Table of Versions, to be completed... =&lt;br /&gt;
{| border=&amp;quot;3&amp;quot; padding=&amp;quot;4&amp;quot;&lt;br /&gt;
|+ Activity Locking updated 10 July 2006 17:50 EDT&lt;br /&gt;
! -Version-  &lt;br /&gt;
! Moodle version&lt;br /&gt;
! Who&lt;br /&gt;
! Status&lt;br /&gt;
! MySql Install&lt;br /&gt;
! Docs&lt;br /&gt;
! Download&lt;br /&gt;
! Teacher Interface &lt;br /&gt;
! Hide Option&lt;br /&gt;
! Completion Box Option&lt;br /&gt;
! Section Lock &lt;br /&gt;
! Quiz Question &lt;br /&gt;
! Comments &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Bug &lt;br /&gt;
! Bug &lt;br /&gt;
|-----&lt;br /&gt;
| AL 3.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| not finished&lt;br /&gt;
|&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=46863]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/214752/Activity_Locking_20060317.7z]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.4&lt;br /&gt;
| 1.6&lt;br /&gt;
| John Gschnaidner&lt;br /&gt;
| beta&lt;br /&gt;
| manual&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=50835]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/232191/ALv2.4beta.7z]&lt;br /&gt;
| Tabs&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.3&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=35488]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/164285/activitylocking20051201.zip]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| A/R/T dep on A/Rs&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.2&lt;br /&gt;
| 1.6&lt;br /&gt;
| Gschnaidner, Mayor, Busch&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=47906]&lt;br /&gt;
| [http://proemployees.com/ActivityLockingWithHide-1.6.zip]&lt;br /&gt;
| Tabs&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| almost&lt;br /&gt;
| A/R dep on A/Rs&lt;br /&gt;
| +Hide&lt;br /&gt;
|&lt;br /&gt;
| bug fix&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.0&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor, Bernard Boucher&lt;br /&gt;
| Updated&lt;br /&gt;
| Automatic&lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=31627#152788]&lt;br /&gt;
| [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip]&lt;br /&gt;
| Padlock Icons&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| see above&lt;br /&gt;
|-----&lt;br /&gt;
| C A 1.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Borja Rubio Reyes, David Delgado&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=36697]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=General installation instructions DRAFT=&lt;br /&gt;
Installing AL on a localhost (desktop) machine was not difficult!  Some months ago I must have downloaded and connected phpAdministration and that came in handy for step 6.   I just did a conversion and it took me less than 30 minutes (actually I think the AL part was done in 3 minutes ) because I wanted to install the latest version of Moodle 1.6 and then zipped my entire Moodle16 file structure before I attempted the AL installation.&lt;br /&gt;
*1. Perform any backups you think are necessary (I zipped everything in my localhost path).&lt;br /&gt;
*2. Select the zip file flavor of AL you want and download it (I used Chardelle&#039;s zip plus Bernards tweak found in 2.2 above)&lt;br /&gt;
*3. Unzip it to a non Moodle place.  (Like to keep the folder structures option)&lt;br /&gt;
*4. Locate the MySQL.sql file so you can find it again.&lt;br /&gt;
*5. In Moodle as admin, go to Administration, Configuration and turn on Maintence Mode.&lt;br /&gt;
*6. Go to Administration, Database. In the home query window, on the left, click on moodle (mine says Moodle16 and has a bunch of mdl_ listings under it). &lt;br /&gt;
*7. Best: Click on the SQL tab. In the location of the text file, browse to the file in #4, then click go.&lt;br /&gt;
*7. Alternative: use the MySQL document and make or changes in &lt;br /&gt;
*8. Leave Moodle, shut that browser window.&lt;br /&gt;
*9.  Now you need to move the files in the folders located in #3 to your Moodle file structure.   (See my tip below). In your non moodle area you have unpack the file to a folder called ActivityLockingWithHide.  It has a folder called Moodle in it, with sub folders under it, for example ActivityLockingWithHide\Moodle\Course.  You should copy ever file from there to your local host file structure in the same spot. (Mine is Moodle16\Moodle\Course ).&lt;br /&gt;
*10. Go back into Moodle, log in as Admin, go to Administration. Moodle will adjust itself.&lt;br /&gt;
*11 Check in Administration, Configuration, Maintence to make sure it is disabled.  &lt;br /&gt;
*12.  You are done, check out a lesson with weeks or topics, go to lesson settings and notice the new tabs.&lt;br /&gt;
* TIP?   There is probably a slicker way but after I unzipped the file in #3, I went down a level and zipped the Moodle folder.  Then I unpacked the files to Moodle16\, told the unzip program to keep the folder structure and overwrite existing files.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
*[[Adding_activity_locks]] will give the reader an idea of what one of the flavors of Activity Locking looks like for a student and teacher setting it up.  &lt;br /&gt;
&lt;br /&gt;
Please visit the Moodle Forum for more information concerning Activity Locking and Conditional Activities-&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=35488#220984:  AL v2.1-M1.6] titled Activity Locking v2.1 (for Moodle 1.6)&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=46863:  AL v3.0-Mx] titled Activity Locking v3&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36697 AL v3.0-DD] titled NEW research on CONDITIONAL ACTIVITIES in Moodle&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=31627&amp;amp;parent=152788: AL v2.1 LALR]  titled Latest Activity Locking Release started 19 October 2005&lt;br /&gt;
* http://moodle.org/mod/forum/view.php?id=4295&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=47906&amp;amp;parent=221613 AL v2.1 wH1.6] titled Re: Certificate for 1.6 with security in Activity Modules forum&lt;br /&gt;
&lt;br /&gt;
There is a very specialized-limited type of activity locking under a lesson (activity) setting called dependency in 1.6.   See: *https://docs.moodle.org/en/Adding/editing_a_lesson#Dependent_on .&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4064</id>
		<title>Activity Locking</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4064"/>
		<updated>2006-08-17T05:39:14Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* AL Branch 2.4 for Moodle 1.6 (John Gschnaidner) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
This page is an attempt to consolidate and explain the available activity locking (AL) code that is present for Moodle 1.5.x and 1.6.x. This page will hopefully help explain all the available versions and their respective features. Some of the reference here will overlap with the existing MoodleDoc page covering [[Conditional activities]]. &lt;br /&gt;
&lt;br /&gt;
Please be patient as this page is new and under development.  See page comments for reference material.&lt;br /&gt;
&lt;br /&gt;
=Types of activity locking code=&lt;br /&gt;
For the purpose of this MoodleDoc article: AL is any code that allows the user to make decisions on the next available resource or item the student will be able to use based on student events or quiz performance. There is some activity locking code that is very quick and dirty to simply lock future activities and then there is much more complex code based on the conditional activity though structure which attempts to progress the student through the course in a thought out progression based on activities and performance. Again we hope to clarify some of this here.&lt;br /&gt;
&lt;br /&gt;
==AL Branch 0.1 (Bernard Boucher)==&lt;br /&gt;
Bernard started all this with a hack to lock quiz and resources in [http://moodle.org/mod/forum/discuss.php?d=2948#12825 october 2003]. The certificate based on a quiz score was added in [http://moodle.org/mod/forum/discuss.php?d=9766#59875 september 2004] with version 0.7.  It was a great start!&lt;br /&gt;
&lt;br /&gt;
== AL Branch 2.0 for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
*This has been virtually a complete rewrite and as such there are areas of functionality the were available in older versions of AL that are not in this.    &lt;br /&gt;
&lt;br /&gt;
* Conditional locking: Lock based on a user&#039;s performance in previous activities. You can also choose to unlock and activity if a user scores less than a certain grade.&lt;br /&gt;
* Show activity completion: The checkbox that appears before each activity to show it have been done.&lt;br /&gt;
* A variation on this  also hides future activities, see AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch) below.&lt;br /&gt;
* Bernard Boucher reworked Stuart&#039;s version for Moolde 1.6, initially on June 20, 2006 and updated on July 10, 2006 posted [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip &#039;&#039;&#039;Activity Locking V 2.0 for Moodle 1.6&#039;&#039;&#039;] on [http://moodle.org/mod/forum/discuss.php?d=46863#220125 Activity Locking v3 or v2 for testing only].&lt;br /&gt;
&lt;br /&gt;
===Installation for 2.1 for Moodle 1.6(Stuart Mayor)===&lt;br /&gt;
&#039;&#039;&#039;activitylocking20051201.zip&#039;&#039;&#039; the initial version&lt;br /&gt;
&lt;br /&gt;
* Firstly, you need the stable build of Moodle 1.6. This version of AL might work on earlier releases but I didn&#039;t write it with them in mind and I certainly can&#039;t support them.&lt;br /&gt;
Next, you need to modify one table in the database and add a new one (I use phpmyadmin for this). &lt;br /&gt;
&lt;br /&gt;
* The table you need to modify is mdl_course_modules and you need to add the following fields:&lt;br /&gt;
completedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
completedscore VARCHAR(255) NOT NULL&lt;br /&gt;
completedstyle VARCHAR(255) NOT NULL&lt;br /&gt;
lockedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
lockedstyle VARCHAR(255) NOT NULL DEFAULT &#039;locked&#039;&lt;br /&gt;
lockedvisible TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
delay INT(10) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
&lt;br /&gt;
* The table you need to create is as follows:&lt;br /&gt;
CREATE TABLE `mdl_course_locks` (&lt;br /&gt;
`id` int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
`courseid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locktype` varchar(10) NOT NULL default &#039;&#039;,&lt;br /&gt;
`targetid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locks` longtext NOT NULL,&lt;br /&gt;
PRIMARY KEY (`id`)&lt;br /&gt;
) TYPE=MyISAM COMMENT=&#039;Contains locks for sections and modules&#039;;&lt;br /&gt;
* Lastly, you need to copy the following files from the zip file:&lt;br /&gt;
lib/moodlelib.php to moodle/lib/moodlelib.php&lt;br /&gt;
lib/locklib.php to moodle/lib/locklib.php&lt;br /&gt;
course/lib.php to moodle/course/lib.php&lt;br /&gt;
course/lock.php to moodle/course/lock.php&lt;br /&gt;
course/mod.php to moodle/course/mod.php&lt;br /&gt;
course/settings.html to moodle/course/settings.html&lt;br /&gt;
pix/t/open.gif to moodle/pix/t/open.gif&lt;br /&gt;
pix/t/closed.gif to moodle/pix/t/closed.gif&lt;br /&gt;
lang/en/lock.php to moodle/lang/en/lock.php&lt;br /&gt;
&lt;br /&gt;
==AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch and others)==&lt;br /&gt;
John&#039;s versionincludes the settings tab--making it possible to set the hide/visible options, as well as the completion (a checkmark in front of a resource/activity) options, says Chardelle.  &lt;br /&gt;
* A variation on  Stuart Mayor&#039;s 2.1, it hides topics dependent upon conditions set on specific activities/resources  &#039;&#039;&#039;ALV2_1_debug.ZIP&#039;&#039;&#039; (John). Had bug which Benard tweaked out.&lt;br /&gt;
* A build of Stuarts Mayor&#039;s 2.1 it locks and/or hides specific activities depending upon conditions set on specific activities/resources. Was posted by Chardelle in [http://proemployees.com/ActivityLockingWithHide-1.6.zip &#039;&#039;&#039;ActivityLockingWithHide-1.6.zip&#039;&#039;&#039;]. Probably same as above. Had bug which Benard tweaked out.&lt;br /&gt;
* A tweak by Bernard Boucher on June 27, 2006 was posted [http://moodle.org/mod/forum/discuss.php?d=35488&amp;amp;parent=222516 moodle/lib/locklib.php file] and called &#039;&#039;&#039;locklib.zip&#039;&#039;&#039; seems to fix known bug in both the above downloads.&lt;br /&gt;
==AL Branch 2.4 for Moodle 1.6 (John Gschnaidner)==&lt;br /&gt;
Further development of the 2.2 as a hack (no installation function).&lt;br /&gt;
:&#039;&#039;&#039;WARNING:&#039;&#039;&#039;&lt;br /&gt;
:Because of some changes, this version may &#039;&#039;&#039;not&#039;&#039;&#039; be completely compatible to previous versions!&lt;br /&gt;
:&#039;&#039;&#039;Currently beta status!&#039;&#039;&#039;&lt;br /&gt;
:In this version:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&lt;br /&gt;
==AL Branch 3.s for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
Similar to the 2.x versions. Major difference is that a question to the student unlocks activities.  Being actively developed and tested.&lt;br /&gt;
&lt;br /&gt;
==CA Branch 1.0 for Moodle 1.5.2 (Borja Rubio Reyes)==&lt;br /&gt;
Details and discussed in the thread &amp;quot;[http://moodle.org/mod/forum/discuss.php?d=36697 NEW research on CONDITIONAL ACTIVITIES in Moodle]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
= Table of Versions, to be completed... =&lt;br /&gt;
{| border=&amp;quot;3&amp;quot; padding=&amp;quot;4&amp;quot;&lt;br /&gt;
|+ Activity Locking updated 10 July 2006 17:50 EDT&lt;br /&gt;
! -Version-  &lt;br /&gt;
! Moodle version&lt;br /&gt;
! Who&lt;br /&gt;
! Status&lt;br /&gt;
! MySql Install&lt;br /&gt;
! Docs&lt;br /&gt;
! Download&lt;br /&gt;
! Teacher Interface &lt;br /&gt;
! Hide Option&lt;br /&gt;
! Completion Box Option&lt;br /&gt;
! Section Lock &lt;br /&gt;
! Quiz Question &lt;br /&gt;
! Comments &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Bug &lt;br /&gt;
! Bug &lt;br /&gt;
|-----&lt;br /&gt;
| AL 3.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| not finished&lt;br /&gt;
|&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=46863]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/214752/Activity_Locking_20060317.7z]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.4&lt;br /&gt;
| 1.6&lt;br /&gt;
| John Gschnaidner&lt;br /&gt;
| beta&lt;br /&gt;
| manual&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=50835]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/232191/ALv2.4beta.7z]&lt;br /&gt;
| Tabs&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.3&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=35488]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/164285/activitylocking20051201.zip]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| A/R/T dep on A/Rs&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.2&lt;br /&gt;
| 1.6&lt;br /&gt;
| Gschnaidner, Mayor, Busch&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=47906]&lt;br /&gt;
| [http://proemployees.com/ActivityLockingWithHide-1.6.zip]&lt;br /&gt;
| Tabs&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| almost&lt;br /&gt;
| A/R dep on A/Rs&lt;br /&gt;
| +Hide&lt;br /&gt;
|&lt;br /&gt;
| bug fix&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.0&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor, Bernard Boucher&lt;br /&gt;
| Updated&lt;br /&gt;
| Automatic&lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=31627#152788]&lt;br /&gt;
| [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip]&lt;br /&gt;
| Padlock Icons&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| see above&lt;br /&gt;
|-----&lt;br /&gt;
| C A 1.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Borja Rubio Reyes, David Delgado&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=36697]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=General installation instructions DRAFT=&lt;br /&gt;
Installing AL on a localhost (desktop) machine was not difficult!  Some months ago I must have downloaded and connected phpAdministration and that came in handy for step 6.   I just did a conversion and it took me less than 30 minutes (actually I think the AL part was done in 3 minutes ) because I wanted to install the latest version of Moodle 1.6 and then zipped my entire Moodle16 file structure before I attempted the AL installation.&lt;br /&gt;
*1. Perform any backups you think are necessary (I zipped everything in my localhost path).&lt;br /&gt;
*2. Select the zip file flavor of AL you want and download it (I used Chardelle&#039;s zip plus Bernards tweak found in 2.2 above)&lt;br /&gt;
*3. Unzip it to a non Moodle place.  (Like to keep the folder structures option)&lt;br /&gt;
*4. Locate the MySQL.sql file so you can find it again.&lt;br /&gt;
*5. In Moodle as admin, go to Administration, Configuration and turn on Maintence Mode.&lt;br /&gt;
*6. Go to Administration, Database. In the home query window, on the left, click on moodle (mine says Moodle16 and has a bunch of mdl_ listings under it). &lt;br /&gt;
*7. Best: Click on the SQL tab. In the location of the text file, browse to the file in #4, then click go.&lt;br /&gt;
*7. Alternative: use the MySQL document and make or changes in &lt;br /&gt;
*8. Leave Moodle, shut that browser window.&lt;br /&gt;
*9.  Now you need to move the files in the folders located in #3 to your Moodle file structure.   (See my tip below). In your non moodle area you have unpack the file to a folder called ActivityLockingWithHide.  It has a folder called Moodle in it, with sub folders under it, for example ActivityLockingWithHide\Moodle\Course.  You should copy ever file from there to your local host file structure in the same spot. (Mine is Moodle16\Moodle\Course ).&lt;br /&gt;
*10. Go back into Moodle, log in as Admin, go to Administration. Moodle will adjust itself.&lt;br /&gt;
*11 Check in Administration, Configuration, Maintence to make sure it is disabled.  &lt;br /&gt;
*12.  You are done, check out a lesson with weeks or topics, go to lesson settings and notice the new tabs.&lt;br /&gt;
* TIP?   There is probably a slicker way but after I unzipped the file in #3, I went down a level and zipped the Moodle folder.  Then I unpacked the files to Moodle16\, told the unzip program to keep the folder structure and overwrite existing files.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
*[[Adding_activity_locks]] will give the reader an idea of what one of the flavors of Activity Locking looks like for a student and teacher setting it up.  &lt;br /&gt;
&lt;br /&gt;
Please visit the Moodle Forum for more information concerning Activity Locking and Conditional Activities-&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=35488#220984:  AL v2.1-M1.6] titled Activity Locking v2.1 (for Moodle 1.6)&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=46863:  AL v3.0-Mx] titled Activity Locking v3&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36697 AL v3.0-DD] titled NEW research on CONDITIONAL ACTIVITIES in Moodle&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=31627&amp;amp;parent=152788: AL v2.1 LALR]  titled Latest Activity Locking Release started 19 October 2005&lt;br /&gt;
* http://moodle.org/mod/forum/view.php?id=4295&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=47906&amp;amp;parent=221613 AL v2.1 wH1.6] titled Re: Certificate for 1.6 with security in Activity Modules forum&lt;br /&gt;
&lt;br /&gt;
There is a very specialized-limited type of activity locking under a lesson (activity) setting called dependency in 1.6.   See: *https://docs.moodle.org/en/Adding/editing_a_lesson#Dependent_on .&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4063</id>
		<title>Activity Locking</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4063"/>
		<updated>2006-07-30T14:27:45Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* AL Branch 2.4 for Moodle 1.6 (John Gschnaidner) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
This page is an attempt to consolidate and explain the available activity locking (AL) code that is present for Moodle 1.5.x and 1.6.x. This page will hopefully help explain all the available versions and their respective features. Some of the reference here will overlap with the existing MoodleDoc page covering [[Conditional activities]]. &lt;br /&gt;
&lt;br /&gt;
Please be patient as this page is new and under development.  See page comments for reference material.&lt;br /&gt;
&lt;br /&gt;
=Types of activity locking code=&lt;br /&gt;
For the purpose of this MoodleDoc article: AL is any code that allows the user to make decisions on the next available resource or item the student will be able to use based on student events or quiz performance. There is some activity locking code that is very quick and dirty to simply lock future activities and then there is much more complex code based on the conditional activity though structure which attempts to progress the student through the course in a thought out progression based on activities and performance. Again we hope to clarify some of this here.&lt;br /&gt;
&lt;br /&gt;
==AL Branch 0.1 (Bernard Boucher)==&lt;br /&gt;
Bernard started all this with a hack to lock quiz and resources in [http://moodle.org/mod/forum/discuss.php?d=2948#12825 october 2003]. The certificate based on a quiz score was added in [http://moodle.org/mod/forum/discuss.php?d=9766#59875 september 2004] with version 0.7.  It was a great start!&lt;br /&gt;
&lt;br /&gt;
== AL Branch 2.0 for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
*This has been virtually a complete rewrite and as such there are areas of functionality the were available in older versions of AL that are not in this.    &lt;br /&gt;
&lt;br /&gt;
* Conditional locking: Lock based on a user&#039;s performance in previous activities. You can also choose to unlock and activity if a user scores less than a certain grade.&lt;br /&gt;
* Show activity completion: The checkbox that appears before each activity to show it have been done.&lt;br /&gt;
* A variation on this  also hides future activities, see AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch) below.&lt;br /&gt;
* Bernard Boucher reworked Stuart&#039;s version for Moolde 1.6, initially on June 20, 2006 and updated on July 10, 2006 posted [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip &#039;&#039;&#039;Activity Locking V 2.0 for Moodle 1.6&#039;&#039;&#039;] on [http://moodle.org/mod/forum/discuss.php?d=46863#220125 Activity Locking v3 or v2 for testing only].&lt;br /&gt;
&lt;br /&gt;
===Installation for 2.1 for Moodle 1.6(Stuart Mayor)===&lt;br /&gt;
&#039;&#039;&#039;activitylocking20051201.zip&#039;&#039;&#039; the initial version&lt;br /&gt;
&lt;br /&gt;
* Firstly, you need the stable build of Moodle 1.6. This version of AL might work on earlier releases but I didn&#039;t write it with them in mind and I certainly can&#039;t support them.&lt;br /&gt;
Next, you need to modify one table in the database and add a new one (I use phpmyadmin for this). &lt;br /&gt;
&lt;br /&gt;
* The table you need to modify is mdl_course_modules and you need to add the following fields:&lt;br /&gt;
completedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
completedscore VARCHAR(255) NOT NULL&lt;br /&gt;
completedstyle VARCHAR(255) NOT NULL&lt;br /&gt;
lockedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
lockedstyle VARCHAR(255) NOT NULL DEFAULT &#039;locked&#039;&lt;br /&gt;
lockedvisible TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
delay INT(10) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
&lt;br /&gt;
* The table you need to create is as follows:&lt;br /&gt;
CREATE TABLE `mdl_course_locks` (&lt;br /&gt;
`id` int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
`courseid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locktype` varchar(10) NOT NULL default &#039;&#039;,&lt;br /&gt;
`targetid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locks` longtext NOT NULL,&lt;br /&gt;
PRIMARY KEY (`id`)&lt;br /&gt;
) TYPE=MyISAM COMMENT=&#039;Contains locks for sections and modules&#039;;&lt;br /&gt;
* Lastly, you need to copy the following files from the zip file:&lt;br /&gt;
lib/moodlelib.php to moodle/lib/moodlelib.php&lt;br /&gt;
lib/locklib.php to moodle/lib/locklib.php&lt;br /&gt;
course/lib.php to moodle/course/lib.php&lt;br /&gt;
course/lock.php to moodle/course/lock.php&lt;br /&gt;
course/mod.php to moodle/course/mod.php&lt;br /&gt;
course/settings.html to moodle/course/settings.html&lt;br /&gt;
pix/t/open.gif to moodle/pix/t/open.gif&lt;br /&gt;
pix/t/closed.gif to moodle/pix/t/closed.gif&lt;br /&gt;
lang/en/lock.php to moodle/lang/en/lock.php&lt;br /&gt;
&lt;br /&gt;
==AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch and others)==&lt;br /&gt;
John&#039;s versionincludes the settings tab--making it possible to set the hide/visible options, as well as the completion (a checkmark in front of a resource/activity) options, says Chardelle.  &lt;br /&gt;
* A variation on  Stuart Mayor&#039;s 2.1, it hides topics dependent upon conditions set on specific activities/resources  &#039;&#039;&#039;ALV2_1_debug.ZIP&#039;&#039;&#039; (John). Had bug which Benard tweaked out.&lt;br /&gt;
* A build of Stuarts Mayor&#039;s 2.1 it locks and/or hides specific activities depending upon conditions set on specific activities/resources. Was posted by Chardelle in [http://proemployees.com/ActivityLockingWithHide-1.6.zip &#039;&#039;&#039;ActivityLockingWithHide-1.6.zip&#039;&#039;&#039;]. Probably same as above. Had bug which Benard tweaked out.&lt;br /&gt;
* A tweak by Bernard Boucher on June 27, 2006 was posted [http://moodle.org/mod/forum/discuss.php?d=35488&amp;amp;parent=222516 moodle/lib/locklib.php file] and called &#039;&#039;&#039;locklib.zip&#039;&#039;&#039; seems to fix known bug in both the above downloads.&lt;br /&gt;
==AL Branch 2.4 for Moodle 1.6 (John Gschnaidner)==&lt;br /&gt;
Further development of the 2.2 as a hack (no installation function).&lt;br /&gt;
:&#039;&#039;&#039;Currently beta status!&#039;&#039;&#039;&lt;br /&gt;
:In this version:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Parallel locking and completing modules &#039;&#039;&#039;and&#039;&#039;&#039; sections&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
* SQL commands for DB update&lt;br /&gt;
* Info on how to update the CSS style sheets&lt;br /&gt;
&lt;br /&gt;
==AL Branch 3.s for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
Similar to the 2.x versions. Major difference is that a question to the student unlocks activities.  Being actively developed and tested.&lt;br /&gt;
&lt;br /&gt;
==CA Branch 1.0 for Moodle 1.5.2 (Borja Rubio Reyes)==&lt;br /&gt;
Details and discussed in the thread &amp;quot;[http://moodle.org/mod/forum/discuss.php?d=36697 NEW research on CONDITIONAL ACTIVITIES in Moodle]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
= Table of Versions, to be completed... =&lt;br /&gt;
{| border=&amp;quot;3&amp;quot; padding=&amp;quot;4&amp;quot;&lt;br /&gt;
|+ Activity Locking updated 10 July 2006 17:50 EDT&lt;br /&gt;
! -Version-  &lt;br /&gt;
! Moodle version&lt;br /&gt;
! Who&lt;br /&gt;
! Status&lt;br /&gt;
! MySql Install&lt;br /&gt;
! Docs&lt;br /&gt;
! Download&lt;br /&gt;
! Teacher Interface &lt;br /&gt;
! Hide Option&lt;br /&gt;
! Completion Box Option&lt;br /&gt;
! Section Lock &lt;br /&gt;
! Quiz Question &lt;br /&gt;
! Comments &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Bug &lt;br /&gt;
! Bug &lt;br /&gt;
|-----&lt;br /&gt;
| AL 3.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| not finished&lt;br /&gt;
|&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=46863]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/214752/Activity_Locking_20060317.7z]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.4&lt;br /&gt;
| 1.6&lt;br /&gt;
| John Gschnaidner&lt;br /&gt;
| beta&lt;br /&gt;
| manual&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=50835]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/232191/ALv2.4beta.7z]&lt;br /&gt;
| Tabs&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.3&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=35488]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/164285/activitylocking20051201.zip]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| A/R/T dep on A/Rs&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.2&lt;br /&gt;
| 1.6&lt;br /&gt;
| Gschnaidner, Mayor, Busch&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=47906]&lt;br /&gt;
| [http://proemployees.com/ActivityLockingWithHide-1.6.zip]&lt;br /&gt;
| Tabs&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| almost&lt;br /&gt;
| A/R dep on A/Rs&lt;br /&gt;
| +Hide&lt;br /&gt;
|&lt;br /&gt;
| bug fix&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.0&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor, Bernard Boucher&lt;br /&gt;
| Updated&lt;br /&gt;
| Automatic&lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=31627#152788]&lt;br /&gt;
| [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip]&lt;br /&gt;
| Padlock Icons&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| see above&lt;br /&gt;
|-----&lt;br /&gt;
| C A 1.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Borja Rubio Reyes, David Delgado&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=36697]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=General installation instructions DRAFT=&lt;br /&gt;
Installing AL on a localhost (desktop) machine was not difficult!  Some months ago I must have downloaded and connected phpAdministration and that came in handy for step 6.   I just did a conversion and it took me less than 30 minutes (actually I think the AL part was done in 3 minutes ) because I wanted to install the latest version of Moodle 1.6 and then zipped my entire Moodle16 file structure before I attempted the AL installation.&lt;br /&gt;
*1. Perform any backups you think are necessary (I zipped everything in my localhost path).&lt;br /&gt;
*2. Select the zip file flavor of AL you want and download it (I used Chardelle&#039;s zip plus Bernards tweak found in 2.2 above)&lt;br /&gt;
*3. Unzip it to a non Moodle place.  (Like to keep the folder structures option)&lt;br /&gt;
*4. Locate the MySQL.sql file so you can find it again.&lt;br /&gt;
*5. In Moodle as admin, go to Administration, Configuration and turn on Maintence Mode.&lt;br /&gt;
*6. Go to Administration, Database. In the home query window, on the left, click on moodle (mine says Moodle16 and has a bunch of mdl_ listings under it). &lt;br /&gt;
*7. Best: Click on the SQL tab. In the location of the text file, browse to the file in #4, then click go.&lt;br /&gt;
*7. Alternative: use the MySQL document and make or changes in &lt;br /&gt;
*8. Leave Moodle, shut that browser window.&lt;br /&gt;
*9.  Now you need to move the files in the folders located in #3 to your Moodle file structure.   (See my tip below). In your non moodle area you have unpack the file to a folder called ActivityLockingWithHide.  It has a folder called Moodle in it, with sub folders under it, for example ActivityLockingWithHide\Moodle\Course.  You should copy ever file from there to your local host file structure in the same spot. (Mine is Moodle16\Moodle\Course ).&lt;br /&gt;
*10. Go back into Moodle, log in as Admin, go to Administration. Moodle will adjust itself.&lt;br /&gt;
*11 Check in Administration, Configuration, Maintence to make sure it is disabled.  &lt;br /&gt;
*12.  You are done, check out a lesson with weeks or topics, go to lesson settings and notice the new tabs.&lt;br /&gt;
* TIP?   There is probably a slicker way but after I unzipped the file in #3, I went down a level and zipped the Moodle folder.  Then I unpacked the files to Moodle16\, told the unzip program to keep the folder structure and overwrite existing files.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
*[[Adding_activity_locks]] will give the reader an idea of what one of the flavors of Activity Locking looks like for a student and teacher setting it up.  &lt;br /&gt;
&lt;br /&gt;
Please visit the Moodle Forum for more information concerning Activity Locking and Conditional Activities-&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=35488#220984:  AL v2.1-M1.6] titled Activity Locking v2.1 (for Moodle 1.6)&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=46863:  AL v3.0-Mx] titled Activity Locking v3&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36697 AL v3.0-DD] titled NEW research on CONDITIONAL ACTIVITIES in Moodle&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=31627&amp;amp;parent=152788: AL v2.1 LALR]  titled Latest Activity Locking Release started 19 October 2005&lt;br /&gt;
* http://moodle.org/mod/forum/view.php?id=4295&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=47906&amp;amp;parent=221613 AL v2.1 wH1.6] titled Re: Certificate for 1.6 with security in Activity Modules forum&lt;br /&gt;
&lt;br /&gt;
There is a very specialized-limited type of activity locking under a lesson (activity) setting called dependency in 1.6.   See: *https://docs.moodle.org/en/Adding/editing_a_lesson#Dependent_on .&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4062</id>
		<title>Activity Locking</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4062"/>
		<updated>2006-07-30T14:25:23Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Table of Versions, to be completed... */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
This page is an attempt to consolidate and explain the available activity locking (AL) code that is present for Moodle 1.5.x and 1.6.x. This page will hopefully help explain all the available versions and their respective features. Some of the reference here will overlap with the existing MoodleDoc page covering [[Conditional activities]]. &lt;br /&gt;
&lt;br /&gt;
Please be patient as this page is new and under development.  See page comments for reference material.&lt;br /&gt;
&lt;br /&gt;
=Types of activity locking code=&lt;br /&gt;
For the purpose of this MoodleDoc article: AL is any code that allows the user to make decisions on the next available resource or item the student will be able to use based on student events or quiz performance. There is some activity locking code that is very quick and dirty to simply lock future activities and then there is much more complex code based on the conditional activity though structure which attempts to progress the student through the course in a thought out progression based on activities and performance. Again we hope to clarify some of this here.&lt;br /&gt;
&lt;br /&gt;
==AL Branch 0.1 (Bernard Boucher)==&lt;br /&gt;
Bernard started all this with a hack to lock quiz and resources in [http://moodle.org/mod/forum/discuss.php?d=2948#12825 october 2003]. The certificate based on a quiz score was added in [http://moodle.org/mod/forum/discuss.php?d=9766#59875 september 2004] with version 0.7.  It was a great start!&lt;br /&gt;
&lt;br /&gt;
== AL Branch 2.0 for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
*This has been virtually a complete rewrite and as such there are areas of functionality the were available in older versions of AL that are not in this.    &lt;br /&gt;
&lt;br /&gt;
* Conditional locking: Lock based on a user&#039;s performance in previous activities. You can also choose to unlock and activity if a user scores less than a certain grade.&lt;br /&gt;
* Show activity completion: The checkbox that appears before each activity to show it have been done.&lt;br /&gt;
* A variation on this  also hides future activities, see AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch) below.&lt;br /&gt;
* Bernard Boucher reworked Stuart&#039;s version for Moolde 1.6, initially on June 20, 2006 and updated on July 10, 2006 posted [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip &#039;&#039;&#039;Activity Locking V 2.0 for Moodle 1.6&#039;&#039;&#039;] on [http://moodle.org/mod/forum/discuss.php?d=46863#220125 Activity Locking v3 or v2 for testing only].&lt;br /&gt;
&lt;br /&gt;
===Installation for 2.1 for Moodle 1.6(Stuart Mayor)===&lt;br /&gt;
&#039;&#039;&#039;activitylocking20051201.zip&#039;&#039;&#039; the initial version&lt;br /&gt;
&lt;br /&gt;
* Firstly, you need the stable build of Moodle 1.6. This version of AL might work on earlier releases but I didn&#039;t write it with them in mind and I certainly can&#039;t support them.&lt;br /&gt;
Next, you need to modify one table in the database and add a new one (I use phpmyadmin for this). &lt;br /&gt;
&lt;br /&gt;
* The table you need to modify is mdl_course_modules and you need to add the following fields:&lt;br /&gt;
completedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
completedscore VARCHAR(255) NOT NULL&lt;br /&gt;
completedstyle VARCHAR(255) NOT NULL&lt;br /&gt;
lockedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
lockedstyle VARCHAR(255) NOT NULL DEFAULT &#039;locked&#039;&lt;br /&gt;
lockedvisible TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
delay INT(10) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
&lt;br /&gt;
* The table you need to create is as follows:&lt;br /&gt;
CREATE TABLE `mdl_course_locks` (&lt;br /&gt;
`id` int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
`courseid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locktype` varchar(10) NOT NULL default &#039;&#039;,&lt;br /&gt;
`targetid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locks` longtext NOT NULL,&lt;br /&gt;
PRIMARY KEY (`id`)&lt;br /&gt;
) TYPE=MyISAM COMMENT=&#039;Contains locks for sections and modules&#039;;&lt;br /&gt;
* Lastly, you need to copy the following files from the zip file:&lt;br /&gt;
lib/moodlelib.php to moodle/lib/moodlelib.php&lt;br /&gt;
lib/locklib.php to moodle/lib/locklib.php&lt;br /&gt;
course/lib.php to moodle/course/lib.php&lt;br /&gt;
course/lock.php to moodle/course/lock.php&lt;br /&gt;
course/mod.php to moodle/course/mod.php&lt;br /&gt;
course/settings.html to moodle/course/settings.html&lt;br /&gt;
pix/t/open.gif to moodle/pix/t/open.gif&lt;br /&gt;
pix/t/closed.gif to moodle/pix/t/closed.gif&lt;br /&gt;
lang/en/lock.php to moodle/lang/en/lock.php&lt;br /&gt;
&lt;br /&gt;
==AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch and others)==&lt;br /&gt;
John&#039;s versionincludes the settings tab--making it possible to set the hide/visible options, as well as the completion (a checkmark in front of a resource/activity) options, says Chardelle.  &lt;br /&gt;
* A variation on  Stuart Mayor&#039;s 2.1, it hides topics dependent upon conditions set on specific activities/resources  &#039;&#039;&#039;ALV2_1_debug.ZIP&#039;&#039;&#039; (John). Had bug which Benard tweaked out.&lt;br /&gt;
* A build of Stuarts Mayor&#039;s 2.1 it locks and/or hides specific activities depending upon conditions set on specific activities/resources. Was posted by Chardelle in [http://proemployees.com/ActivityLockingWithHide-1.6.zip &#039;&#039;&#039;ActivityLockingWithHide-1.6.zip&#039;&#039;&#039;]. Probably same as above. Had bug which Benard tweaked out.&lt;br /&gt;
* A tweak by Bernard Boucher on June 27, 2006 was posted [http://moodle.org/mod/forum/discuss.php?d=35488&amp;amp;parent=222516 moodle/lib/locklib.php file] and called &#039;&#039;&#039;locklib.zip&#039;&#039;&#039; seems to fix known bug in both the above downloads.&lt;br /&gt;
==AL Branch 2.4 for Moodle 1.6 (John Gschnaidner)==&lt;br /&gt;
Further development of the 2.2 as a hack (no installation function).&lt;br /&gt;
:&#039;&#039;&#039;Currently beta status!&#039;&#039;&#039;&lt;br /&gt;
:In this version:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Locking and Completing modules and sections parallel&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
&lt;br /&gt;
==AL Branch 3.s for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
Similar to the 2.x versions. Major difference is that a question to the student unlocks activities.  Being actively developed and tested.&lt;br /&gt;
&lt;br /&gt;
==CA Branch 1.0 for Moodle 1.5.2 (Borja Rubio Reyes)==&lt;br /&gt;
Details and discussed in the thread &amp;quot;[http://moodle.org/mod/forum/discuss.php?d=36697 NEW research on CONDITIONAL ACTIVITIES in Moodle]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
= Table of Versions, to be completed... =&lt;br /&gt;
{| border=&amp;quot;3&amp;quot; padding=&amp;quot;4&amp;quot;&lt;br /&gt;
|+ Activity Locking updated 10 July 2006 17:50 EDT&lt;br /&gt;
! -Version-  &lt;br /&gt;
! Moodle version&lt;br /&gt;
! Who&lt;br /&gt;
! Status&lt;br /&gt;
! MySql Install&lt;br /&gt;
! Docs&lt;br /&gt;
! Download&lt;br /&gt;
! Teacher Interface &lt;br /&gt;
! Hide Option&lt;br /&gt;
! Completion Box Option&lt;br /&gt;
! Section Lock &lt;br /&gt;
! Quiz Question &lt;br /&gt;
! Comments &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Bug &lt;br /&gt;
! Bug &lt;br /&gt;
|-----&lt;br /&gt;
| AL 3.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| not finished&lt;br /&gt;
|&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=46863]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/214752/Activity_Locking_20060317.7z]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.4&lt;br /&gt;
| 1.6&lt;br /&gt;
| John Gschnaidner&lt;br /&gt;
| beta&lt;br /&gt;
| manual&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=50835]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/232191/ALv2.4beta.7z]&lt;br /&gt;
| Tabs&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.3&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=35488]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/164285/activitylocking20051201.zip]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| A/R/T dep on A/Rs&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.2&lt;br /&gt;
| 1.6&lt;br /&gt;
| Gschnaidner, Mayor, Busch&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=47906]&lt;br /&gt;
| [http://proemployees.com/ActivityLockingWithHide-1.6.zip]&lt;br /&gt;
| Tabs&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| almost&lt;br /&gt;
| A/R dep on A/Rs&lt;br /&gt;
| +Hide&lt;br /&gt;
|&lt;br /&gt;
| bug fix&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.0&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor, Bernard Boucher&lt;br /&gt;
| Updated&lt;br /&gt;
| Automatic&lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=31627#152788]&lt;br /&gt;
| [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip]&lt;br /&gt;
| Padlock Icons&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| see above&lt;br /&gt;
|-----&lt;br /&gt;
| C A 1.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Borja Rubio Reyes, David Delgado&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=36697]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=General installation instructions DRAFT=&lt;br /&gt;
Installing AL on a localhost (desktop) machine was not difficult!  Some months ago I must have downloaded and connected phpAdministration and that came in handy for step 6.   I just did a conversion and it took me less than 30 minutes (actually I think the AL part was done in 3 minutes ) because I wanted to install the latest version of Moodle 1.6 and then zipped my entire Moodle16 file structure before I attempted the AL installation.&lt;br /&gt;
*1. Perform any backups you think are necessary (I zipped everything in my localhost path).&lt;br /&gt;
*2. Select the zip file flavor of AL you want and download it (I used Chardelle&#039;s zip plus Bernards tweak found in 2.2 above)&lt;br /&gt;
*3. Unzip it to a non Moodle place.  (Like to keep the folder structures option)&lt;br /&gt;
*4. Locate the MySQL.sql file so you can find it again.&lt;br /&gt;
*5. In Moodle as admin, go to Administration, Configuration and turn on Maintence Mode.&lt;br /&gt;
*6. Go to Administration, Database. In the home query window, on the left, click on moodle (mine says Moodle16 and has a bunch of mdl_ listings under it). &lt;br /&gt;
*7. Best: Click on the SQL tab. In the location of the text file, browse to the file in #4, then click go.&lt;br /&gt;
*7. Alternative: use the MySQL document and make or changes in &lt;br /&gt;
*8. Leave Moodle, shut that browser window.&lt;br /&gt;
*9.  Now you need to move the files in the folders located in #3 to your Moodle file structure.   (See my tip below). In your non moodle area you have unpack the file to a folder called ActivityLockingWithHide.  It has a folder called Moodle in it, with sub folders under it, for example ActivityLockingWithHide\Moodle\Course.  You should copy ever file from there to your local host file structure in the same spot. (Mine is Moodle16\Moodle\Course ).&lt;br /&gt;
*10. Go back into Moodle, log in as Admin, go to Administration. Moodle will adjust itself.&lt;br /&gt;
*11 Check in Administration, Configuration, Maintence to make sure it is disabled.  &lt;br /&gt;
*12.  You are done, check out a lesson with weeks or topics, go to lesson settings and notice the new tabs.&lt;br /&gt;
* TIP?   There is probably a slicker way but after I unzipped the file in #3, I went down a level and zipped the Moodle folder.  Then I unpacked the files to Moodle16\, told the unzip program to keep the folder structure and overwrite existing files.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
*[[Adding_activity_locks]] will give the reader an idea of what one of the flavors of Activity Locking looks like for a student and teacher setting it up.  &lt;br /&gt;
&lt;br /&gt;
Please visit the Moodle Forum for more information concerning Activity Locking and Conditional Activities-&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=35488#220984:  AL v2.1-M1.6] titled Activity Locking v2.1 (for Moodle 1.6)&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=46863:  AL v3.0-Mx] titled Activity Locking v3&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36697 AL v3.0-DD] titled NEW research on CONDITIONAL ACTIVITIES in Moodle&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=31627&amp;amp;parent=152788: AL v2.1 LALR]  titled Latest Activity Locking Release started 19 October 2005&lt;br /&gt;
* http://moodle.org/mod/forum/view.php?id=4295&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=47906&amp;amp;parent=221613 AL v2.1 wH1.6] titled Re: Certificate for 1.6 with security in Activity Modules forum&lt;br /&gt;
&lt;br /&gt;
There is a very specialized-limited type of activity locking under a lesson (activity) setting called dependency in 1.6.   See: *https://docs.moodle.org/en/Adding/editing_a_lesson#Dependent_on .&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4061</id>
		<title>Activity Locking</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4061"/>
		<updated>2006-07-30T13:54:42Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* Table of Versions, to be completed... */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
This page is an attempt to consolidate and explain the available activity locking (AL) code that is present for Moodle 1.5.x and 1.6.x. This page will hopefully help explain all the available versions and their respective features. Some of the reference here will overlap with the existing MoodleDoc page covering [[Conditional activities]]. &lt;br /&gt;
&lt;br /&gt;
Please be patient as this page is new and under development.  See page comments for reference material.&lt;br /&gt;
&lt;br /&gt;
=Types of activity locking code=&lt;br /&gt;
For the purpose of this MoodleDoc article: AL is any code that allows the user to make decisions on the next available resource or item the student will be able to use based on student events or quiz performance. There is some activity locking code that is very quick and dirty to simply lock future activities and then there is much more complex code based on the conditional activity though structure which attempts to progress the student through the course in a thought out progression based on activities and performance. Again we hope to clarify some of this here.&lt;br /&gt;
&lt;br /&gt;
==AL Branch 0.1 (Bernard Boucher)==&lt;br /&gt;
Bernard started all this with a hack to lock quiz and resources in [http://moodle.org/mod/forum/discuss.php?d=2948#12825 october 2003]. The certificate based on a quiz score was added in [http://moodle.org/mod/forum/discuss.php?d=9766#59875 september 2004] with version 0.7.  It was a great start!&lt;br /&gt;
&lt;br /&gt;
== AL Branch 2.0 for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
*This has been virtually a complete rewrite and as such there are areas of functionality the were available in older versions of AL that are not in this.    &lt;br /&gt;
&lt;br /&gt;
* Conditional locking: Lock based on a user&#039;s performance in previous activities. You can also choose to unlock and activity if a user scores less than a certain grade.&lt;br /&gt;
* Show activity completion: The checkbox that appears before each activity to show it have been done.&lt;br /&gt;
* A variation on this  also hides future activities, see AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch) below.&lt;br /&gt;
* Bernard Boucher reworked Stuart&#039;s version for Moolde 1.6, initially on June 20, 2006 and updated on July 10, 2006 posted [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip &#039;&#039;&#039;Activity Locking V 2.0 for Moodle 1.6&#039;&#039;&#039;] on [http://moodle.org/mod/forum/discuss.php?d=46863#220125 Activity Locking v3 or v2 for testing only].&lt;br /&gt;
&lt;br /&gt;
===Installation for 2.1 for Moodle 1.6(Stuart Mayor)===&lt;br /&gt;
&#039;&#039;&#039;activitylocking20051201.zip&#039;&#039;&#039; the initial version&lt;br /&gt;
&lt;br /&gt;
* Firstly, you need the stable build of Moodle 1.6. This version of AL might work on earlier releases but I didn&#039;t write it with them in mind and I certainly can&#039;t support them.&lt;br /&gt;
Next, you need to modify one table in the database and add a new one (I use phpmyadmin for this). &lt;br /&gt;
&lt;br /&gt;
* The table you need to modify is mdl_course_modules and you need to add the following fields:&lt;br /&gt;
completedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
completedscore VARCHAR(255) NOT NULL&lt;br /&gt;
completedstyle VARCHAR(255) NOT NULL&lt;br /&gt;
lockedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
lockedstyle VARCHAR(255) NOT NULL DEFAULT &#039;locked&#039;&lt;br /&gt;
lockedvisible TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
delay INT(10) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
&lt;br /&gt;
* The table you need to create is as follows:&lt;br /&gt;
CREATE TABLE `mdl_course_locks` (&lt;br /&gt;
`id` int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
`courseid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locktype` varchar(10) NOT NULL default &#039;&#039;,&lt;br /&gt;
`targetid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locks` longtext NOT NULL,&lt;br /&gt;
PRIMARY KEY (`id`)&lt;br /&gt;
) TYPE=MyISAM COMMENT=&#039;Contains locks for sections and modules&#039;;&lt;br /&gt;
* Lastly, you need to copy the following files from the zip file:&lt;br /&gt;
lib/moodlelib.php to moodle/lib/moodlelib.php&lt;br /&gt;
lib/locklib.php to moodle/lib/locklib.php&lt;br /&gt;
course/lib.php to moodle/course/lib.php&lt;br /&gt;
course/lock.php to moodle/course/lock.php&lt;br /&gt;
course/mod.php to moodle/course/mod.php&lt;br /&gt;
course/settings.html to moodle/course/settings.html&lt;br /&gt;
pix/t/open.gif to moodle/pix/t/open.gif&lt;br /&gt;
pix/t/closed.gif to moodle/pix/t/closed.gif&lt;br /&gt;
lang/en/lock.php to moodle/lang/en/lock.php&lt;br /&gt;
&lt;br /&gt;
==AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch and others)==&lt;br /&gt;
John&#039;s versionincludes the settings tab--making it possible to set the hide/visible options, as well as the completion (a checkmark in front of a resource/activity) options, says Chardelle.  &lt;br /&gt;
* A variation on  Stuart Mayor&#039;s 2.1, it hides topics dependent upon conditions set on specific activities/resources  &#039;&#039;&#039;ALV2_1_debug.ZIP&#039;&#039;&#039; (John). Had bug which Benard tweaked out.&lt;br /&gt;
* A build of Stuarts Mayor&#039;s 2.1 it locks and/or hides specific activities depending upon conditions set on specific activities/resources. Was posted by Chardelle in [http://proemployees.com/ActivityLockingWithHide-1.6.zip &#039;&#039;&#039;ActivityLockingWithHide-1.6.zip&#039;&#039;&#039;]. Probably same as above. Had bug which Benard tweaked out.&lt;br /&gt;
* A tweak by Bernard Boucher on June 27, 2006 was posted [http://moodle.org/mod/forum/discuss.php?d=35488&amp;amp;parent=222516 moodle/lib/locklib.php file] and called &#039;&#039;&#039;locklib.zip&#039;&#039;&#039; seems to fix known bug in both the above downloads.&lt;br /&gt;
==AL Branch 2.4 for Moodle 1.6 (John Gschnaidner)==&lt;br /&gt;
Further development of the 2.2 as a hack (no installation function).&lt;br /&gt;
:&#039;&#039;&#039;Currently beta status!&#039;&#039;&#039;&lt;br /&gt;
:In this version:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Locking and Completing modules and sections parallel&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
&lt;br /&gt;
==AL Branch 3.s for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
Similar to the 2.x versions. Major difference is that a question to the student unlocks activities.  Being actively developed and tested.&lt;br /&gt;
&lt;br /&gt;
==CA Branch 1.0 for Moodle 1.5.2 (Borja Rubio Reyes)==&lt;br /&gt;
Details and discussed in the thread &amp;quot;[http://moodle.org/mod/forum/discuss.php?d=36697 NEW research on CONDITIONAL ACTIVITIES in Moodle]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
= Table of Versions, to be completed... =&lt;br /&gt;
{| border=&amp;quot;3&amp;quot; padding=&amp;quot;4&amp;quot;&lt;br /&gt;
|+ Activity Locking updated 10 July 2006 17:50 EDT&lt;br /&gt;
! -Version-  &lt;br /&gt;
! Moodle version&lt;br /&gt;
! Who&lt;br /&gt;
! Status&lt;br /&gt;
! MySql Install&lt;br /&gt;
! Docs&lt;br /&gt;
! Download&lt;br /&gt;
! Teacher Interface &lt;br /&gt;
! Hide Option&lt;br /&gt;
! Completion Box Option&lt;br /&gt;
! Section Lock &lt;br /&gt;
! Quiz Question &lt;br /&gt;
! Comments &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Bug &lt;br /&gt;
! Bug &lt;br /&gt;
|-----&lt;br /&gt;
| AL 3.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| not finished&lt;br /&gt;
|&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=46863]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/214752/Activity_Locking_20060317.7z]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.4&lt;br /&gt;
| 1.6&lt;br /&gt;
| John Gschnaidner&lt;br /&gt;
| beta&lt;br /&gt;
| manual&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
| Tabs&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.3&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=35488]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/164285/activitylocking20051201.zip]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| A/R/T dep on A/Rs&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.2&lt;br /&gt;
| 1.6&lt;br /&gt;
| Gschnaidner, Mayor, Busch&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=47906]&lt;br /&gt;
| [http://proemployees.com/ActivityLockingWithHide-1.6.zip]&lt;br /&gt;
| Tabs&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| almost&lt;br /&gt;
| A/R dep on A/Rs&lt;br /&gt;
| +Hide&lt;br /&gt;
|&lt;br /&gt;
| bug fix&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.0&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor, Bernard Boucher&lt;br /&gt;
| Updated&lt;br /&gt;
| Automatic&lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=31627#152788]&lt;br /&gt;
| [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip]&lt;br /&gt;
| Padlock Icons&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| see above&lt;br /&gt;
|-----&lt;br /&gt;
| C A 1.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Borja Rubio Reyes, David Delgado&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=36697]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=General installation instructions DRAFT=&lt;br /&gt;
Installing AL on a localhost (desktop) machine was not difficult!  Some months ago I must have downloaded and connected phpAdministration and that came in handy for step 6.   I just did a conversion and it took me less than 30 minutes (actually I think the AL part was done in 3 minutes ) because I wanted to install the latest version of Moodle 1.6 and then zipped my entire Moodle16 file structure before I attempted the AL installation.&lt;br /&gt;
*1. Perform any backups you think are necessary (I zipped everything in my localhost path).&lt;br /&gt;
*2. Select the zip file flavor of AL you want and download it (I used Chardelle&#039;s zip plus Bernards tweak found in 2.2 above)&lt;br /&gt;
*3. Unzip it to a non Moodle place.  (Like to keep the folder structures option)&lt;br /&gt;
*4. Locate the MySQL.sql file so you can find it again.&lt;br /&gt;
*5. In Moodle as admin, go to Administration, Configuration and turn on Maintence Mode.&lt;br /&gt;
*6. Go to Administration, Database. In the home query window, on the left, click on moodle (mine says Moodle16 and has a bunch of mdl_ listings under it). &lt;br /&gt;
*7. Best: Click on the SQL tab. In the location of the text file, browse to the file in #4, then click go.&lt;br /&gt;
*7. Alternative: use the MySQL document and make or changes in &lt;br /&gt;
*8. Leave Moodle, shut that browser window.&lt;br /&gt;
*9.  Now you need to move the files in the folders located in #3 to your Moodle file structure.   (See my tip below). In your non moodle area you have unpack the file to a folder called ActivityLockingWithHide.  It has a folder called Moodle in it, with sub folders under it, for example ActivityLockingWithHide\Moodle\Course.  You should copy ever file from there to your local host file structure in the same spot. (Mine is Moodle16\Moodle\Course ).&lt;br /&gt;
*10. Go back into Moodle, log in as Admin, go to Administration. Moodle will adjust itself.&lt;br /&gt;
*11 Check in Administration, Configuration, Maintence to make sure it is disabled.  &lt;br /&gt;
*12.  You are done, check out a lesson with weeks or topics, go to lesson settings and notice the new tabs.&lt;br /&gt;
* TIP?   There is probably a slicker way but after I unzipped the file in #3, I went down a level and zipped the Moodle folder.  Then I unpacked the files to Moodle16\, told the unzip program to keep the folder structure and overwrite existing files.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
*[[Adding_activity_locks]] will give the reader an idea of what one of the flavors of Activity Locking looks like for a student and teacher setting it up.  &lt;br /&gt;
&lt;br /&gt;
Please visit the Moodle Forum for more information concerning Activity Locking and Conditional Activities-&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=35488#220984:  AL v2.1-M1.6] titled Activity Locking v2.1 (for Moodle 1.6)&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=46863:  AL v3.0-Mx] titled Activity Locking v3&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36697 AL v3.0-DD] titled NEW research on CONDITIONAL ACTIVITIES in Moodle&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=31627&amp;amp;parent=152788: AL v2.1 LALR]  titled Latest Activity Locking Release started 19 October 2005&lt;br /&gt;
* http://moodle.org/mod/forum/view.php?id=4295&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=47906&amp;amp;parent=221613 AL v2.1 wH1.6] titled Re: Certificate for 1.6 with security in Activity Modules forum&lt;br /&gt;
&lt;br /&gt;
There is a very specialized-limited type of activity locking under a lesson (activity) setting called dependency in 1.6.   See: *https://docs.moodle.org/en/Adding/editing_a_lesson#Dependent_on .&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4060</id>
		<title>Activity Locking</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4060"/>
		<updated>2006-07-30T13:40:44Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* AL Branch 2.4 for Moodle 1.6 (John Gschnaidner) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
This page is an attempt to consolidate and explain the available activity locking (AL) code that is present for Moodle 1.5.x and 1.6.x. This page will hopefully help explain all the available versions and their respective features. Some of the reference here will overlap with the existing MoodleDoc page covering [[Conditional activities]]. &lt;br /&gt;
&lt;br /&gt;
Please be patient as this page is new and under development.  See page comments for reference material.&lt;br /&gt;
&lt;br /&gt;
=Types of activity locking code=&lt;br /&gt;
For the purpose of this MoodleDoc article: AL is any code that allows the user to make decisions on the next available resource or item the student will be able to use based on student events or quiz performance. There is some activity locking code that is very quick and dirty to simply lock future activities and then there is much more complex code based on the conditional activity though structure which attempts to progress the student through the course in a thought out progression based on activities and performance. Again we hope to clarify some of this here.&lt;br /&gt;
&lt;br /&gt;
==AL Branch 0.1 (Bernard Boucher)==&lt;br /&gt;
Bernard started all this with a hack to lock quiz and resources in [http://moodle.org/mod/forum/discuss.php?d=2948#12825 october 2003]. The certificate based on a quiz score was added in [http://moodle.org/mod/forum/discuss.php?d=9766#59875 september 2004] with version 0.7.  It was a great start!&lt;br /&gt;
&lt;br /&gt;
== AL Branch 2.0 for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
*This has been virtually a complete rewrite and as such there are areas of functionality the were available in older versions of AL that are not in this.    &lt;br /&gt;
&lt;br /&gt;
* Conditional locking: Lock based on a user&#039;s performance in previous activities. You can also choose to unlock and activity if a user scores less than a certain grade.&lt;br /&gt;
* Show activity completion: The checkbox that appears before each activity to show it have been done.&lt;br /&gt;
* A variation on this  also hides future activities, see AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch) below.&lt;br /&gt;
* Bernard Boucher reworked Stuart&#039;s version for Moolde 1.6, initially on June 20, 2006 and updated on July 10, 2006 posted [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip &#039;&#039;&#039;Activity Locking V 2.0 for Moodle 1.6&#039;&#039;&#039;] on [http://moodle.org/mod/forum/discuss.php?d=46863#220125 Activity Locking v3 or v2 for testing only].&lt;br /&gt;
&lt;br /&gt;
===Installation for 2.1 for Moodle 1.6(Stuart Mayor)===&lt;br /&gt;
&#039;&#039;&#039;activitylocking20051201.zip&#039;&#039;&#039; the initial version&lt;br /&gt;
&lt;br /&gt;
* Firstly, you need the stable build of Moodle 1.6. This version of AL might work on earlier releases but I didn&#039;t write it with them in mind and I certainly can&#039;t support them.&lt;br /&gt;
Next, you need to modify one table in the database and add a new one (I use phpmyadmin for this). &lt;br /&gt;
&lt;br /&gt;
* The table you need to modify is mdl_course_modules and you need to add the following fields:&lt;br /&gt;
completedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
completedscore VARCHAR(255) NOT NULL&lt;br /&gt;
completedstyle VARCHAR(255) NOT NULL&lt;br /&gt;
lockedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
lockedstyle VARCHAR(255) NOT NULL DEFAULT &#039;locked&#039;&lt;br /&gt;
lockedvisible TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
delay INT(10) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
&lt;br /&gt;
* The table you need to create is as follows:&lt;br /&gt;
CREATE TABLE `mdl_course_locks` (&lt;br /&gt;
`id` int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
`courseid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locktype` varchar(10) NOT NULL default &#039;&#039;,&lt;br /&gt;
`targetid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locks` longtext NOT NULL,&lt;br /&gt;
PRIMARY KEY (`id`)&lt;br /&gt;
) TYPE=MyISAM COMMENT=&#039;Contains locks for sections and modules&#039;;&lt;br /&gt;
* Lastly, you need to copy the following files from the zip file:&lt;br /&gt;
lib/moodlelib.php to moodle/lib/moodlelib.php&lt;br /&gt;
lib/locklib.php to moodle/lib/locklib.php&lt;br /&gt;
course/lib.php to moodle/course/lib.php&lt;br /&gt;
course/lock.php to moodle/course/lock.php&lt;br /&gt;
course/mod.php to moodle/course/mod.php&lt;br /&gt;
course/settings.html to moodle/course/settings.html&lt;br /&gt;
pix/t/open.gif to moodle/pix/t/open.gif&lt;br /&gt;
pix/t/closed.gif to moodle/pix/t/closed.gif&lt;br /&gt;
lang/en/lock.php to moodle/lang/en/lock.php&lt;br /&gt;
&lt;br /&gt;
==AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch and others)==&lt;br /&gt;
John&#039;s versionincludes the settings tab--making it possible to set the hide/visible options, as well as the completion (a checkmark in front of a resource/activity) options, says Chardelle.  &lt;br /&gt;
* A variation on  Stuart Mayor&#039;s 2.1, it hides topics dependent upon conditions set on specific activities/resources  &#039;&#039;&#039;ALV2_1_debug.ZIP&#039;&#039;&#039; (John). Had bug which Benard tweaked out.&lt;br /&gt;
* A build of Stuarts Mayor&#039;s 2.1 it locks and/or hides specific activities depending upon conditions set on specific activities/resources. Was posted by Chardelle in [http://proemployees.com/ActivityLockingWithHide-1.6.zip &#039;&#039;&#039;ActivityLockingWithHide-1.6.zip&#039;&#039;&#039;]. Probably same as above. Had bug which Benard tweaked out.&lt;br /&gt;
* A tweak by Bernard Boucher on June 27, 2006 was posted [http://moodle.org/mod/forum/discuss.php?d=35488&amp;amp;parent=222516 moodle/lib/locklib.php file] and called &#039;&#039;&#039;locklib.zip&#039;&#039;&#039; seems to fix known bug in both the above downloads.&lt;br /&gt;
==AL Branch 2.4 for Moodle 1.6 (John Gschnaidner)==&lt;br /&gt;
Further development of the 2.2 as a hack (no installation function).&lt;br /&gt;
:&#039;&#039;&#039;Currently beta status!&#039;&#039;&#039;&lt;br /&gt;
:In this version:&lt;br /&gt;
* Supports module &#039;&#039;&#039;and&#039;&#039;&#039; section locks&lt;br /&gt;
* Locking and Completing modules and sections parallel&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
&lt;br /&gt;
==AL Branch 3.s for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
Similar to the 2.x versions. Major difference is that a question to the student unlocks activities.  Being actively developed and tested.&lt;br /&gt;
&lt;br /&gt;
==CA Branch 1.0 for Moodle 1.5.2 (Borja Rubio Reyes)==&lt;br /&gt;
Details and discussed in the thread &amp;quot;[http://moodle.org/mod/forum/discuss.php?d=36697 NEW research on CONDITIONAL ACTIVITIES in Moodle]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
= Table of Versions, to be completed... =&lt;br /&gt;
{| border=&amp;quot;3&amp;quot; padding=&amp;quot;4&amp;quot;&lt;br /&gt;
|+ Activity Locking updated 10 July 2006 17:50 EDT&lt;br /&gt;
! -Version-  &lt;br /&gt;
! Moodle version&lt;br /&gt;
! Who&lt;br /&gt;
! Status&lt;br /&gt;
! MySql Install&lt;br /&gt;
! Docs&lt;br /&gt;
! Download&lt;br /&gt;
! Teacher Interface &lt;br /&gt;
! Hide Option&lt;br /&gt;
! Completion Box Option&lt;br /&gt;
! Section Lock &lt;br /&gt;
! Quiz Question &lt;br /&gt;
! Comments &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Bug &lt;br /&gt;
! Bug &lt;br /&gt;
|-----&lt;br /&gt;
| AL 3.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| not finished&lt;br /&gt;
|&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=46863]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/214752/Activity_Locking_20060317.7z]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.3&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=35488]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/164285/activitylocking20051201.zip]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| A/R/T dep on A/Rs&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.2&lt;br /&gt;
| 1.6&lt;br /&gt;
| Gschnaidner, Mayor, Busch&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=47906]&lt;br /&gt;
| [http://proemployees.com/ActivityLockingWithHide-1.6.zip]&lt;br /&gt;
| Tabs&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| almost&lt;br /&gt;
| A/R dep on A/Rs&lt;br /&gt;
| +Hide&lt;br /&gt;
|&lt;br /&gt;
| bug fix&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.0&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor, Bernard Boucher&lt;br /&gt;
| Updated&lt;br /&gt;
| Automatic&lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=31627#152788]&lt;br /&gt;
| [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip]&lt;br /&gt;
| Padlock Icons&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| see above&lt;br /&gt;
|-----&lt;br /&gt;
| C A 1.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Borja Rubio Reyes, David Delgado&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=36697]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=General installation instructions DRAFT=&lt;br /&gt;
Installing AL on a localhost (desktop) machine was not difficult!  Some months ago I must have downloaded and connected phpAdministration and that came in handy for step 6.   I just did a conversion and it took me less than 30 minutes (actually I think the AL part was done in 3 minutes ) because I wanted to install the latest version of Moodle 1.6 and then zipped my entire Moodle16 file structure before I attempted the AL installation.&lt;br /&gt;
*1. Perform any backups you think are necessary (I zipped everything in my localhost path).&lt;br /&gt;
*2. Select the zip file flavor of AL you want and download it (I used Chardelle&#039;s zip plus Bernards tweak found in 2.2 above)&lt;br /&gt;
*3. Unzip it to a non Moodle place.  (Like to keep the folder structures option)&lt;br /&gt;
*4. Locate the MySQL.sql file so you can find it again.&lt;br /&gt;
*5. In Moodle as admin, go to Administration, Configuration and turn on Maintence Mode.&lt;br /&gt;
*6. Go to Administration, Database. In the home query window, on the left, click on moodle (mine says Moodle16 and has a bunch of mdl_ listings under it). &lt;br /&gt;
*7. Best: Click on the SQL tab. In the location of the text file, browse to the file in #4, then click go.&lt;br /&gt;
*7. Alternative: use the MySQL document and make or changes in &lt;br /&gt;
*8. Leave Moodle, shut that browser window.&lt;br /&gt;
*9.  Now you need to move the files in the folders located in #3 to your Moodle file structure.   (See my tip below). In your non moodle area you have unpack the file to a folder called ActivityLockingWithHide.  It has a folder called Moodle in it, with sub folders under it, for example ActivityLockingWithHide\Moodle\Course.  You should copy ever file from there to your local host file structure in the same spot. (Mine is Moodle16\Moodle\Course ).&lt;br /&gt;
*10. Go back into Moodle, log in as Admin, go to Administration. Moodle will adjust itself.&lt;br /&gt;
*11 Check in Administration, Configuration, Maintence to make sure it is disabled.  &lt;br /&gt;
*12.  You are done, check out a lesson with weeks or topics, go to lesson settings and notice the new tabs.&lt;br /&gt;
* TIP?   There is probably a slicker way but after I unzipped the file in #3, I went down a level and zipped the Moodle folder.  Then I unpacked the files to Moodle16\, told the unzip program to keep the folder structure and overwrite existing files.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
*[[Adding_activity_locks]] will give the reader an idea of what one of the flavors of Activity Locking looks like for a student and teacher setting it up.  &lt;br /&gt;
&lt;br /&gt;
Please visit the Moodle Forum for more information concerning Activity Locking and Conditional Activities-&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=35488#220984:  AL v2.1-M1.6] titled Activity Locking v2.1 (for Moodle 1.6)&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=46863:  AL v3.0-Mx] titled Activity Locking v3&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36697 AL v3.0-DD] titled NEW research on CONDITIONAL ACTIVITIES in Moodle&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=31627&amp;amp;parent=152788: AL v2.1 LALR]  titled Latest Activity Locking Release started 19 October 2005&lt;br /&gt;
* http://moodle.org/mod/forum/view.php?id=4295&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=47906&amp;amp;parent=221613 AL v2.1 wH1.6] titled Re: Certificate for 1.6 with security in Activity Modules forum&lt;br /&gt;
&lt;br /&gt;
There is a very specialized-limited type of activity locking under a lesson (activity) setting called dependency in 1.6.   See: *https://docs.moodle.org/en/Adding/editing_a_lesson#Dependent_on .&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4059</id>
		<title>Activity Locking</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4059"/>
		<updated>2006-07-30T13:35:30Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* AL Branch 2.4 for Moodle 1.6 (John Gschnaidner) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
This page is an attempt to consolidate and explain the available activity locking (AL) code that is present for Moodle 1.5.x and 1.6.x. This page will hopefully help explain all the available versions and their respective features. Some of the reference here will overlap with the existing MoodleDoc page covering [[Conditional activities]]. &lt;br /&gt;
&lt;br /&gt;
Please be patient as this page is new and under development.  See page comments for reference material.&lt;br /&gt;
&lt;br /&gt;
=Types of activity locking code=&lt;br /&gt;
For the purpose of this MoodleDoc article: AL is any code that allows the user to make decisions on the next available resource or item the student will be able to use based on student events or quiz performance. There is some activity locking code that is very quick and dirty to simply lock future activities and then there is much more complex code based on the conditional activity though structure which attempts to progress the student through the course in a thought out progression based on activities and performance. Again we hope to clarify some of this here.&lt;br /&gt;
&lt;br /&gt;
==AL Branch 0.1 (Bernard Boucher)==&lt;br /&gt;
Bernard started all this with a hack to lock quiz and resources in [http://moodle.org/mod/forum/discuss.php?d=2948#12825 october 2003]. The certificate based on a quiz score was added in [http://moodle.org/mod/forum/discuss.php?d=9766#59875 september 2004] with version 0.7.  It was a great start!&lt;br /&gt;
&lt;br /&gt;
== AL Branch 2.0 for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
*This has been virtually a complete rewrite and as such there are areas of functionality the were available in older versions of AL that are not in this.    &lt;br /&gt;
&lt;br /&gt;
* Conditional locking: Lock based on a user&#039;s performance in previous activities. You can also choose to unlock and activity if a user scores less than a certain grade.&lt;br /&gt;
* Show activity completion: The checkbox that appears before each activity to show it have been done.&lt;br /&gt;
* A variation on this  also hides future activities, see AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch) below.&lt;br /&gt;
* Bernard Boucher reworked Stuart&#039;s version for Moolde 1.6, initially on June 20, 2006 and updated on July 10, 2006 posted [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip &#039;&#039;&#039;Activity Locking V 2.0 for Moodle 1.6&#039;&#039;&#039;] on [http://moodle.org/mod/forum/discuss.php?d=46863#220125 Activity Locking v3 or v2 for testing only].&lt;br /&gt;
&lt;br /&gt;
===Installation for 2.1 for Moodle 1.6(Stuart Mayor)===&lt;br /&gt;
&#039;&#039;&#039;activitylocking20051201.zip&#039;&#039;&#039; the initial version&lt;br /&gt;
&lt;br /&gt;
* Firstly, you need the stable build of Moodle 1.6. This version of AL might work on earlier releases but I didn&#039;t write it with them in mind and I certainly can&#039;t support them.&lt;br /&gt;
Next, you need to modify one table in the database and add a new one (I use phpmyadmin for this). &lt;br /&gt;
&lt;br /&gt;
* The table you need to modify is mdl_course_modules and you need to add the following fields:&lt;br /&gt;
completedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
completedscore VARCHAR(255) NOT NULL&lt;br /&gt;
completedstyle VARCHAR(255) NOT NULL&lt;br /&gt;
lockedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
lockedstyle VARCHAR(255) NOT NULL DEFAULT &#039;locked&#039;&lt;br /&gt;
lockedvisible TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
delay INT(10) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
&lt;br /&gt;
* The table you need to create is as follows:&lt;br /&gt;
CREATE TABLE `mdl_course_locks` (&lt;br /&gt;
`id` int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
`courseid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locktype` varchar(10) NOT NULL default &#039;&#039;,&lt;br /&gt;
`targetid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locks` longtext NOT NULL,&lt;br /&gt;
PRIMARY KEY (`id`)&lt;br /&gt;
) TYPE=MyISAM COMMENT=&#039;Contains locks for sections and modules&#039;;&lt;br /&gt;
* Lastly, you need to copy the following files from the zip file:&lt;br /&gt;
lib/moodlelib.php to moodle/lib/moodlelib.php&lt;br /&gt;
lib/locklib.php to moodle/lib/locklib.php&lt;br /&gt;
course/lib.php to moodle/course/lib.php&lt;br /&gt;
course/lock.php to moodle/course/lock.php&lt;br /&gt;
course/mod.php to moodle/course/mod.php&lt;br /&gt;
course/settings.html to moodle/course/settings.html&lt;br /&gt;
pix/t/open.gif to moodle/pix/t/open.gif&lt;br /&gt;
pix/t/closed.gif to moodle/pix/t/closed.gif&lt;br /&gt;
lang/en/lock.php to moodle/lang/en/lock.php&lt;br /&gt;
&lt;br /&gt;
==AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch and others)==&lt;br /&gt;
John&#039;s versionincludes the settings tab--making it possible to set the hide/visible options, as well as the completion (a checkmark in front of a resource/activity) options, says Chardelle.  &lt;br /&gt;
* A variation on  Stuart Mayor&#039;s 2.1, it hides topics dependent upon conditions set on specific activities/resources  &#039;&#039;&#039;ALV2_1_debug.ZIP&#039;&#039;&#039; (John). Had bug which Benard tweaked out.&lt;br /&gt;
* A build of Stuarts Mayor&#039;s 2.1 it locks and/or hides specific activities depending upon conditions set on specific activities/resources. Was posted by Chardelle in [http://proemployees.com/ActivityLockingWithHide-1.6.zip &#039;&#039;&#039;ActivityLockingWithHide-1.6.zip&#039;&#039;&#039;]. Probably same as above. Had bug which Benard tweaked out.&lt;br /&gt;
* A tweak by Bernard Boucher on June 27, 2006 was posted [http://moodle.org/mod/forum/discuss.php?d=35488&amp;amp;parent=222516 moodle/lib/locklib.php file] and called &#039;&#039;&#039;locklib.zip&#039;&#039;&#039; seems to fix known bug in both the above downloads.&lt;br /&gt;
==AL Branch 2.4 for Moodle 1.6 (John Gschnaidner)==&lt;br /&gt;
Further development of the 2.2.&lt;br /&gt;
:&#039;&#039;&#039;Currently beta status&#039;&#039;&#039;&lt;br /&gt;
:In this version:&lt;br /&gt;
* Supports modules AND sections&lt;br /&gt;
* Locking and Completing modules and sections parallel&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
* Language support and help&lt;br /&gt;
* Readme for features and installation&lt;br /&gt;
&lt;br /&gt;
==AL Branch 3.s for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
Similar to the 2.x versions. Major difference is that a question to the student unlocks activities.  Being actively developed and tested.&lt;br /&gt;
&lt;br /&gt;
==CA Branch 1.0 for Moodle 1.5.2 (Borja Rubio Reyes)==&lt;br /&gt;
Details and discussed in the thread &amp;quot;[http://moodle.org/mod/forum/discuss.php?d=36697 NEW research on CONDITIONAL ACTIVITIES in Moodle]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
= Table of Versions, to be completed... =&lt;br /&gt;
{| border=&amp;quot;3&amp;quot; padding=&amp;quot;4&amp;quot;&lt;br /&gt;
|+ Activity Locking updated 10 July 2006 17:50 EDT&lt;br /&gt;
! -Version-  &lt;br /&gt;
! Moodle version&lt;br /&gt;
! Who&lt;br /&gt;
! Status&lt;br /&gt;
! MySql Install&lt;br /&gt;
! Docs&lt;br /&gt;
! Download&lt;br /&gt;
! Teacher Interface &lt;br /&gt;
! Hide Option&lt;br /&gt;
! Completion Box Option&lt;br /&gt;
! Section Lock &lt;br /&gt;
! Quiz Question &lt;br /&gt;
! Comments &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Bug &lt;br /&gt;
! Bug &lt;br /&gt;
|-----&lt;br /&gt;
| AL 3.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| not finished&lt;br /&gt;
|&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=46863]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/214752/Activity_Locking_20060317.7z]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.3&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=35488]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/164285/activitylocking20051201.zip]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| A/R/T dep on A/Rs&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.2&lt;br /&gt;
| 1.6&lt;br /&gt;
| Gschnaidner, Mayor, Busch&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=47906]&lt;br /&gt;
| [http://proemployees.com/ActivityLockingWithHide-1.6.zip]&lt;br /&gt;
| Tabs&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| almost&lt;br /&gt;
| A/R dep on A/Rs&lt;br /&gt;
| +Hide&lt;br /&gt;
|&lt;br /&gt;
| bug fix&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.0&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor, Bernard Boucher&lt;br /&gt;
| Updated&lt;br /&gt;
| Automatic&lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=31627#152788]&lt;br /&gt;
| [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip]&lt;br /&gt;
| Padlock Icons&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| see above&lt;br /&gt;
|-----&lt;br /&gt;
| C A 1.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Borja Rubio Reyes, David Delgado&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=36697]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=General installation instructions DRAFT=&lt;br /&gt;
Installing AL on a localhost (desktop) machine was not difficult!  Some months ago I must have downloaded and connected phpAdministration and that came in handy for step 6.   I just did a conversion and it took me less than 30 minutes (actually I think the AL part was done in 3 minutes ) because I wanted to install the latest version of Moodle 1.6 and then zipped my entire Moodle16 file structure before I attempted the AL installation.&lt;br /&gt;
*1. Perform any backups you think are necessary (I zipped everything in my localhost path).&lt;br /&gt;
*2. Select the zip file flavor of AL you want and download it (I used Chardelle&#039;s zip plus Bernards tweak found in 2.2 above)&lt;br /&gt;
*3. Unzip it to a non Moodle place.  (Like to keep the folder structures option)&lt;br /&gt;
*4. Locate the MySQL.sql file so you can find it again.&lt;br /&gt;
*5. In Moodle as admin, go to Administration, Configuration and turn on Maintence Mode.&lt;br /&gt;
*6. Go to Administration, Database. In the home query window, on the left, click on moodle (mine says Moodle16 and has a bunch of mdl_ listings under it). &lt;br /&gt;
*7. Best: Click on the SQL tab. In the location of the text file, browse to the file in #4, then click go.&lt;br /&gt;
*7. Alternative: use the MySQL document and make or changes in &lt;br /&gt;
*8. Leave Moodle, shut that browser window.&lt;br /&gt;
*9.  Now you need to move the files in the folders located in #3 to your Moodle file structure.   (See my tip below). In your non moodle area you have unpack the file to a folder called ActivityLockingWithHide.  It has a folder called Moodle in it, with sub folders under it, for example ActivityLockingWithHide\Moodle\Course.  You should copy ever file from there to your local host file structure in the same spot. (Mine is Moodle16\Moodle\Course ).&lt;br /&gt;
*10. Go back into Moodle, log in as Admin, go to Administration. Moodle will adjust itself.&lt;br /&gt;
*11 Check in Administration, Configuration, Maintence to make sure it is disabled.  &lt;br /&gt;
*12.  You are done, check out a lesson with weeks or topics, go to lesson settings and notice the new tabs.&lt;br /&gt;
* TIP?   There is probably a slicker way but after I unzipped the file in #3, I went down a level and zipped the Moodle folder.  Then I unpacked the files to Moodle16\, told the unzip program to keep the folder structure and overwrite existing files.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
*[[Adding_activity_locks]] will give the reader an idea of what one of the flavors of Activity Locking looks like for a student and teacher setting it up.  &lt;br /&gt;
&lt;br /&gt;
Please visit the Moodle Forum for more information concerning Activity Locking and Conditional Activities-&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=35488#220984:  AL v2.1-M1.6] titled Activity Locking v2.1 (for Moodle 1.6)&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=46863:  AL v3.0-Mx] titled Activity Locking v3&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36697 AL v3.0-DD] titled NEW research on CONDITIONAL ACTIVITIES in Moodle&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=31627&amp;amp;parent=152788: AL v2.1 LALR]  titled Latest Activity Locking Release started 19 October 2005&lt;br /&gt;
* http://moodle.org/mod/forum/view.php?id=4295&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=47906&amp;amp;parent=221613 AL v2.1 wH1.6] titled Re: Certificate for 1.6 with security in Activity Modules forum&lt;br /&gt;
&lt;br /&gt;
There is a very specialized-limited type of activity locking under a lesson (activity) setting called dependency in 1.6.   See: *https://docs.moodle.org/en/Adding/editing_a_lesson#Dependent_on .&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4058</id>
		<title>Activity Locking</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4058"/>
		<updated>2006-07-30T13:26:35Z</updated>

		<summary type="html">&lt;p&gt;John1mb: /* AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch and others) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
This page is an attempt to consolidate and explain the available activity locking (AL) code that is present for Moodle 1.5.x and 1.6.x. This page will hopefully help explain all the available versions and their respective features. Some of the reference here will overlap with the existing MoodleDoc page covering [[Conditional activities]]. &lt;br /&gt;
&lt;br /&gt;
Please be patient as this page is new and under development.  See page comments for reference material.&lt;br /&gt;
&lt;br /&gt;
=Types of activity locking code=&lt;br /&gt;
For the purpose of this MoodleDoc article: AL is any code that allows the user to make decisions on the next available resource or item the student will be able to use based on student events or quiz performance. There is some activity locking code that is very quick and dirty to simply lock future activities and then there is much more complex code based on the conditional activity though structure which attempts to progress the student through the course in a thought out progression based on activities and performance. Again we hope to clarify some of this here.&lt;br /&gt;
&lt;br /&gt;
==AL Branch 0.1 (Bernard Boucher)==&lt;br /&gt;
Bernard started all this with a hack to lock quiz and resources in [http://moodle.org/mod/forum/discuss.php?d=2948#12825 october 2003]. The certificate based on a quiz score was added in [http://moodle.org/mod/forum/discuss.php?d=9766#59875 september 2004] with version 0.7.  It was a great start!&lt;br /&gt;
&lt;br /&gt;
== AL Branch 2.0 for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
*This has been virtually a complete rewrite and as such there are areas of functionality the were available in older versions of AL that are not in this.    &lt;br /&gt;
&lt;br /&gt;
* Conditional locking: Lock based on a user&#039;s performance in previous activities. You can also choose to unlock and activity if a user scores less than a certain grade.&lt;br /&gt;
* Show activity completion: The checkbox that appears before each activity to show it have been done.&lt;br /&gt;
* A variation on this  also hides future activities, see AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch) below.&lt;br /&gt;
* Bernard Boucher reworked Stuart&#039;s version for Moolde 1.6, initially on June 20, 2006 and updated on July 10, 2006 posted [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip &#039;&#039;&#039;Activity Locking V 2.0 for Moodle 1.6&#039;&#039;&#039;] on [http://moodle.org/mod/forum/discuss.php?d=46863#220125 Activity Locking v3 or v2 for testing only].&lt;br /&gt;
&lt;br /&gt;
===Installation for 2.1 for Moodle 1.6(Stuart Mayor)===&lt;br /&gt;
&#039;&#039;&#039;activitylocking20051201.zip&#039;&#039;&#039; the initial version&lt;br /&gt;
&lt;br /&gt;
* Firstly, you need the stable build of Moodle 1.6. This version of AL might work on earlier releases but I didn&#039;t write it with them in mind and I certainly can&#039;t support them.&lt;br /&gt;
Next, you need to modify one table in the database and add a new one (I use phpmyadmin for this). &lt;br /&gt;
&lt;br /&gt;
* The table you need to modify is mdl_course_modules and you need to add the following fields:&lt;br /&gt;
completedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
completedscore VARCHAR(255) NOT NULL&lt;br /&gt;
completedstyle VARCHAR(255) NOT NULL&lt;br /&gt;
lockedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
lockedstyle VARCHAR(255) NOT NULL DEFAULT &#039;locked&#039;&lt;br /&gt;
lockedvisible TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
delay INT(10) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
&lt;br /&gt;
* The table you need to create is as follows:&lt;br /&gt;
CREATE TABLE `mdl_course_locks` (&lt;br /&gt;
`id` int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
`courseid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locktype` varchar(10) NOT NULL default &#039;&#039;,&lt;br /&gt;
`targetid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locks` longtext NOT NULL,&lt;br /&gt;
PRIMARY KEY (`id`)&lt;br /&gt;
) TYPE=MyISAM COMMENT=&#039;Contains locks for sections and modules&#039;;&lt;br /&gt;
* Lastly, you need to copy the following files from the zip file:&lt;br /&gt;
lib/moodlelib.php to moodle/lib/moodlelib.php&lt;br /&gt;
lib/locklib.php to moodle/lib/locklib.php&lt;br /&gt;
course/lib.php to moodle/course/lib.php&lt;br /&gt;
course/lock.php to moodle/course/lock.php&lt;br /&gt;
course/mod.php to moodle/course/mod.php&lt;br /&gt;
course/settings.html to moodle/course/settings.html&lt;br /&gt;
pix/t/open.gif to moodle/pix/t/open.gif&lt;br /&gt;
pix/t/closed.gif to moodle/pix/t/closed.gif&lt;br /&gt;
lang/en/lock.php to moodle/lang/en/lock.php&lt;br /&gt;
&lt;br /&gt;
==AL Branch 2.2 for Moodle 1.6 (John Gschnaidner-Chardelle Busch and others)==&lt;br /&gt;
John&#039;s versionincludes the settings tab--making it possible to set the hide/visible options, as well as the completion (a checkmark in front of a resource/activity) options, says Chardelle.  &lt;br /&gt;
* A variation on  Stuart Mayor&#039;s 2.1, it hides topics dependent upon conditions set on specific activities/resources  &#039;&#039;&#039;ALV2_1_debug.ZIP&#039;&#039;&#039; (John). Had bug which Benard tweaked out.&lt;br /&gt;
* A build of Stuarts Mayor&#039;s 2.1 it locks and/or hides specific activities depending upon conditions set on specific activities/resources. Was posted by Chardelle in [http://proemployees.com/ActivityLockingWithHide-1.6.zip &#039;&#039;&#039;ActivityLockingWithHide-1.6.zip&#039;&#039;&#039;]. Probably same as above. Had bug which Benard tweaked out.&lt;br /&gt;
* A tweak by Bernard Boucher on June 27, 2006 was posted [http://moodle.org/mod/forum/discuss.php?d=35488&amp;amp;parent=222516 moodle/lib/locklib.php file] and called &#039;&#039;&#039;locklib.zip&#039;&#039;&#039; seems to fix known bug in both the above downloads.&lt;br /&gt;
==AL Branch 2.4 for Moodle 1.6 (John Gschnaidner)==&lt;br /&gt;
Further development of the 2.2.&lt;br /&gt;
In this version&lt;br /&gt;
* Supports modules AND sections&lt;br /&gt;
* Locking and Completing modules and sections parallel&lt;br /&gt;
* CSS style and checkbox for locking and completing&lt;br /&gt;
* Hide when locked&lt;br /&gt;
&lt;br /&gt;
==AL Branch 3.s for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
Similar to the 2.x versions. Major difference is that a question to the student unlocks activities.  Being actively developed and tested.&lt;br /&gt;
&lt;br /&gt;
==CA Branch 1.0 for Moodle 1.5.2 (Borja Rubio Reyes)==&lt;br /&gt;
Details and discussed in the thread &amp;quot;[http://moodle.org/mod/forum/discuss.php?d=36697 NEW research on CONDITIONAL ACTIVITIES in Moodle]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
= Table of Versions, to be completed... =&lt;br /&gt;
{| border=&amp;quot;3&amp;quot; padding=&amp;quot;4&amp;quot;&lt;br /&gt;
|+ Activity Locking updated 10 July 2006 17:50 EDT&lt;br /&gt;
! -Version-  &lt;br /&gt;
! Moodle version&lt;br /&gt;
! Who&lt;br /&gt;
! Status&lt;br /&gt;
! MySql Install&lt;br /&gt;
! Docs&lt;br /&gt;
! Download&lt;br /&gt;
! Teacher Interface &lt;br /&gt;
! Hide Option&lt;br /&gt;
! Completion Box Option&lt;br /&gt;
! Section Lock &lt;br /&gt;
! Quiz Question &lt;br /&gt;
! Comments &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Bug &lt;br /&gt;
! Bug &lt;br /&gt;
|-----&lt;br /&gt;
| AL 3.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| not finished&lt;br /&gt;
|&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=46863]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/214752/Activity_Locking_20060317.7z]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes &lt;br /&gt;
| &lt;br /&gt;
| A/R dep on questions&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.3&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=35488]&lt;br /&gt;
| [http://moodle.org/file.php/5/moddata/forum/678/164285/activitylocking20051201.zip]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| &lt;br /&gt;
| A/R/T dep on A/Rs&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.2&lt;br /&gt;
| 1.6&lt;br /&gt;
| Gschnaidner, Mayor, Busch&lt;br /&gt;
| Testing&lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=47906]&lt;br /&gt;
| [http://proemployees.com/ActivityLockingWithHide-1.6.zip]&lt;br /&gt;
| Tabs&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| Yes&lt;br /&gt;
| almost&lt;br /&gt;
| A/R dep on A/Rs&lt;br /&gt;
| +Hide&lt;br /&gt;
|&lt;br /&gt;
| bug fix&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.0&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor, Bernard Boucher&lt;br /&gt;
| Updated&lt;br /&gt;
| Automatic&lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=31627#152788]&lt;br /&gt;
| [http://206.167.134.155/bb/authoring1/activityLocking2_0_for_1_6_july1006.zip]&lt;br /&gt;
| Padlock Icons&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| see above&lt;br /&gt;
|-----&lt;br /&gt;
| C A 1.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Borja Rubio Reyes, David Delgado&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=36697]&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=General installation instructions DRAFT=&lt;br /&gt;
Installing AL on a localhost (desktop) machine was not difficult!  Some months ago I must have downloaded and connected phpAdministration and that came in handy for step 6.   I just did a conversion and it took me less than 30 minutes (actually I think the AL part was done in 3 minutes ) because I wanted to install the latest version of Moodle 1.6 and then zipped my entire Moodle16 file structure before I attempted the AL installation.&lt;br /&gt;
*1. Perform any backups you think are necessary (I zipped everything in my localhost path).&lt;br /&gt;
*2. Select the zip file flavor of AL you want and download it (I used Chardelle&#039;s zip plus Bernards tweak found in 2.2 above)&lt;br /&gt;
*3. Unzip it to a non Moodle place.  (Like to keep the folder structures option)&lt;br /&gt;
*4. Locate the MySQL.sql file so you can find it again.&lt;br /&gt;
*5. In Moodle as admin, go to Administration, Configuration and turn on Maintence Mode.&lt;br /&gt;
*6. Go to Administration, Database. In the home query window, on the left, click on moodle (mine says Moodle16 and has a bunch of mdl_ listings under it). &lt;br /&gt;
*7. Best: Click on the SQL tab. In the location of the text file, browse to the file in #4, then click go.&lt;br /&gt;
*7. Alternative: use the MySQL document and make or changes in &lt;br /&gt;
*8. Leave Moodle, shut that browser window.&lt;br /&gt;
*9.  Now you need to move the files in the folders located in #3 to your Moodle file structure.   (See my tip below). In your non moodle area you have unpack the file to a folder called ActivityLockingWithHide.  It has a folder called Moodle in it, with sub folders under it, for example ActivityLockingWithHide\Moodle\Course.  You should copy ever file from there to your local host file structure in the same spot. (Mine is Moodle16\Moodle\Course ).&lt;br /&gt;
*10. Go back into Moodle, log in as Admin, go to Administration. Moodle will adjust itself.&lt;br /&gt;
*11 Check in Administration, Configuration, Maintence to make sure it is disabled.  &lt;br /&gt;
*12.  You are done, check out a lesson with weeks or topics, go to lesson settings and notice the new tabs.&lt;br /&gt;
* TIP?   There is probably a slicker way but after I unzipped the file in #3, I went down a level and zipped the Moodle folder.  Then I unpacked the files to Moodle16\, told the unzip program to keep the folder structure and overwrite existing files.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
*[[Adding_activity_locks]] will give the reader an idea of what one of the flavors of Activity Locking looks like for a student and teacher setting it up.  &lt;br /&gt;
&lt;br /&gt;
Please visit the Moodle Forum for more information concerning Activity Locking and Conditional Activities-&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=35488#220984:  AL v2.1-M1.6] titled Activity Locking v2.1 (for Moodle 1.6)&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=46863:  AL v3.0-Mx] titled Activity Locking v3&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36697 AL v3.0-DD] titled NEW research on CONDITIONAL ACTIVITIES in Moodle&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=31627&amp;amp;parent=152788: AL v2.1 LALR]  titled Latest Activity Locking Release started 19 October 2005&lt;br /&gt;
* http://moodle.org/mod/forum/view.php?id=4295&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=47906&amp;amp;parent=221613 AL v2.1 wH1.6] titled Re: Certificate for 1.6 with security in Activity Modules forum&lt;br /&gt;
&lt;br /&gt;
There is a very specialized-limited type of activity locking under a lesson (activity) setting called dependency in 1.6.   See: *https://docs.moodle.org/en/Adding/editing_a_lesson#Dependent_on .&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4004</id>
		<title>Activity Locking</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Activity_Locking&amp;diff=4004"/>
		<updated>2006-06-26T15:31:27Z</updated>

		<summary type="html">&lt;p&gt;John1mb: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
This page is an attempt to consolidate and explain the available activity locking (AL) code that is present for Moodle 1.5.x and 1.6.x. This page will hopefully help explain all the available versions and their respective features. Some of the reference here will overlap with the existing MoodleDoc page covering [[Conditional activities]]. &lt;br /&gt;
&lt;br /&gt;
Please be patient as this page is new and under development.  See page comments for reference material.&lt;br /&gt;
&lt;br /&gt;
=Types of activity locking code=&lt;br /&gt;
For the purpose of this MoodleDoc article: AL is any code that allows the user to make decisions on the next available resource or item the student will see based on student events or quiz performance. There is some activity locking code that is very quick and dirty to simply lock future activities and then there is much more complex code based on the conditional activity though structure which attempts to progress the student through the course in a thought out progression based on activities and performance. Again we hope to clarify some of this here..&lt;br /&gt;
&lt;br /&gt;
== AL Branch 2.1 for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
This has been virtually a complete rewrite and as such there are areas of functionality the were available in older versions of AL that are not in this.    &lt;br /&gt;
&lt;br /&gt;
* Conditional locking: Lock based on a user&#039;s performance in previous activities. You can also choose to unlock and activity if a user scores less than a certain grade.&lt;br /&gt;
* Show activity completion: The checkbox that appears before each activity to show it have been done.&lt;br /&gt;
* A variation on this  also hides future activities  &#039;&#039;&#039;ALV2_1_debug.ZIP&#039;&#039;&#039; (John).  &lt;br /&gt;
&lt;br /&gt;
===Installation for 2.1 for Moodle 1.6(Stuart Mayor)===&lt;br /&gt;
&#039;&#039;&#039;activitylocking20051201.zip&#039;&#039;&#039; the initial version&lt;br /&gt;
&lt;br /&gt;
* Firstly, you need the stable build of Moodle 1.6. This version of AL might work on earlier releases but I didn&#039;t write it with them in mind and I certainly can&#039;t support them.&lt;br /&gt;
Next, you need to modify one table in the database and add a new one (I use phpmyadmin for this). &lt;br /&gt;
&lt;br /&gt;
* The table you need to modify is mdl_course_modules and you need to add the following fields:&lt;br /&gt;
completedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
completedscore VARCHAR(255) NOT NULL&lt;br /&gt;
completedstyle VARCHAR(255) NOT NULL&lt;br /&gt;
lockedbox TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
lockedstyle VARCHAR(255) NOT NULL DEFAULT &#039;locked&#039;&lt;br /&gt;
lockedvisible TINYINT(1) UNSIGNED NOT NULL DEFAULT &#039;1&#039;&lt;br /&gt;
delay INT(10) UNSIGNED NOT NULL DEFAULT &#039;0&#039;&lt;br /&gt;
&lt;br /&gt;
* The table you need to create is as follows:&lt;br /&gt;
CREATE TABLE `mdl_course_locks` (&lt;br /&gt;
`id` int(10) unsigned NOT NULL auto_increment,&lt;br /&gt;
`courseid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locktype` varchar(10) NOT NULL default &#039;&#039;,&lt;br /&gt;
`targetid` int(10) unsigned NOT NULL default &#039;0&#039;,&lt;br /&gt;
`locks` longtext NOT NULL,&lt;br /&gt;
PRIMARY KEY (`id`)&lt;br /&gt;
) TYPE=MyISAM COMMENT=&#039;Contains locks for sections and modules&#039;;&lt;br /&gt;
* Lastly, you need to copy the following files from the zip file:&lt;br /&gt;
lib/moodlelib.php to moodle/lib/moodlelib.php&lt;br /&gt;
lib/locklib.php to moodle/lib/locklib.php&lt;br /&gt;
course/lib.php to moodle/course/lib.php&lt;br /&gt;
course/lock.php to moodle/course/lock.php&lt;br /&gt;
course/mod.php to moodle/course/mod.php&lt;br /&gt;
course/settings.html to moodle/course/settings.html&lt;br /&gt;
pix/t/open.gif to moodle/pix/t/open.gif&lt;br /&gt;
pix/t/closed.gif to moodle/pix/t/closed.gif&lt;br /&gt;
lang/en/lock.php to moodle/lang/en/lock.php&lt;br /&gt;
&lt;br /&gt;
==AL Branch 2.1 for Moodle 1.6 (John Gschnaidner)==&lt;br /&gt;
&lt;br /&gt;
==AL Branch 3.s for Moodle 1.6 (Stuart Mayor)==&lt;br /&gt;
&lt;br /&gt;
==AL Branch 3.d for Moodle 1.5 or 1.6 David Delgado)==&lt;br /&gt;
Details and discussed in the thread &amp;quot;NEW research on CONDITIONAL ACTIVITIES in Moodle&amp;quot;&lt;br /&gt;
&lt;br /&gt;
= Table of Versions, to be completed... =&lt;br /&gt;
{| border=&amp;quot;3&amp;quot; padding=&amp;quot;4&amp;quot;&lt;br /&gt;
|+ Conditionnal Activities&lt;br /&gt;
! Version&lt;br /&gt;
! Moodle version&lt;br /&gt;
! Who&lt;br /&gt;
! Status&lt;br /&gt;
! MySql Install&lt;br /&gt;
! Docs&lt;br /&gt;
! Comments &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Feature &lt;br /&gt;
! Bug &lt;br /&gt;
! Bug &lt;br /&gt;
! Bug &lt;br /&gt;
|-----&lt;br /&gt;
| AL 3.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| not finished&lt;br /&gt;
|&lt;br /&gt;
|[http://moodle.org/mod/forum/discuss.php?d=46863]&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.1&lt;br /&gt;
| 1.6&lt;br /&gt;
| John Gschnaidner&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=35488#220946]&lt;br /&gt;
|-----&lt;br /&gt;
| AL 2.1&lt;br /&gt;
| 1.6&lt;br /&gt;
| Stuart Mayor&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=35488]&lt;br /&gt;
|-----&lt;br /&gt;
| C A 1.0&lt;br /&gt;
| 1.5.2&lt;br /&gt;
| David Delgado Borja Rubio Reyes&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| [http://moodle.org/mod/forum/discuss.php?d=36697]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
Please visit the Moodle Forum for more information concerning Activity Locking and Conditional Activities-&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=35488#220984:  AL v2.1-M1.6] titled Activity Locking v2.1 (for Moodle 1.6)&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=46863:  AL v3.0-Mx] titled Activity Locking v3&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36697 AL v3.0-DD] titled NEW research on CONDITIONAL ACTIVITIES in Moodle&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=31627&amp;amp;parent=152788: AL v2.1 LALR]  titled Latest Activity Locking Release started 19 October 2005&lt;br /&gt;
* http://moodle.org/mod/forum/view.php?id=4295&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=47906&amp;amp;parent=221613 AL v2.1 wH1.6] titled Re: Certificate for 1.6 with security in Activity Modules forum&lt;br /&gt;
&lt;br /&gt;
There is a very specialized-limited type of activity locking under a lesson (activity) setting called dependency in 1.6.   See: *https://docs.moodle.org/en/Adding/editing_a_lesson#Dependent_on .&lt;/div&gt;</summary>
		<author><name>John1mb</name></author>
	</entry>
</feed>