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 Profiles (Moderator: Dave Greenberg) »
  • civi profile/member and drupal user integration problem
Pages: [1]

Author Topic: civi profile/member and drupal user integration problem  (Read 1154 times)

ShirleyB

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: drupal 7.15
  • MySQL version: 5.5.27
  • PHP version: 5.3
civi profile/member and drupal user integration problem
November 13, 2012, 04:36:06 am
I'm not sure whether this is the best place to put this query as it involves profiles, and member and contribute modules. I originally posted it as a Paypal comms problem on the civiContribute forum (http://forum.civicrm.org/index.php/topic,26730.0.html) but more experimentation has identified that it's a problem before it gets that far.

I think I must be missing something in the configuration of profiles/contribute/member/drupal and would appreciate some pointers.

I want a webvisitor who completes a contribution page for a particular type of membership, to go to Paypal and pay the member dues AND to create a drupal user account, with a user role allocated. 

I only seem to be able to include a 'create drupal user account' functionality on the membership contribution page by adding a profile that includes that option. BUT as soon as I add a profile to the contribution page the user gets the 'welcome/one time account log-in' message BEFORE making the payment. This means that anyone who aborts their payment, still gets the membership/role/access without paying.

If I don't include any profile in the contribution page for paid membership (so the page only collects an email address, no other info), the payment goes through, is recorded by civiContribute, the civi contact record is created, showing the correct membership - but no drupal user account (which would grant the appropriate role permissions) is created. I have the civiMember Roles Sync and CiviGroup Roles Sync modules enabled and configured with the correct associations - but there's nothing to sync to if no drupal user account has been created.

I've been going round in circles with this for days and the site should have been live by now, but unless I can sort this out the only way to achieve what I want is for me to manually set up drupal user accounts for everyone who pays for membership. That's not only a big hassle for me but potentially annoys everyone who buys membership, because in today's world people expect instant access to what they've paid for - one of the main reasons I'm trying to implement civiCRM rather than our existing clunky manual site!!

Any suggestions to help resolve this would be very gratefully received - I can't believe there haven't been others who need users to be granted a log in account AFTER payment is received, so I'm even kind of hoping that someone will just tell me I'm an idiot and all I need to do is XXX and then it will work as required :-)

Thanks, Shirley

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: civi profile/member and drupal user integration problem
November 13, 2012, 05:24:59 am
I don't quite understand. Why can't you have them make a Drupal User first, with no role, and then when they make a payment, they get a CiviCRM Group and later the synch feature gives them the role in Drupal?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Jason W

  • I post frequently
  • ***
  • Posts: 197
  • Karma: 12
  • jason@civitrainingtutorials.com
  • CiviCRM version: 4.2
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5.x.x
Re: civi profile/member and drupal user integration problem
November 13, 2012, 09:12:53 am
Hello Shirley,

How about making it so that the webvisitor has to create a drupal user before they can access the contribution page? then you would have their info for role purposes, and they would still be able to complete their donation.

Cheers,
Jason
civiTrainingTutorials
"Helping You Help Others"

Jason W

  • I post frequently
  • ***
  • Posts: 197
  • Karma: 12
  • jason@civitrainingtutorials.com
  • CiviCRM version: 4.2
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5.x.x
Re: civi profile/member and drupal user integration problem
November 13, 2012, 09:13:45 am
My apologies, I see that Hershel has said basically the exact same thing that I did.
civiTrainingTutorials
"Helping You Help Others"

ShirleyB

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: drupal 7.15
  • MySQL version: 5.5.27
  • PHP version: 5.3
Re: civi profile/member and drupal user integration problem
November 14, 2012, 01:43:58 am
Thanks Hershel and Jason for the suggestion of creating the drupal user account first. I've been thinking through how I would make this happen and in order to make it a smooth process the account registration process would need to end with a link to the contribution page. BUT, people signing up just for the free account wouldn't expect to be taken to a payment page - so does this mean I need 2 different user account registration pages (and is that possible) or is there a smarter way to do it?

really appreciate you taking time to help a struggling novice here :-)

Thanks
Shirley

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: civi profile/member and drupal user integration problem
November 14, 2012, 03:02:07 am
Either two pages or perhaps a Drupal profile field like "I want to pay" and you can do a redirect based on that. You might need custom code for that or maybe LoginToboggan could do that.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

ShirleyB

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: drupal 7.15
  • MySQL version: 5.5.27
  • PHP version: 5.3
Re: civi profile/member and drupal user integration problem
November 15, 2012, 01:41:47 am
Thanks, I'm now looking at LoginToboggan and maybe Profile2 Registration Path  http://drupal.org/project/profile2_regpath and/or Login Destination http://drupal.org/project/login_destination  to see whether I can achieve what I want.

Thanks
Shirley

The Doctor

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
  • CiviCRM version: 4.7.x
  • CMS version: Drupal 7.x
Re: civi profile/member and drupal user integration problem
January 18, 2013, 10:27:03 am
I use the Drupal module Login Destination (http://drupal.org/project/login_destination) to accomplish this. It is somewhat simpler than Logintoboggan.

I have it set up (and it is simple to configure) so that when a user registers a Drupal account, they are then directed to the appropriate civicrm contribution page.

Hope this helps.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • civi profile/member and drupal user integration problem

This forum was archived on 2017-11-26.