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) »
  • Drupal Membership Site (please help)
Pages: 1 [2] 3

Author Topic: Drupal Membership Site (please help)  (Read 19686 times)

brantwinter

  • Guest
Re: Drupal Membership Site (please help)
November 22, 2007, 06:25:48 am
I know this is an old topic, but has anyone found a way to update a Drupal role based on a contacts status ?? This is the only thing holder me back from using CiviCRM for a cancer group here in Aus to handle membership signup and then give them access to a newsletter that has Drupal ACL's assigned via a node.

twowheeler

  • I post occasionally
  • **
  • Posts: 115
  • Karma: 11
    • Harrisburg Christian Performing Arts Center
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Drupal Membership Site (please help)
November 22, 2007, 07:34:26 am
This would be useful for lots of folks.  I am wondering if a combination of civinode and tac_lite drupal modules would get us there.  I will investigate and report back.


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: Drupal Membership Site (please help)
November 22, 2007, 03:02:20 pm

you might want to also check: http://cvs.drupal.org/viewvc.py/drupal/contributions/sandbox/gordon/civicrm_role/

i think one simple rule could be:

reflect a civicrm group as a drupal role. so when a contact is added/removed from a civicrm group, modify the drupal roles table to add/remove that role for the corresponding user (if the contact has an associated user record). This is a bit similar to what we do with organic groups

would be great if someone from the community can make this contribution and/or sponsor its development


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

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: Drupal Membership Site (please help)
November 23, 2007, 02:54:06 am
It seems if someone was to do this they would focus on the Civi 2.x version?

twowheeler

  • I post occasionally
  • **
  • Posts: 115
  • Karma: 11
    • Harrisburg Christian Performing Arts Center
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Drupal Membership Site (please help)
November 23, 2007, 05:26:50 am
I am not sure that this requires any coding.  There is a screencast of the tac_lite module on Dave Cohen's site:
http://www.dave-cohen.com/node/1170/play

Also civinode should be able to expose civicrm's groups to drupal.  You would then set access permissions using tac_lite based on the civicrm status.

I am not at home to try this out (still in turkey recovery mode), but it seems like it should work. 

If no one else does so, I will try it over the weekend.

Laryn

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 4
    • CEDC
  • CiviCRM version: 4.6.x
  • CMS version: Drupal 7
Re: Drupal Membership Site (please help)
November 29, 2007, 12:52:57 pm
I'm not familiar with those other modules, but if you try it and it works...I'll learn them as quickly as I can!

Peace,
lpkb
CEDC...social justice by design

*Get support on the new CiviCRM help site. /laryn

scottblitz

  • Guest
Re: Drupal Membership Site (please help)
December 06, 2007, 08:56:16 am
Quote from: Donald Lobo on November 22, 2007, 03:02:20 pm

you might want to also check: http://cvs.drupal.org/viewvc.py/drupal/contributions/sandbox/gordon/civicrm_role/

i think one simple rule could be:

reflect a civicrm group as a drupal role. so when a contact is added/removed from a civicrm group, modify the drupal roles table to add/remove that role for the corresponding user (if the contact has an associated user record). This is a bit similar to what we do with organic groups

would be great if someone from the community can make this contribution and/or sponsor its development


lobo


I've been looking for someone to update this module for months with no takers - is there anyone here interested?

SB

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
Re: Drupal Membership Site (please help)
December 20, 2007, 03:55:24 pm
I'm working on a site that needs this functionality as well. Any updates?

scottblitz

  • Guest
Re: Drupal Membership Site (please help)
December 21, 2007, 12:51:13 pm
In another thread they quoted me $4000 - $8000, which we just can't afford, so we opted to go with WildApricot instead

I'm still using civicrm for another project where we don't need the integration

SB

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: Drupal Membership Site (please help)
December 22, 2007, 02:24:18 pm

Unfortunately this seems to be like the chicken and egg problem :( We have quite a few users who want this functionality, but no one willing to either implement / upgrade the current work or sponsor a new module which does the above and more.

This is on our todo list and will make it into a 2.x release

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

westwesterson

  • Guest
Re: Drupal Membership Site (please help)
December 22, 2007, 02:52:18 pm
I don't have the time or resources to do this right now, but i would think that the addition of actions to drupal 6 would make this much more trivial if working with that version.

You would need some kind of cron hook which would check the dates on memberships and when they expire call the action which switches the role.

Or this is a better solution actually:
When a user logs in you can do a check on their membership status and use actions to change their role at login as necessary.

I sincerely doubt that it would cost 4,000 dollars to implement that functionality in a drupal module, but who knows.

Drupal 6 integration with actions is definitely a good thing  ;)

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: Drupal Membership Site (please help)
December 23, 2007, 10:25:36 am

code to do this when you have the time and resources and when drupal 6 is out would be great and much appreciated by the community. Based on your description of actions, the module is simplified a lot since you can potentially change and fix roles at login time.

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

westwesterson

  • Guest
Re: Drupal Membership Site (please help)
December 23, 2007, 03:30:12 pm
Come to think of it, this can be done with the workflow-ng module (and probably workflow module too) on drupal 5. Now you can execute arbitrary php based on a predefined set of conditions.

You would have to select on login, and have the condition be the role that you want, then add an arbitrary php action. Then you would have to code some php using the civicrm api which queries crm_get_contact_memberships($contactID) to get their current membership status.

I don't have time to write out the pseudo code for you, but someone can probably shop this around and get someone to do this much more reasonably.

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
Re: Drupal Membership Site (please help)
January 26, 2008, 07:52:39 am
I have written a module that syncs CiviMemberships with Drupal roles. I am in the process of publishing it as a contributed module to the Drupal website. I will provide a link to it once it has been published.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Drupal Membership Site (please help)
January 27, 2008, 05:25:43 pm
This is excellent news. It would be great if you would post a short "blog" about his once it's ready for folks to try out - since lots of people have expressed interest. Also, if you haven't already tested your code with the latest 2.0 codebase - we're in alpha and pretty stable - and it would be terrific if the module could be run under 2.0!
Protect your investment in CiviCRM by  becoming a Member!

Pages: 1 [2] 3
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Drupal Membership Site (please help)

This forum was archived on 2017-11-26.