Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.33 KB

README.markdown

File metadata and controls

34 lines (24 loc) · 1.33 KB

Spam Question Filter

  • Version: 1.0
  • Author: Adrian Kummerländer
  • Build Date: 15th July 2012
  • Requirements: Symphony 2.*

Description

Simple filter to check if a question like "2 + 3 = ?" was correctly answered by the user. This can be used as a replacement for other spam prevention methods like captchas.

Installation

  1. Place the spamquestionfilter folder in your Symphony extensions directory.
  2. Go to System > Extensions, select "Spam Question Filter", choose "Enable" from the with-selected menu, then click Apply.

Usage

  1. Go to Blueprints > Components and click the name of the event whose input you want to filter.
  2. In the "Filter Rules" field, select "Spam Question Filter"
  3. Save your event
  4. Add the custom event "Spamquestion" to the page containing your form
  5. Now you will have to add three new fields to your frontend form, see the expample below for details.

Example-Form

<form method="post" action="" enctype="multipart/form-data">
<!-- This is the anti-spam question  -->
	<xsl:value-of select="events/spamquestion/part1"/> plus <xsl:value-of select="events/spamquestion/part2"/> equals: <input name="fields[number]" type="text"/>

<!-- These field should be hidden so the user won't be confused by it  -->
	<input name="fields[spam]" type="text" value="{events/spamquestion/check}" />
</form>