| How to link Extra fields in Profile to pull information from user table in database
FYI ... everything viewed in Mollio template
1. I created an additional module which extends the profile information:
Field A
Field B
Field C
The module successfully installs and the 3 new fields show in the profile page. I am able to enter information into the fields and upon re-login, the information shows successfully.
2. I then extended the registration page to show the same 3 extra fields. These fields update the same table and fields as in the new module. Data entered into these 3 fields are successfully updated in the database.
3. Now I would like the profile page to show the values entered at registration (and stored in the database) when I login however it is blank. This is because I have not set the default value for the profile to pull from the database like the other fields.
I have looked at the user.php and profile.php. It seems in order to display everything properly it uses the mollio-beat/profile_centre.tpl which calls the /modules/user_extra_fields/templates/profile_centre_fields.tpl. This latter tpl seems to be used for entering information.
I am not sure how it shows these values again when I login and have it pull from the database.....
Any help would be greatly appreciated.
|