Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
requests-topic
Paid Memberships Plugin?
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 22, 2016 - 1:55 pm

Hang on... is this user group a group of admins? And by that I mean users who are assigned an SP admin role? If so then they don't have a 'real' user group as their permissions are global and blanket. and it makes no difference what WP role they have as that has no relevance. So is this the case?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Bluedrake42
Member
sp_UserOfflineSmall Offline
Jan 22, 2016 - 2:13 pm

No no no sorry I should have clarified that. Yeah I'm aware of the admin user group issue.

A Senior Administrator in our community isn't a forum administrator, nor do they have any admin permission on the website. They are Senior Administrators for our game servers. They have permissions on a completely different platform, our website is only where they coordinate (our Senior Managers are the forum admins)

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 22, 2016 - 3:30 pm

OK. .So let's backtrack. I may be wrong here but I wasn't aware that WordPress allowed for multiple roles for a single user. It's natural and standard state as I understand it is one user/one role. So what plugin are you using that allows for this? And perhaps you need to talk to the plugin authors about firing the right hooks.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Bluedrake42
Member
sp_UserOfflineSmall Offline
Jan 22, 2016 - 3:37 pm

Here’s the plugin I’m using: https://wordpress.org/plugins/members/

and here's the crazy thing though, if I actually press map users... it actually does work with multiple roles. Like for instance that guy had Senior Administrator AND Project Reality Team, and while it doesn't happen automatically... if I press the map users butting, it does actually add him to both groups on the SP forums.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 22, 2016 - 4:29 pm

So - a few things first. SP allows for users to belong to multiple user groups (although you can turn that off).

When you use the explicit 'map users to user group option' - SP will trawl through the users and the roles they are associated with and implement the mapping rules you have set. This is always going work.

I do not know how fully you understand WP action and filter hooks so excuse me if I cover ground you are familiar with. When an action occurs - such as a user is assigned to a  WP role - an action is triggered. Think of it like a message being broadcast and all your plugins can pick up that message and they know if they have to do something in response.

SP knows it might have to adapt the users role/user group mappings on a WP role change or assignment. But only if that message is sent.

When a plugin takes over responsibility for a task then it is supposed to trigger the same actions - i.e., send out the same messages for plugins to pick up. This is where some plugins have been seen to go astray. They fail to replicate standard WP API behaviour as they are supposed to. The net result is, of course, that plugins like SP do not get the message and hence - do not respond as expected.

I am, of course, merely speculating at this juncture. But this is, as I have said above, something we have encountered before wth a membership plugin and it is possible that this was the one - I just don't recall the name and frankly, searching for the term 'Members' through the forum topics is going to yield a very high result count!

Which lead to my suggestion that perhaps asking the plugin authors if they do correctly call all of the WP filter and action hooks as expected - might be a good idea. Especially in the area of role assignment and role change.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Bluedrake42
Member
sp_UserOfflineSmall Offline
Jan 22, 2016 - 4:30 pm

Okay, well after testing it you're definitely right. I disabled the members plugin, and now it syncs user roles properly.

Shame =/ I was really hoping for multiple roles. However I also had to turn on "force users to one role" in SP because otherwise when changing roles it would only add, not change =/

Ah well. I'll make it work with single user groups. Luckily that's something that won't clash with how we run things. Too bad though =/ I was hoping to try out a new multirole system

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jan 22, 2016 - 5:45 pm

Well, the important thing is things are working as they should! And glad it won't clash with your current setup of course.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10126
Posts: 79622