July 10, 2010 at 9:21 pm #1476
I have another problem…
When an account is expired, the WP role is not updated at all. Therefore, the expired account still has a “premium” membership and is able to access other things on the site that rely on the WP role, in my case, forums.
Is there a way to have the WP role update when the eMember login expires, or the username automatically deleted?
Secondly, I am currently having trouble with integration with Simple Press, and are on their forums as well to see how we can address this…
Basically, when I create a new member with a premium level, and who should be assigned “premium” as the WP role, SPF is only creating it for the role that is default according to WP. Meaning on the Settings > General tab.. the “Default role for new user” But, looking at WP, the role is correctly changed to “premium” Somehow the code isn’t interacting or updating correctly, and again, I’m not sure if it’s between SPF or eMember. It seems like this is what’s happening…
eMember creates user in Membership database – > Feature allows a WP user to also be created -> WP creates user with default role -> SF gets new user from WP but applies the WP default role user group as defined in SF -> eMember updates WP to new role status for member – > WP acknowledges role change and displays accordingly -> SF isn’t notified about role change
These are obviously both important matters as with one, members are receiving access for free and the other, they aren’t even getting their proper access.
Thanks for your help!July 11, 2010 at 2:24 am #22356
Okay looks like the WordPress users role isn’t getting updated at the time of membership expiry when the WordPress user integration feature is used. It must have got broken in the last few patches as we added many new features. We will investigate this and provide a fix soon.July 11, 2010 at 2:31 am #22357
Great, thank you very much!
Also, I’m not sure if it was implied, but would your fix also remedy my Simple Press issue where once a user logs in with “premium” access, that it would also be updated with Simple Press? I’m not asking you to fix SP, but I think it’s because the eMember plugin isn’t doing a proper notification… Because when i change the role manually in the WP Users tab, Simple Press does pick up the change.
Thank you very much!!July 12, 2010 at 1:12 am #22358
When the user logs into eMember it also logs them into your WordPress if you are using this option from the settings menu. I am not sure what this has got to do with updating the User Role?July 12, 2010 at 1:33 am #22359
Right. It’s just that, to expand the functionality of “also creating a wordpress users” and being able to use this plugin alongside other plugins, ie the Simple Press forum… The user role needs to be updated using the WordPress user role API, like I stated in the new post…
So if i had part of the forums for “premium” members, but it isn’t receiving that User123 is a premium member, they will not belong to that user set defined for “Premium” WP user role… because the WP role isn’t being updated via the WP api, or so I’m assuming. When it’s updated using the WP api, it’ll trigger in other plugins, and make this plugin much more valuable.June 15, 2011 at 11:23 am #22360
Is there any updates to this? I have been working with the admin’s from SimplePress to troubleshoot why I as having the same issues. Can you please view the thread I have running on simplepress (http://simple-press.com/support-forum/simple-press-version-440/user-group-memberships-based-on-wp-role-not-working-1/) for details as I have done a step by step with screenshots of my issue and it seems the others above are having the same problem. I was informed that it was prob due to the eMemeber plugin not utilizing the WP api when creating the WP roles which leaves simplepress in the dark as to the appropriate permissions to allow a forum user when the member is created in eMember/WP. Any help with this would be greatly appreciated.June 16, 2011 at 12:13 am #22361
This issue was resolved a while back. There are people using simplepress and eMember.
WP eMember USES the WordPress API to create the user. It uses the following function to create the user:
You can check the code of eMember to verify (open “eMember_misc_functions.php” file and search for “wp_create_user” and you will find it.
The same goes for user update. It uses the following WordPress API:
Are those the API Simplepress is talking about or are they talking about something different?
Can you tell me which scenario is not working for you… for example: is it when new users become a member or when their membership get updated?June 17, 2011 at 12:06 am #22362June 21, 2011 at 7:10 pm #22363
Hi admin007.. this is currently happening when a new member is being created. I will forward the info you provided to the simplepress guys and see what they say. Thank you for the info!
The steps used to create the scenario are provided at the following link: http://simple-press.com/support-forum/simple-press-version-440/user-group-memberships-based-on-wp-role-not-working-1/June 21, 2011 at 11:03 pm #22364
@matzen, another user followed this up with simplepress and we added a hook based on their suggestion. This post has more details:June 23, 2011 at 12:05 pm #22365
Hi admin.. I have installed the new version you provided and still it is assigning users to the default user role so I do not believe the hooks are working? I believe the other user who is posting on the other thread is having the same issue.June 24, 2011 at 12:25 am #22366
Well it turned out that the other user did not follow this instruction in the first place so we were trying to fix something that wasn’t the issue:
Do you have those checkboxes checked in the eMember settings?
- You must be logged in to reply to this topic.