[pLog-svn] r4978 - plugins/branches/lifetype-1.2/hiddeninput

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sun Mar 4 08:13:31 EST 2007


Author: jondaley
Date: 2007-03-04 08:13:31 -0500 (Sun, 04 Mar 2007)
New Revision: 4978

Modified:
   plugins/branches/lifetype-1.2/hiddeninput/readme.txt
Log:
hrm, got a spam last night after enabling this plugin - I realized that on my other sites I use stylesheets instead of type=hidden.  Either way will work with this plugin, but I think style sheets work better, at least until they figure out this trick.

Modified: plugins/branches/lifetype-1.2/hiddeninput/readme.txt
===================================================================
--- plugins/branches/lifetype-1.2/hiddeninput/readme.txt	2007-03-04 01:48:43 UTC (rev 4977)
+++ plugins/branches/lifetype-1.2/hiddeninput/readme.txt	2007-03-04 13:13:31 UTC (rev 4978)
@@ -12,12 +12,23 @@
 Add the following code to commentform.template inside <form> ... </form>:
 {if $hiddeninput}
   {foreach from=$hiddeninput->getHiddenFields() item=hiddenField}
-    <input type="hidden" name="{$hiddenField}" value="" />
+    <input style="display: none" type="text" name="{$hiddenField}" value="" />
   {/foreach}
 {/if}
 
 
-Note: for 1.2, you must set the value to "" rather than GetOut or
-whatever you might have used in previous versions.  This should work
-even better against spammers.
+IMPORTANT CHANGE in 1.2, you must set the value to "" rather than
+"GetOut!" or whatever you might have used in previous versions.  This
+should work even better against spammers.
 
+
+Alternate method - I don't know if the spammers are smart enough to
+read the display: none thing, so I (jondaley) do it is like this:
+style.css
+.validate{
+  display: none;
+}
+
+commentform.template
+<input class="validate" type="text" name="{$hiddenField}" value="" />
+



More information about the pLog-svn mailing list