Zum Inhalt springen

spamhield konfigurieren und testen

Erstellt am 11. März 2010 · Noch keine Antworten

Tags: Frage

schmitz ·

Hallo,

ich habe die Extension spamhield installiert und es gibt Probleme mit meinem Feld Email, weil es auch einen honeypot gibt, der so heißt. Jetzt ist die Frage, wie man diesen honeypot umbenennen kann.

Und wenn ich via Firebug einen value in den honeypot-input schreibe wird das formular trotzdem abgeschickt. Ist das richtig??
Normal müsste dann doch die Fehlermeldung kommen, oder nicht? Wenn nicht würd mich interessieren, wie man die Funktion testen kann.

Und wie kann man die Position der honeypots ändern? Die stehen ja standardmäßig hinter dem submitbutton.

Das TS was ich mal probiert habe funktioniert irgendwie nicht. Da hab ich die Namen der inputs geändert und die Position, aber das greift nicht:

honeypot = 1

honeypot {

position = start

weight = 1

errormsg = Aktivieren Sie CSS in Ihrem Browser und füllen Sie nur sichtbare Felder aus!

pots {

 10 = <input type="text" name="honey[e-mail]" value="" style="display:none !important;" />

 20 = <input type="text" name="honey[prename]" value="" class="tx_spamshield_honey" />

 30 = <input type="text" name="h-email" value="" class="tx_spamshield_honey" />

 40 = <input type="text" name="h-name" value="" style="position: absolute !important; margin: 0 0 0 -9999px !important;" />

}

}

EDIT: Das Snippet kommt aber aus dem Manual der Version 0.0.4, aktuell ist aber im Moment 0.0.26
Dort steht aber nichts dazu.

mfG

EDIT2:
Habs jetzt hiermit hinbekommen:

plugin.tx_spamshield_pi1 = USER_INT
plugin.tx_spamshield_pi1 {
	
	checkVars = {$spamshield.honeypot}
	checkVars {
		# this checks that honey pot fields are empty
		set.10 {
			fields = mail,prename,mail2,first-name
			# possible rules are: atMost[], atLeast[], preg[], unique
			rule = atMost[0]
			weight = {$spamshield.honeypot}
			errormsg = Use a web browser that does support CSS and fill in only visable fields.
			errormsg.lang.de = Nutze einen CSS fähigen Browser und fülle nur sichtbare Formularfelder aus.
		}	
	}

	    add2forms {	
		# positions: start, end, start-end, rnd
		position = start
		# fields to add. Notice: the last field is a mark to help spamshield detect forms (see: detectGETby)
    	fields {
			10 = <input type="text" name="mail" value="" style="display:none !important;" />
			20 = <input type="text" name="prename" value="" class="tx_spamshield_honey" />
			30 = <input type="text" name="mail2" value="" class="tx_spamshield_honey" />
			40 = <input type="text" name="first-name" value="" style="position: absolute !important; margin: 0 0 0 -9999px !important;" />
			50 = <input type="hidden" name="spamshield[mark]" value="true" />
		}
	}
	
}