joomla module that references the users component and contact component
I am looking to 开发者_如何学编程create a module for registering a new user for my joomla! website. So basically, I want to create a form that ask for all types of information (first name, last name, username, pw, address, phone, etc... ) and store information like the username, password, and email, in my using the joomla! com_users component and the address, phone, first name, and last name using the joomla! com_contacts component. I don't understand how/if I am able to do this. I don't know how I can reference components in my module. I don't want to rewrite either component. Thank you.
Have a look at Community Builder (http://www.joomlapolis.org). This is a great free Joomla component that adds all sorts of stuff to the user registration and management process, amongst other things.
The easiest thing to do would be to use ChronoForms. It has a built in bridge to allow custom user registration forms that would get the info you collect in to com_users. You could then set up the form to also insert the collected data in to the com_contacts table after it handles the registration. No code hacking required.
精彩评论