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: [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

Re: [Maurice] Membership Plugin User profile update question

By Toledoh - May 31, 2010

Hi Maurice,

I'm not sure that I get the joke.

I'm sure that from someone who has built so many websites (as I can see from your signature, and it is very impressive), that the thought of payed work would be humorous.

However, in my simple mind, and to give CMSB it's credit, it has put some money in my account and I am still (almost daily) amazed at the free support offered in this forum by it's creators.

But, I'm tired, and probably just not getting the joke.
Cheers,

Tim (toledoh.com.au)