Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-12-2007, 01:59 AM
New Pligger
 
Join Date: Apr 2007
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
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.
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixes to Profile Extra Fields Module v0.2 and Extended Profile Module v0.1 redwine Modification Tutorials 3 10-18-2008 10:28 AM
How to remove "javascript" and link directly to user profile xmlham General Help 3 05-17-2008 12:46 PM
Documenting, Diagramming, and Critiquing the Pligg Database MicroBerto General Help 4 03-31-2007 04:46 PM
Custom user profile fields revolver Suggestions 2 12-05-2006 09:52 PM
How can I add new fields to user profile gragland General Help 0 07-18-2006 12:03 AM


Search Engine Friendly URLs by vBSEO 3.2.0