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 Role Sync
Pages: [1]

Author Topic: CiviMember Role Sync  (Read 540 times)

Finn

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.2
  • CMS version: Drupal
  • MySQL version: 5.5.24-55-log
  • PHP version: 5.3.2-1ubuntu4.19
CiviMember Role Sync
November 22, 2013, 02:16:00 pm
I've been looking for a solution for this for quite some time now. Drupal Roles are synced through the 'sync when membership is updated' option. (it was the better choice in comparison with logout/log in) This works pretty fine for 70-80% of the time, but sometimes it doesn't. Maybe because some members don't complete their payment in the same session or something like that, so I want to create a script that the manual sync is activated every hour or so, just to be sure.

Is there any way to realize this? The manual sync apparently isn't a script that you can activate by cron, it's a form. How can you activate this automatically? Via a simple wget that runs the URL for example? I just want to find a way that the sync is run every hour automatically.

Every kind of help would be appreciated! :)

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: CiviMember Role Sync
November 22, 2013, 02:33:27 pm

u'll need to make changes to that page/form to allow it to be triggered via an email.

if you do make those changes, u might want to ensure that there is a user/pass/key associated with that url to prevent anon folks / crawlers from invoking that url

u'll need some php skills to do the above

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

Finn

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.2
  • CMS version: Drupal
  • MySQL version: 5.5.24-55-log
  • PHP version: 5.3.2-1ubuntu4.19
Re: CiviMember Role Sync
November 29, 2013, 11:06:56 am
Thanks for your answer. So I have to edit this page/form from Drupal itself? I don't think I'm capable in doing that. Are there no alternatives to trigger manual sync?

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: CiviMember Role Sync
November 29, 2013, 03:52:44 pm

dont think so :(

if your org/client has funding, it might want to hire someone to implement it.

Alternatively if you can write a shell script, you might be able to do this via drush (just thought of this)

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

Finn

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.2
  • CMS version: Drupal
  • MySQL version: 5.5.24-55-log
  • PHP version: 5.3.2-1ubuntu4.19
Re: CiviMember Role Sync
December 09, 2013, 08:18:58 am
Unfortunately, I can't write Shell scripts... Is it really that difficult? Because all it has to do, is activating the manual sync form, like pressing a button. If anyone has another solution, I would be very grateful. Also, I think many people would benefit from this help cause I'm convinced I'm not the only one with this issue.

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

This forum was archived on 2017-11-26.