For those who have noticed that if you click Submit in the healing center a lot of times before the next page loads, you get a lot of health.
Well here is a small bug fix i put together.
Example of the healing center with bug fix is at:
http://www.vgcity.com/forum/heal.php
What does it do?
Once a user clicks the heal button its made unclickable. Only I.E. users are affected. Don't know about Opera, if someone could test it on Opera

. I do know that in Netscape they just get an alert saying Thanks!. That will kinda stop them too.
Instructions
Template Modifications: 1
Time: 3m>
Open the rpg_heal template.
Find:
Add After it:
PHP Code:
<SCRIPT LANGUAGE="JavaScript">
function disableForm(theform) {
if (document.all || document.getElementById) {
for (i = 0; i < theform.length; i++) {
var tempobj = theform.elements[i];
if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset")
tempobj.disabled = true;
}
setTimeout('alert("Healing... Thank You!")', 2000);
return true;
}
else {
alert("Thanks!");
return false;
}
}
</script>
Find:
PHP Code:
action="heal.php?action=doheal">
Replace with:
PHP Code:
action="heal.php?action=doheal" onSubmit="return disableForm(this);">
That's it!