1
Hello
i have this simple Module for a Form to contact me , i need to use XOOPS Captcha with it ,
How ? and I need the Function for xoops_version.php to be able to enable or disable the captcha .. this is the Form .
<?php
include("../../../mainfile.php");
include '../../../include/cp_header.php';
if ( file_exists(XOOPS_ROOT_PATH."/modules/call/language/".$xoopsConfig['language']."/main.php") )
{
include_once(XOOPS_ROOT_PATH."/modules/call/language/".$xoopsConfig['language']."/main.php");
}
else
{
include_once(XOOPS_ROOT_PATH."/modules/call/language/english/main.php");
}
echo "<form action="call.php" method="post">n";
echo "<table class="outer" width="100%" cellspacing="1" cellpadding="0" border="0">n";
echo "<tr>n";
echo "<th>"._MD_call."</th>n";
echo "<th>"._MI_callA."</th>n";
echo "</tr>";
echo "<tr>";
echo "<td class="odd">n";
echo "<input type="text" value="" name="name" size="20" maxlength="20"></td>n";
echo "</td><td>";
echo "<textarea rows=4 cols=75 name=comment wrap=physical></textarea>";
echo "<tr>n";
echo "<td class="odd">n";
echo "<input type="submit" name="submit" value="Send"></p>n";
echo "</table>";
echo "</form>";
xoops_cp_footer();
?>
this wht i added to the xoops_version.php
$modversion['config'][1]['name'] = 'verifytype';
$modversion['config'][1]['title'] = '_MI_VERTYPE';
$modversion['config'][1]['description'] = '_MI_VERTYPEDSC';
$modversion['config'][1]['formtype'] = 'yesno';
$modversion['config'][1]['valuetype'] = 'int';
$modversion['config'][1]['default'] = '0';
I just do not know how to make the verifytype Function . in the above form