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) »
  • Solution for roles sync in CiviCRM 1.9?
Pages: [1]

Author Topic: Solution for roles sync in CiviCRM 1.9?  (Read 1266 times)

Andy Laken

  • I’m new here
  • *
  • Posts: 27
  • Karma: 3
Solution for roles sync in CiviCRM 1.9?
January 12, 2010, 04:43:29 pm
I know this seems like ancient history, but we have a high-traffic Drupal 5 site which is highly customized, and for various reasons we haven't been able to update it to Drupal 6 yet. We rely on CiviCRM and CiviMail for email blasts to site members.

We are using CiviCRM 1.9 on Drupal 5.

We recently added paid premium content functionality on the site, which is implemented by adding the user to a 'premium subscriber' role. We'd now like to be able to email these premium subscribers as a group through CiviMail. Somehow we need to get all the users in a Drupal role into a CiviCRM group for CiviMail.

I did a little research into our options. Here's what I've found:

http://drupal.org/project/civimember_roles has an older version (5.x-1.2) which is supposed to work with CiviCRM 1.9. But: "This module only synchronizes one way: CiviMember -> Drupal. This means that users with a specific role will not be given a CiviMember Membership Type. Only CiviCRM Contacts with specific Membership Types will be assigned a Drupal role."

Which is the opposite of what we need, so it looks like that's out. :-(

That module was merged into CiviCRM as of the 2.1 release (http://civicrm.org/node/464) and enhanced to allow 2-way syncing: "The other modules civicrm_group_roles does something similar with static groups. A user has a role added/removed whenever the user is added/removed from a CiviCRM group. This is a 2 way sync, so changes in a user role is reflected in the CiviCRM group, and changes to a CiviCRM group is reflected in the users role."

This seems like exactly what we need, however, CiviCRM 2.1 requires Drupal 6 :-(

So am I correct in thinking that we'll need to custom code this? Would we get any benefit upgrading to 2.0.x? Would love some guidance here.
Andy Laken
Engineer | CivicActions, LLC
e: andy.laken@civicactions.com | skype: mcantsin | http://twitter.com/alaken

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Solution for roles sync in CiviCRM 1.9?
January 12, 2010, 05:18:04 pm

hey andy:

long time :)

a couple of options:

1. upgrading is your best bet. IMO, 3.1 is 100-1000x better than 1.9 :). We've improved things significantly across the board and there is much tighter and better integration with some drupal modules (views, rules etc)

2. if upgrading is not an option, u might want to backport civicrm_group_roles. you'll have to modify it for drupal5 and civi 1.x api. not sure how much work would be involved with that (not a lot, other than the bugs / missing features that the code potentially uses)

lobo


A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Solution for roles sync in CiviCRM 1.9?

This forum was archived on 2017-11-26.