CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • New membership <> Drupal user???
Pages: [1]

Author Topic: New membership <> Drupal user???  (Read 1265 times)

aguanno

  • Guest
New membership <> Drupal user???
October 05, 2010, 11:12:23 am
Have a problem, need some advice...

People can buy a membership using CiviMember/CiviContribute and that seems to work OK.  Membership data present, seems to create a "contact" and all is well from the Civi angle.  Problem is:  new members don't get an associated Drupal "user" account when they buy a membership.

We have forums and content in Drupal flagged for users with a "Member" role.  Is there a way to have the Drupal "user" created at the same time as the membership signup in Civi is completed (with Drupal userid and password)?  And if the answer to the previous is "yes" then can we assign new Drupal users automatically to a specific role of "member"?

I am sure that others have this need:  active members need access to members-only content, while expired members lose that access.  Since Civi seems to handle the expiry of users very well, how do we tie this to Drupal user roles?

klkosi

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 2
  • CiviCRM version: 3.2.2
  • CMS version: Drupal 6.19
Re: New membership <> Drupal user???
October 05, 2010, 12:07:37 pm
Hi aguanno,

If I'm understanding you correctly, solving this issue is fairly simple.  You will need to change the Profile settings you're using in your contribution pages.  To do this go into CiviCRM and then to the Administer > Customize > CiviCRM Profile

Once you're in the Profiles section, find the profile you are using in your CiviCRM contribution pages and click on "Settings"

Once you are looking at the profile settings, you will see a tab towards the bottom of the page called "Advanced Settings."  Click on this to expand it.   Look for the "Drupal user account registration option?" section and you will see three radio buttons.  Choose either "Give option but not required" or "Account creation required."  This should allow you to have users create Drupal accounts as they contribute, but you will only be able to see the username field on the Contrib page if you log out.  If you look at the page while still logged in, you will not see the user name field, since you already have a user name.

I hope this helps!

klkosi

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 2
  • CiviCRM version: 3.2.2
  • CMS version: Drupal 6.19
Re: New membership <> Drupal user???
October 05, 2010, 12:11:26 pm
Regarding the second part of your question, you will need to look into CiviContact Role Sync and CiviMember Role Sync, which should be located in your Drupal Site Configuration list.  Essentially, you will need to first create a Drupal user role first that you want and then link that role to a contact group and membership type.  Under CiviMember Roles Sync, be sure to click on "Configure" at the top and set the synchronization to happen whenever a user logs in.  This should ensure that the role and membership type are always re-linked to one another. 

Hope this helps!

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: New membership <> Drupal user???
October 05, 2010, 12:20:33 pm
Good explanation klkosi - karma to you
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

aguanno

  • Guest
Re: New membership <> Drupal user???
October 06, 2010, 07:52:40 am
Thank you all!  I'll give this a try this afternoon.  I appreciate the fast response. 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • New membership <> Drupal user???

This forum was archived on 2017-11-26.