Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
User group change not permanent
Avatar
Stefan Zabel
Member
sp_UserOfflineSmall Offline
Feb 21, 2017 - 3:19 pm

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? Thanksmod-list.JPGImage Enlarger

Avatar
Stefan Zabel
Member
sp_UserOfflineSmall Offline
Feb 21, 2017 - 4:19 pm

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 21, 2017 - 6:01 pm

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stefan Zabel
Member
sp_UserOfflineSmall Offline
Feb 22, 2017 - 2:18 am

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?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 22, 2017 - 3:38 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stefan Zabel
Member
sp_UserOfflineSmall Offline
Feb 22, 2017 - 4:15 am

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 22, 2017 - 4:30 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 22, 2017 - 4:31 am

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:

https://simple-press.com/docum.....ip-plugin/

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stefan Zabel
Member
sp_UserOfflineSmall Offline
Feb 22, 2017 - 11:49 am

Wishlist isn't very flexible as far as I can see either, so went with new WL moderator member level > new WP role > mapped to moderator user group in SP.

It works fine, just a pain to have another level to manage in WL.

Thanks for the advice.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 22, 2017 - 12:19 pm

Good you are getting what you want there but yes - I grew to really dislike WishList personally although I think Steve still had a lot of time for it.
You should get that small custom plugin fixed up as it is most inefficient as it is I am afraid.

andy-signature.png
YELLOW
SWORDFISH
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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626