1
timgno
New Module GUI - Profile 1.63 With reCaptcha
  • 2011/7/19 15:35

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


I'm editing, the class ReCaptcha, including the introduction of all modules, how to insert text fields in the general preferences private_key and public_key? By modifying the config.php file of ReCaptcha, I added:
$this->keys['private_key'] = $GLOBALS['xoopsModuleConfig']['profile_private_key'];
and
$this->keys['public_key'] = $GLOBALS['xoopsModuleConfig']['profile_public_key'];


Instead of putting the keys here, then I added the module profile in xoops_version.php this:

$modversion['config'][$i]['name'] = 'profile_private_key';
$modversion['config'][$i]['title'] = '_MI_PROFILE_PRIVATE_KEY';
$modversion['config'][$i]['description'] = '_MI_PROFILE_PRIVATE_KEY_DESC';
$modversion['config'][$i]['formtype'] = 'textbox';
$modversion['config'][$i]['valuetype'] = 'text';
$modversion['config'][$i]['default'] = '';
$i++;
$modversion['config'][$i]['name'] = 'profile_public_key';
$modversion['config'][$i]['title'] = '_MI_PROFILE_PUBLIC_KEY';
$modversion['config'][$i]['description'] = '_MI_PROFILE_PUBLIC_KEY_DESC';
$modversion['config'][$i]['formtype'] = 'textbox';
$modversion['config'][$i]['valuetype'] = 'text';
$modversion['config'][$i]['default'] = '';


but if you want to use the ReCaptcha other modules do I have to put the keys in the preferences of the profile module and not general:

Watch this video

Login

Who's Online

344 user(s) are online (265 user(s) are browsing Support Forums)


Members: 0


Guests: 344


more...

Donat-O-Meter

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

Latest GitHub Commits