Forms MODx(革命)-对表单使用额外验证码

Forms MODx(革命)-对表单使用额外验证码,forms,captcha,modx-revolution,Forms,Captcha,Modx Revolution,我已经在MODx Revolution上安装了CAPTCHA extra。据 “其他组件也可以使用验证码组件为前端表单创建验证码样式验证。” 当将系统设置中的captcha.enabled更改为Yes时,它会将captcha添加到manager登录中,但没有关于如何在其他组件上使用它的文档,我也无法通过谷歌搜索找到任何示例 如何在所需表单上使用验证码?(如有可能,不在管理员登录时) 谢谢您的时间。文档是有限的,但在分发版的“文档”文件夹中: Modx Captcha Utility ======

我已经在MODx Revolution上安装了CAPTCHA extra。据

“其他组件也可以使用验证码组件为前端表单创建验证码样式验证。”

当将系统设置中的
captcha.enabled
更改为Yes时,它会将captcha添加到manager登录中,但没有关于如何在其他组件上使用它的文档,我也无法通过谷歌搜索找到任何示例

如何在所需表单上使用验证码?(如有可能,不在管理员登录时)


谢谢您的时间。

文档是有限的,但在分发版的“文档”文件夹中:

Modx Captcha Utility
====================
Author: BobRay <bobray@softville.com>
Date:   08/10/2008
Updated:10/03/2010
====================

This utility provides captcha verification in the MODx
Manager login and elsewhere.

It uses the following System Settings:

captcha.enabled            If set, captcha is used for Manager login (off when installed)
captcha.use_mathstring     If set, the image is a simple equation for the user to solve (on when installed)
captcha.words              Selection of words used for the image if captcha_use_mathstring is off
captcha.height             Height of image (default: 80)
captcha.width              Width of image (default: 200)
captcha.words              Words to use in CAPTCHA challenge

You may add or delete fonts from the core/components/captcha/fonts directory
as long as there is at least one .ttf file there.

You may add or delete images from the core/components/captcha/noise directory
as long as there is at least one file there.

Captcha can also be used in other forms that require captcha.

You can roll your own function by calling assets/components/captcha/captcha.php where you want the image
and then comparing the user's input to the $_SESSION['veriword'] variable.

See the code in the core/components/captcha/captcha.plugin.php file.
Modx验证码实用程序
====================
作者:博布雷
日期:08/10/2008
更新日期:10/03/2010
====================
此实用程序在MODx中提供验证码验证
管理员登录和其他位置。
它使用以下系统设置:
captcha.enabled如果设置,则captcha用于管理器登录(安装时关闭)
captcha.use_mathstring如果设置,则图像是用户要求解的简单方程(安装时打开)
captcha.words如果captcha\u use\u mathstring处于禁用状态,则选择用于图像的单词
captcha.height图像高度(默认值:80)
captcha.width图像宽度(默认值:200)
验证码挑战中使用的词语
您可以从core/components/captcha/fonts目录中添加或删除字体
只要那里至少有一个.ttf文件。
您可以从core/components/captcha/noise目录添加或删除图像
只要那里至少有一个文件。
验证码也可以用于需要验证码的其他形式。
您可以在需要图像的位置调用assets/components/captcha/captcha.php来运行自己的函数
然后将用户的输入与$\u SESSION['veriword']变量进行比较。
请参阅core/components/captcha/captcha.plugin.php文件中的代码。
您还应该能够从软件包管理器中安装的软件包的属性中看到这一点


基本上,他说的是,你可以将它用于其他表单“如果你想写一点代码”

你可以将它添加到表单中你希望它出现的地方:

<img src="[[++assets_url]]components/captcha/captcha.php" alt="Captcha Image" />

并创建一个文本字段供用户输入结果。然后,无论您在哪里对表单进行验证,都将textfield的值与
$\u SESSION['veriword']
进行比较

您还可以阅读以下内容: