Okay, Howard
In this case, when the quiz is costly and even the slightest leak is a major financial problem then the fact that there are always ways around the measures taken are crucial.
For the most of use however, the ability to put students off copying is a large part of the problem. My students do not have a cash motive, only to save time. If it takes more time copying then they will not bother.
So I enclose an updated version of the anti copying measures here below. This is basically Rob Butners and Indjana Dzons' hack, packaged as simply as possible.
The best think about this hack is that it exists entirely in your theme, so there is no need to worry about what happens when you update moodle.
1) Insert
<?php
if (stristr($_SERVER['SCRIPT_FILENAME']."X", "attempt.phpX") || stristr($_SERVER['SCRIPT_FILENAME']."X", "review.phpX"){
include("blockit.html"); }
?>
Into the header.html in your theme. I put it at the second to last line before the <!-- END OF HEADER --> because that enables me to put a warning just below the header, at the top of the quiz (see below)
The above code is simply to decide which of the many moodle pages get the anti-copy/paste treatment. I prevent copying and pasting of quizes (attempt.php) and their feedback.
2) Create a file that does the blockign, called blockit.html in your theme folder.
I attact my version of blockit.hml which includes
3.1) A warning saying that copying is forbidden in quizes which is displayed at the top of quiz pages.
3.2) A right button click blocker that says again that copying is forbidden,
and that the users' IP addresses has been recorded, along with the
users' ip address.
3.3) The super-java script blocker supplied by Rob Butner here, which prevents an variety of forms of copying, including print screen using CTRL P (all that is printed out is a blank page). This super duper javascript is obfuscated to help prevent users from realising why they cannot copy.
Be warned that while blockit.hml or a quiz window is open, no copying and pasting can be done on the computer. It is quite a miracle.
4) I have included
<nolink>
at the end in the hope that this will prevent quizes being linked to the glossary. I have not tested this yet.
Does anyone have any suggestions on how to improve the blockit script? I would like scary warnings to appear when people press control C as well.
I have also included the pix to make my header work for you. The header, in use on my Moodles, is based on a part of an Invision board theme supplied by
http://www.invisionskins.com/index.php?p=skins
copyright 2003 Roadkill71
http://www.roadkill71.com
Timothy