Proper way to store user information
The standard Joomla registration forms has a limited set of fields available. What's the "correct" method for adding the user's first name, last name, and phone number to the registration project? I can certainly modify th开发者_JAVA百科e Joomla core, but that's less than ideal.
A nickel for your thoughts.
Essentially, you'll need to code alternatives for com_user
and mod_login
, then store your extra information in a separate table, keyed by user_id
. Community Builder does something similar, only on a much larger scale. There may also be other similar profile extensions that act as drop-in alternatives to the core login system.
The best way to do it (and most in line with Joomla 1.6 - when it's released) is to use the Joomla User Meta plugin. UserMeta
You can extend the profile using just the user xml file but this won't store them in a database, merely as parameters. The Usermeta is much more robust.
I accomplished this by using the CBE extension for Joomla! Depending on your needs that might be overkill for you, but if you need profile management with avatars and other features you can consider going that route.
精彩评论