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 »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Matching Civi Membership Levels with Wordpress Roles at signup/account creation
Pages: [1]

Author Topic: Matching Civi Membership Levels with Wordpress Roles at signup/account creation  (Read 1381 times)

siriusly

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Wordpress 3.5.2
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Matching Civi Membership Levels with Wordpress Roles at signup/account creation
July 30, 2013, 05:44:11 pm
UPDATE:  Disabling the CiviMember Role Sync Plugin after manually sycning the roles once eliminates this problem.  Is there a place to define or eliminate the default role that CiviMember Role Sync applies to a new user?

Setup:
• We have two membership levels: paid & free.  Paid members get discount on event fees...
• On the membership signup form, the profile is set to force Wordpress account creation...
• Upon membership form submission, their Wordpress account is created under the default user role (free membership) and the user is logged in to their account...
• I'm using Role Sync plugin to match WP roles with CiviCRM membership levels.

Problems:
1. Regardless of the chosen membership level, Wordpress is assigning them "no role," even though the default role for new user is set to "free member."
2. Assuming I can solve #1...
Even if the now logged in user has registered as a paid member, they will be logged as a free member until they log out and back in (hopefully triggering the Role Sync plugin's function), so if they go to register for the event, they will not get the paid member discount.

Suggestions?  Workarounds?    Many thanks!
« Last Edit: August 01, 2013, 11:49:00 am by siriusly »

tagnw

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: WordPress 3.8
  • MySQL version: 5.1.72-cll
  • PHP version: 5.3.25
Re: Matching Civi Membership Levels with Wordpress Roles at signup/account creation
February 18, 2014, 12:16:39 pm
I know this is an old post, but I wondered if you can tell me how you did the setup you describe below where a new member is forced to create a WP login?  I set the selection in the profile used on membership pages, but nothing changed.  Also, did you ever solve your problem of users having to log out and back in for it to "kick in"?

Quote from: siriusly on July 30, 2013, 05:44:11 pm
UPDATE:  Disabling the CiviMember Role Sync Plugin after manually sycning the roles once eliminates this problem.  Is there a place to define or eliminate the default role that CiviMember Role Sync applies to a new user?

Setup:
• We have two membership levels: paid & free.  Paid members get discount on event fees...
• On the membership signup form, the profile is set to force Wordpress account creation...
• Upon membership form submission, their Wordpress account is created under the default user role (free membership) and the user is logged in to their account...
• I'm using Role Sync plugin to match WP roles with CiviCRM membership levels.

Problems:
1. Regardless of the chosen membership level, Wordpress is assigning them "no role," even though the default role for new user is set to "free member."
2. Assuming I can solve #1...
Even if the now logged in user has registered as a paid member, they will be logged as a free member until they log out and back in (hopefully triggering the Role Sync plugin's function), so if they go to register for the event, they will not get the paid member discount.

Suggestions?  Workarounds?    Many thanks!
« Last Edit: February 18, 2014, 01:14:24 pm by tagnw »

krypto

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 5
  • IT guy for @bhahumanists. Running Civi on WP.
    • British Humanist Association
  • CiviCRM version: 4.5.8
  • CMS version: WordPress 4.x
  • MySQL version: 5.5.x
  • PHP version: 5.5.x
Re: Matching Civi Membership Levels with Wordpress Roles at signup/account creation
February 24, 2014, 10:22:38 am
Did you test the WP-login setting with a logged-out user? It won't show if you're logged in.

You could solve the logout/login problem by having the appropriate function trigger on every load of a particular page, and make sure users hit this page when they register as a paid member. Bit hacky, but that's what I did.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Matching Civi Membership Levels with Wordpress Roles at signup/account creation

This forum was archived on 2017-11-26.