1
Hi,
I am using XOOPS 2.0.13 (recommended version) and I wanto replace default registration form with mine. So in register.php, I replace the case 'register' with my own code which is not using header.php and footer.php but using smarty (which is simpler than using XoopsThemeForm since I am going to use a bit complex table).
I don't need to display header and footer in this page (just for this page). All variables are same with the /include/registerform.php but has different layout.
default:
include 'header.php';
include 'include/registerform.php';
$reg_form->display();
include 'footer.php';
break;
become
default:
include 'include/registerform2.php';
break;
while in registerform2.php contains
$smarty = new Smarty();
... initial code and assign smarty variable...
$smarty->display('mytemplates.html');
But I got problem, in registration.php, it always stopped in
if (!$GLOBALS['xoopsSecurity']->check()) {
echo implode('
', $GLOBALS['xoopsSecurity']->getErrors());
exit();
}
.
So I checked again on the original registrationform.php and I found hidden variable named:
XOOPS_TOKEN_REQUEST and it has encoded value. and i realise that this one makes my registration stopped. I also get confuse because I didnt know how the generate XOOPS_TOKEN_REQUEST value to be able matched with xoopsSecurity.
could someone help me ?
Thank you
regards,
adwin