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 Drupal Modules (Moderator: Donald Lobo) »
  • CiviMember Roles Sync roles dissapearing
Pages: [1]

Author Topic: CiviMember Roles Sync roles dissapearing  (Read 996 times)

johangsl

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: drupal 6
  • MySQL version: 5.1
  • PHP version: 5
CiviMember Roles Sync roles dissapearing
November 14, 2011, 11:42:46 am
Hi I need to use this module to sync roles with memberships on civicrm but everytime the role gets assigned on the drupal core and the cron is ran, the role gets removed instead of being added to civicrm membership.

only happens when I have a rule created for this module

for example

the role friend gets synced to the membership type Friendcivi

us current on new and current

expires on expired

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: CiviMember Roles Sync roles dissapearing
November 14, 2011, 11:56:43 am
Not sure of the problem but a screen shot of your CiviMember Roles Sync config page might be useful in diagnosing the problem.  also, what versions are you running?
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

johangsl

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: drupal 6
  • MySQL version: 5.1
  • PHP version: 5
Re: CiviMember Roles Sync roles dissapearing
November 14, 2011, 12:11:22 pm
forum won't let me post an image to show a rule

its a simple rule

6   Amigo --> amigo-rol   New, Current   Expired

latest drupal 6 version 3.4.7

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: CiviMember Roles Sync roles dissapearing
November 14, 2011, 01:43:40 pm
Quote
everytime the role gets assigned on the drupal core and the cron is ran, the role gets removed instead of being added to civicrm membership

It sounds from the above that you are trying to create a civicrm membership FROM drupal roles.  This module isn't designed to do that.  It is designed to work the other way around, i.e. look in civi, if the contact has a membership, assign them a drupal role.

If that is the case, sorry but this module won't help you :(

Otherwise, we can try and get to the bottom of it.

Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

johangsl

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: drupal 6
  • MySQL version: 5.1
  • PHP version: 5
Re: CiviMember Roles Sync roles dissapearing
November 14, 2011, 05:12:14 pm
thats bad news for me..the scenario I have needs for membership to be created from ubercart purchased roles (since it uses 2checkout)

no other way to make this possible?

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: CiviMember Roles Sync roles dissapearing
November 15, 2011, 04:11:13 am
Sounds like a little bit of custom coding.  Given that the both ubercart and CiviCRM's API v3 are pretty mature, I don't think it would be too hard.

I imagine that ubercart has a hook that you can implement that gets called when a purchase is confirmed.  You could call CiviCRM's API to create a membership.

The obvious alternative is to a CiviCRM contribution page with a membership purchase included.

Michael
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

johangsl

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: drupal 6
  • MySQL version: 5.1
  • PHP version: 5
Re: CiviMember Roles Sync roles dissapearing
November 15, 2011, 10:45:43 am
what I did was use this module, is still in dev so I didn't want to try it out, but it worked perfectly.

http://drupal.org/project/uc_civicrm_product

I suppose its doing the above mentioned by michael
Quote
I imagine that ubercart has a hook that you can implement that gets called when a purchase is confirmed.  You could call CiviCRM's API to create a membership.

Haven't checked the code yet, but it works  :)

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: CiviMember Roles Sync roles dissapearing
November 16, 2011, 06:12:02 am
Good to know!  Thanks for replying with your solution.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • CiviMember Roles Sync roles dissapearing

This forum was archived on 2017-11-26.