1
adwin
a new user registration form
  • 2006/5/23 2:01

  • adwin

  • Just popping in

  • Posts: 68

  • Since: 2004/6/27


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

Login

Who's Online

450 user(s) are online (316 user(s) are browsing Support Forums)


Members: 0


Guests: 450


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits