are you getting a spam? If yes maybe this could work for you. The point is to put into your system a small JavaScript which will generate a hidden field. The field is hidden only if you have allowed JavaScript in your browser. If not, you will see a question, for example 3+3. And then you have to put the answer into the blank field. Thats it.
Robots, if you have the JavaScript allowed can not see the hidden field and can not add a spam. If the JavaScript is disallowed you and another users have to put the answer manually. But robots? They can not :)))) becouse they do not know the answer. And thats the point.
Just find a line around 937 in gallery.php and there is: <p> <input class="submit" name="submit" type="submit" tabindex="5" value="Post Comment!" /> </p>
and this code you must put before.
<p id="hidefield">Protection against spam. 3+3? <input type="text" name="robot" value="" id="againstrobot"></p> <script> /* This script will add the number automaticly into the suitable field */ document.getElementById("againstrobot").value="6"; document.getElementById("hidefield").style.display = "none"; </script>
Then open the plog-functions.php and find line around 415. There is this: $query = "INSERT INTO ".$TABLE_PREFIX."comments SET
If you have it founded put before this code: if ($_POST["robot"]*1==6)
This piece of code will check if the answer is right or missing........
And this is all about it. I hope it will work for you well. And sorry for my bad english :)))))