Forums

How to make a simultaneous registration and connection

fgen 27 Jan, 2009
Hello Max

I have seen all the messages with UHU but I don not understand where the answer to my question is. I'm sorry. Could you give me some explanation ?

I recall the subject of my questionn :
I have made a registration form (as tutorial #4 by GreyHead, excellent work !). All is OK. When a visitor use this registration form, he is automatically and immediatly enregistred as author (I want that) but he is not connected. He musts to give again his login and password. Isnt it possible to be registred AND connected in the same time ? Is it easy to do ? With some lines in code php ? where ?

Thanks

Francois
GreyHead 27 Jan, 2009
Hi Francois,

You probably could hack this but I'd recommend that you don't. Pretty much every site that I register on requires that you login after registration - if only to show that you've got the username and password.

Bob
Max_admin 27 Jan, 2009
I agree with Bob but if you want to try it anyway then here its :
http://api.joomla.org/Joomla-Framework/Application/JApplication.html#login

you will need to call the function at the correct time and feed it with the correct data! tell me if its still not very clear.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount

{item:title} {images:#}