Fork me on GitHub

Rapport de message :*
 

Re: Intégration de SecurityImage í  Catads

Titre du sujet : Re: Intégration de SecurityImage í  Catads
par eparcyl92 sur 07/12/2006 06:31:49

Bonjour à tous
DuGris merci pour m'avoir aigullé pour les fichiers, mais...

Citation :
Fatal error: Call to a member function on a non-object in
/xxxx/xxxxxxx/xxxxx/x/x/xxxxxxxxxxxxx.fr/xxxxxxx/www/modules/catads/include/form1_ads.inc.php on line 180


J'ai bien tenter de faire cela:
Dans subit1.php
Citation :

case "post":
// Hack SecurityImage by DuGris

include_once(XOOPS_ROOT_PATH . "/class/xoopsformloader.php");

if ( defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {

redirect_header( '(script removed)history.go(-1)', 2, _SECURITYIMAGE_ERROR ) ;

exit();

}

// Hack SecurityImage by DuGris

$msgstop = '';

et dans form1_ads.inc.php
Citation :
$adsform->addElement($check_advert);
}
// Hack SecurityImage by DuGris

if ( defined('SECURITYIMAGE_INCLUDED') ) {

$security_image = new SecurityImage( _SECURITYIMAGE_GETCODE );
if ($security_image->render()) {
$forum_form->addElement($security_image, true);
}

}

// Hack SecurityImage by DuGris
$button_tray = new XoopsFormElementTray('',' ','button');


mais il me blanchi mon ecran.
Il dois manqué un tout petit truc...

Bonne journée
Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

46 Personne(s) en ligne (37 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 46 | Plus ...