BOn alors, évidmeent, je passe 1/2 journée la dessus, je trouve rien, je deviens fou, je post sur Xoops fr et je trouve 5 minutes après ;)
Pour tous ceux qui vont rencontrer de problème.la méthode est en fait, trèssimple.
Donc 2 modif à ajouter pour le formulaire de contact de catads.
1 fichier : form_contact.inc.php AVANT la ligne :
$button_tray = new XoopsFormElementTray('' ,'');
ajouter ce code
//Hack SecurityImage by Dugris
if (defined('SECURITYIMAGE_INCLUDED')) {
$security_image = new SecurityImage( _SECURITYIMAGE_GETCODE );
if ($security_image->render()) {
$form_contact->addElement($security_image, true);
}
}
//Hack SecurityImage by Dugris
2 fichier : contact.php APRES les lignes :
global $xoopsConfig;
include("../../mainfile.php");
ajouter :
include_once(XOOPS_ROOT_PATH . "/class/xoopsformloader.php");
if ( defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
redirect_header( 'index.php', 2, _SECURITYIMAGE_ERROR ) ;
exit();
}
et là, tout marche nickel.
voir aussi :
http://www.xoops.org/modules/newbb/vi ... id=304466#forumpost304466