1
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:
le="color: #000000"><?php $this->keys['private_key'] = $GLOBALS['xoopsModuleConfig']['profile_private_key'];
and
le="color: #000000"><?php $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:
le="color: #000000"><?php $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