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) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • CiviMember Roles Sync module now works with CiviCRM 2.1 alpha
Pages: [1]

Author Topic: CiviMember Roles Sync module now works with CiviCRM 2.1 alpha  (Read 4086 times)

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
CiviMember Roles Sync module now works with CiviCRM 2.1 alpha
August 31, 2008, 10:25:58 pm
I have just released CiviMember Roles Sync 6.x-3.0-beta1 which can be downloaded here: http://drupal.org/project/civimember_roles

This version is functional with CiviCRM 2.1 alpha and Drupal 6.x. I have only done limited testing on it so far.

I've gotten a few requests to update this module, so I hope people find this useful!

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: CiviMember Roles Sync module now works with CiviCRM 2.1 alpha
September 01, 2008, 04:19:19 am
Posco,

Thanks for the heads up - and of course for your work on the module!

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Matt2000

  • I post frequently
  • ***
  • Posts: 288
  • Karma: 27
    • http://www.ninjitsuweb.com
Re: CiviMember Roles Sync module now works with CiviCRM 2.1 alpha
September 09, 2008, 12:34:37 pm
Posco,

I've written a module that syncronizes Drupal Roles -> CiviCRM Groups (e.g., for ACL purposes.)

Do you think this should be combined with your module, or should the two functions remain separate?

Drupal/CiviCRM micro-blogging http://twitter.com/matt2000

Ninjitsu Web Development http://www.NinjitsuWeb.com/

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
Re: CiviMember Roles Sync module now works with CiviCRM 2.1 alpha
September 09, 2008, 12:46:01 pm
I think we should combine the modules. I've had requests to add this functionality to my module, but I have been pretty busy and I felt it was outside of the scope of what I was trying to do.

So, since there is a demand for it I think it makes sense to merge them. Perhaps we can start a new module project and bring the code together as co-developers?

Edit: Actually I've been asked to have Groups -> Roles, but I still think it is a good idea to merge.
« Last Edit: September 09, 2008, 12:52:33 pm by posco »

Matt2000

  • I post frequently
  • ***
  • Posts: 288
  • Karma: 27
    • http://www.ninjitsuweb.com
Re: CiviMember Roles Sync module now works with CiviCRM 2.1 alpha
September 09, 2008, 06:25:10 pm
I don't think I'm too far off from two-way sync between groups and roles. I supposes it could even be an admin selectable preference. That might be down the road a few weeks or months though, depending on client needs.

I don't see a need to start a new project. New users don't often grok the difference between CiviMember and Groups anyway, but you might consider re-titling  your project page on drupal.org .

If you want to make me a co-maintainer, I'll check my module into a subfolder to get it started. My drupal.org username is matt2000.

Also let me know if I need to know anything about your branches. Otherwise, I'll add my work to HEAD for D6 and the latest DRUPAL-5 branch for D5.
Drupal/CiviCRM micro-blogging http://twitter.com/matt2000

Ninjitsu Web Development http://www.NinjitsuWeb.com/

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
Re: CiviMember Roles Sync module now works with CiviCRM 2.1 alpha
September 09, 2008, 08:29:31 pm
Ok, you have access. Use DRUPAL-6--3 for D6 and DRUPAL-5--2 for D5. HEAD is a mix between versions 5.x-1.2 and 5.x-2.0 and I abandoned it awhile ago. Everytime I make a new major version I make a new branch for it.

My rule so far has been to only increase the major version to mark compatibility with a new version of CiviCRM, so even though this is going to be a feature release I would like to keep the major version numbers where they are. So the next release will be 6.x-3.1 and 5.x-2.1. I'm not dead set on this scheme, so input is welcome, but it's probably easier just to leave things the way they are.

Feel free to contact me on the Drupal project page or by e-mail. My e-mail is in the README.txt file for the module.
« Last Edit: September 09, 2008, 08:34:11 pm by posco »

joemaine

  • I post occasionally
  • **
  • Posts: 114
  • Karma: 3
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.14
  • MySQL version: 5.1
  • PHP version: 5.2
Re: CiviMember Roles Sync module now works with CiviCRM 2.1 alpha
September 10, 2008, 02:18:22 pm
Thank you for the great mod! 

I use organizational memberships in CiviCRM and individuals within an organization (through relationships) are granted membership permissions in Drupal. I need to enable unique permissions for certain individuals within a member organization. There is no way to sync a unique individual "membership" to the organization's membership status (which could set an expiration date on the unique permissions).

Does this fit with your development plans...
--
Joe

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
Re: CiviMember Roles Sync module now works with CiviCRM 2.1 alpha
September 10, 2008, 02:47:24 pm
I think a solution to your problem would be for you to be able to sync Groups to Roles. You can put your unique users in a Group and then have them sync to a role. I do want to implement this feature as it has been requested and Matt2000's work will bring this module much closer to being able to do this.

However, for the time being, you should look into the CiviCRM OG Sync module or the CiviNode module. I think you can sync Groups to Roles using one of these modules (in a round about way). I have not seen the CiviCRM OG Sync module in 2.1, so I'm unsure if it was dropped or just migrated to CiviCRM's core module.
« Last Edit: September 10, 2008, 02:49:22 pm by posco »

Matt2000

  • I post frequently
  • ***
  • Posts: 288
  • Karma: 27
    • http://www.ninjitsuweb.com
Re: CiviMember Roles Sync module now works with CiviCRM 2.1 alpha
September 11, 2008, 04:42:06 pm
commit forthcoming. I found a minor bug that spits an ugly error when a user has no roles. I'm off to DrupalCamp, so I'll finish up there if I can, or after I return.
Drupal/CiviCRM micro-blogging http://twitter.com/matt2000

Ninjitsu Web Development http://www.NinjitsuWeb.com/

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
Re: CiviMember Roles Sync module now works with CiviCRM 2.1 alpha
September 11, 2008, 04:48:49 pm
Sounds good. No rush. School just started for me, so development is going to be slow on my end. Although development is always slow on my end.

Matt2000

  • I post frequently
  • ***
  • Posts: 288
  • Karma: 27
    • http://www.ninjitsuweb.com
Re: CiviMember Roles Sync module now works with CiviCRM 2.1 alpha
September 20, 2008, 02:53:29 pm
I have committed 'civiroles_to_groups' to the DRUPAL-5--2 branch.

I'd like to see a couple people beside me test it before we roll an official release, but it should appear in the -dev snapshot tonight.
Drupal/CiviCRM micro-blogging http://twitter.com/matt2000

Ninjitsu Web Development http://www.NinjitsuWeb.com/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • CiviMember Roles Sync module now works with CiviCRM 2.1 alpha

This forum was archived on 2017-11-26.