Support Forum
Hi, I'm trying to move someone to the moderator user group. It seems to work, then something happens and they move back to the original user group. It might be when they log back in, I cannot work it out.
Sometimes I see them in the moderator list at the bottom of the forum - see attachment - sometimes I don't, but when they do appear there, they soon disappear again. Can you help? Thanks
We use Wishlist Member. Each Wishlist member level has a WP role attached to it which is associated with a specific user group in Simple Press.
I'm thinking when the newly assigned moderator logs in again, the role associated with their Wishlist membership tells SP they need to be moved back to the user group associated with the role that's associated with their member level, if you see what I mean.
Other than setting up a whole new member level for them, do you know a way to stop this happening, if indeed this is the issue? Thanks
I don't think either of those two scenarios are likely - either when they log back on - or - being influenced by the WP role.
Let's get the obvious question out of the way first. Are you using any caching plugin - which could cause the appearance of this behaviour even if not the fact of it.
YELLOW
SWORDFISH
|
No caching plugins.
When we set up Wishlist and Simple Press, we couldn't get the role and therefore the SP permissions to update when a subscriber changed member level. A few people had written plugins to support the integration but they didn't work in full either. We got someone to write us a basic plugin that solved the problem, code attached in a text file below.
This might be a factor. I don't know if WL/SP has moved on in terms of integration. Perhaps we don't need it any more?
I also was looking at your help text on the page Forum > User Groups > Map Users to User Group, specifically the option 'Users are limited to single usergroup membership' which we have ticked. I didn't understand it fully, but it mentions membership plugins and problems associated with this option:
"Please note that auto usergroup membership by WP role or by forum rank may conflict or overwrite any manual usergroup memberships (such as moderator) you may set if you have single usergroup membership set"
Is that the culprit?
Ah - I was indeed incorrect. Your custom plugin is, indeed, checking the users role at each and every page load and changing if necessary according to the rules - like being allowed only in a single user group at a time. Checking on every page load is a bit expensive and it would have made much more sense to check on login as you, yourself, suggest.
The code in the plugin is very specific about user groups as well. It caters for 3 user groups by name which leaves it a bit inflexible. And yes - I see it can change a users group if necessary.
If you want to allow a user to be in multiple user groups you will need to change the custom plugin code. If you create a new role in WishList of 'moderator' and continue to allow users to be in a single SP user group then I think the plugin code would allow that as it is unaware of that WP role.
YELLOW
SWORDFISH
|
I've created a new role for moderator. But when I change the role for the user to moderator, WP immediately changes their role to the one associated with their Wishlist membership level.
I've deactivated the custom plugin, but it still happens.
Can you think of what I might be doing wrong?
I can create a new moderator membership level in WL associated with the moderator role but it's a bit cumbersome.
I am starting to hit the extent of my knowledge of WishList here sadly. We used to use it on this site (but @mr-papa did all of our user management maintenance and coding) and changed last year partly because we found it so inflexible and obstinate. He will be around later and may well have something to add to this thread.
This sounds like something WishList is doing to me so perhaps you do need to create this whole new group through WishList User, WP Role and then SP User Group. Unless you can determine if there are options within WishList to stop the behaviour.
YELLOW
SWORDFISH
|
By the way - I don't know if it is of any help, but we do have an FAQ of how we set up WL and SP to work:
YELLOW
SWORDFISH
|
1 Guest(s)