Custom design on captcha

Support-billede
By Morten Vadskær
more than 2 weeks ago
Approx. 1-2 minutes

Unfortunately, to avoid spam, Shoporama needs to introduce captcha on some selected pages. We already have one built in, which we believe is a good compromise between usability and spam filtering. But if you want to design your own, you are welcome to do so.

We already have a captcha.html in Alaska that can be freely downloaded and used as a starting point.

Otherwise, the recipe for your own captcha is as follows:

Create a captcha.html in your theme with the minimum content below:

<form action="" method="post">

<{$form}>

<{if $error}>>

Error in the code, try again.

<{/if}>

<img src="<{$imgstr}>">

<input type="text" name="c">

<input type="submit" value="Ok">

</form>

In the above, you need to be aware of the following:

  1. The form must be with method="post", and action must be empty or to current url.

  2. $form must be included.

  3. $error is used to indicate if there was an error in what was entered.

  4. The field where the captcha is written in must have name="c".

  5. The captcha (image) is in $imgstr.

This website uses cookies.

We use cookies to personalize content and ads, provide social media features, and analyze our web traffic.

Information about your use of our website is also shared with our partners within social media, advertising, and analysis, who may combine them with other data from your interactions with their services.

Read more about our cookies