Membership Plugin User profile update question

6 posts by 4 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: May 31, 2010   (RSS)

By gkornbluth - May 4, 2010 - edited: May 11, 2010

Hi all,

I could use some help in the following:

1) Organization member profiles are currently stored in a multi-record editor called “member_information” not in the user accounts editor. The members were also not necessarily the author of their profile record. (That could be changed)

I’d like to be able to allow logged in members to update their membership profiles.

I understand how to add fields to the user account and allow them to be updated in the edit profile page, and I could always create new matching fields in the user account editor and import all of the data, but with a few hundred existing members, that wouldn’t be my first choice.

How would I code the the edit profile page to:

A) Insure that the last_name, first_name and the email_address fields match in both tables and

B) if they did, allow a member to update specific fields in their record in the “member_information” editor?

Thanks,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Membership Plugin User profile update question

By Jason - May 11, 2010

Hi Jerry,

-For dividing the listing page for user accounts into different headings, I believe the closest you could get without some custom programming would be to display the user level in the listing page and sort by that, so all the users with the same membership level would be grouped together.

-For editing "membership_information", you want to allow them to edit all fields, but ensure that last_name, first_name, and email_address are the same in both this table and in user accounts? Is that right?

Since you wouldn't be able to restrict which fields a particular user can and can't edit, I think it would be best to create a separate .php file with a form in it that you link to from CMSB. In this form, you can control exactly which fields can be changed. If last_name, first_name, and email_address, need to be the same in both tables, you can either not let them edit those, or you can update both tables when they save the form.

Hope this helps you get started. Let me know if you have any other questions.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Membership Plugin User profile update question

By gkornbluth - May 17, 2010

Hi Jason,

Thanks for your pointers.

The whole 2 database thing started to get very complicated and I'm working on a single database solution. A little more DB entry in front but much easier in the long run.

I still would like to know how to do the multiple database thing but I don't think that I (or you) have the time to play with it.

I'll let you know how it all progresses in a few days.

Best,

Jerry Kronbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Membership Plugin User profile update question

By gkornbluth - May 23, 2010

Well, the one DB solution was definitely the way to go for me.

The KISS principle rules..

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Membership Plugin User profile update question

By Maurice - May 31, 2010

The Quote of the year for CMSB
Custom coding
hehehehehe
-------------------------------------------

Dropmonkey.nl