Ello Xoopsers !!!
Here is something I need to do but I don't know how to code it ! I know it is a bit complex but I hope someone will know how to do it !
In my site, users can registered autmatically (without the verification email). However, they need to log in to acces the page /forms/askus/form.php
If they try to access /forms/askus/form.php and they are not logged in, they are redirected to user.php?xoops_redirect=%2Fcondo%2Fforms%2Faskus%2Fform.php
Then, If they are not yet registered, they need to do it in order to log in. They then click on 'signup now' which takes them to register.php
They register successfully and then they are taken back to the home page, where they have to login, and access again /forms/askus/form.php
Now, this is too complicated for basic users. Here is what I want to happen. Everything is ok until the user registers to the site. But since the activation is automatic, the newly registered user should not have to log in again. So,
1- How to autmatically log in the newly registered user the first time he registers.
Also, in this particular situation, the initial thing that the user wanted to do is fill up this form : /forms/askus/form.php. So, in this situation where a not registered user attemp to go there '/forms/askus/form.php', is redirected to user.php and then registers :
2- After the user sucessfully registered and loogged in, I want him to automatically be redirected to /forms/askus/form.php
Is this possible? Anybody can help me on that ?
Thanks fo any help