1
xsell
Intergate Xoops Captcha
  • 2009/8/25 8:43

  • xsell

  • Quite a regular

  • Posts: 245

  • Since: 2008/9/2 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 .

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 
"call.php" method="post">n";
   echo 
"outer" width="100%" cellspacing="1" cellpadding="0" border="0">n";
   echo 
"n";
   echo 
""._MD_call."n";
   echo 
""._MI_callA."n";
   echo 
"";
   echo 
"";
   echo 
"odd">n";
   echo 
"text" value="" name="name" size="20" maxlength="20">n";
   echo 
"";
   echo 
"";

    echo 
"n";
   echo 
"odd">n";
   echo 
"submit" name="submit" value="Send">

n"
;
   echo 
"";
   echo 
"";


  
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

2
ghia
Re: Intergate Xoops Captcha
  • 2009/8/25 12:36

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


The XoopsFormCaptcha is designed to work with the XoopsThemeForm.
An example with your functionality (incl config option) is to find in the Wiki (wiwi) module of skenow. Search for Captcha in xoops_version.php and index.php.

3
xsell
Re: Intergate Xoops Captcha
  • 2009/8/25 21:05

  • xsell

  • Quite a regular

  • Posts: 245

  • Since: 2008/9/2 1


Thx Ghia .. i will see that.. But tell me is wiwi module same simplywiki module if Yes .. well nothing about Captcha in the mentioned files

4
ghia
Re: Intergate Xoops Captcha
  • 2009/8/25 23:29

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


This one (start of xoops_version.php)
/**
 * Main configuration file for SimplyWiki
 *
 * @package SimplyWiki
 * @author Wiwimod: Xavier JIMENEZ
 * @author Wiwimod: Gizmhail
 *
 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
 * @version $Id: xoops_version.php 8255 2009-04-11 18:20:13Z skenow $
 */
$modversion = array(
  
'name' => _MI_SWIKI_NAME,
  
'version' => '1.1',
  
'status' => 'Final',
  
'description' => _MI_SWIKI_DESC,
  
'author' => 'Steve Kenow ',
  
'credits' => 'Based on Wiwimod by Xavier JIMENEZ; with further contributions by Gizmhail and Giba',
  
'license' => 'GNU General Public License',


5
xsell
Re: Intergate Xoops Captcha
  • 2009/8/26 5:13

  • xsell

  • Quite a regular

  • Posts: 245

  • Since: 2008/9/2 1


Thx Ghia i Decided to use stand alone Captcha file.

Login

Who's Online

425 user(s) are online (56 user(s) are browsing Support Forums)


Members: 0


Guests: 425


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits