bon j'ai reussi à faire ce que je souhaitez c surement pas tres beau mais voila le resultat:
donc toujours dans le register.php du module profile j'ai remplacer la partie suivante
else{
include_once 'include/forms.php';
$current_step = empty($stop) ? $current_step : $current_step;
$reg_form = profile_getRegisterForm($newuser, $profile, $steps[$current_step + 1]);
if (!empty($_SESSION['profile_register']['pass'])) {
$reg_form->addElement(new XoopsFormHidden('register_code', md5($_SESSION['profile_register']['pass'])));
}
$reg_form->assign($xoopsTpl);
$xoopsTpl->assign('current_step', $current_step + 1);
$xoopsTpl->assign('stop', $stop);
}
par
else{
if(($current_step != 1) && ($sexe != 'Femme')){
include_once 'include/forms.php';
$current_step = empty($stop) ? $current_step : $current_step - 1;
$reg_form = profile_getRegisterForm($newuser, $profile, $steps[$current_step]);
if (!empty($_SESSION['profile_register']['pass'])) {
$reg_form->addElement(new XoopsFormHidden('register_code', md5($_SESSION['profile_register']['pass'])));
}
$reg_form->assign($xoopsTpl);
$xoopsTpl->assign('current_step', $current_step);
$xoopsTpl->assign('stop', $stop);
}
else{
include_once 'include/forms.php';
$current_step = empty($stop) ? $current_step : $current_step;
$reg_form = profile_getRegisterForm($newuser, $profile, $steps[$current_step + 1]);
if (!empty($_SESSION['profile_register']['pass'])) {
$reg_form->addElement(new XoopsFormHidden('register_code', md5($_SESSION['profile_register']['pass'])));
}
$reg_form->assign($xoopsTpl);
$xoopsTpl->assign('current_step', $current_step + 1);
$xoopsTpl->assign('stop', $stop);
}
}
n'hesitez pas a poser des question si nécessaire