integrate login/ registration form into a component

For Joomla! 1.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Locked
aslampatwary
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Mar 29, 2011 8:52 am

integrate login/ registration form into a component

Post by aslampatwary » Sun Jul 15, 2012 6:33 am

HI
I have a component "Arrange 2 Drive" for car-share. Currently when a user click on add trip then it goes to add-trip page without check any authentication. But i need to check that the user is already logged-in. If the user is not logged-in then the user have to log-in or register.


when a user wants to add any trip then he have to login. If he has no user-Id then he have to register.

please tell me that which file will have to edit and which block of code will have to insert .

I need your help immediately.

fleischwolf
Joomla! Explorer
Joomla! Explorer
Posts: 449
Joined: Thu Sep 30, 2010 2:29 am
Location: Europe

Re: integrate login/ registration form into a component

Post by fleischwolf » Sun Jul 15, 2012 9:00 pm

Have at look at the official documentation on Joomla! user object -> http://docs.joomla.org/Accessing_the_cu ... ser_object and the API documentation of the Joomla-Platform -> http://api.joomla.org/.
Regards, fw.
Problem solved? Please add [SOLVED] to the thread title! -> http://forum.joomla.org/viewtopic.php?f=432&t=509319


Locked

Return to “Joomla! 1.5 Coding”