Support Forum

Usergroup not updating with WP role change – using Wishlist Member

SZ Stefan Zabel
Stefan Zabel
Member

Hi,

I’m trying to test what happens on the forum when I change member levels in Wishlist Member.

I’ve got each member level associated with it’s own WP role (Full, Free and Partner).

And each WP role mapped to its own user group in SP with the same name (please see attachment…I hope it’s clear enough).

When I move a member to a new membership level, I was hoping they would change user group, but this doesn’t seem to be happening. They are staying in the user group they were initially in. The WP role changes but not the user group in SP.

Should the change happen automatically? Is there perhaps a lag time like the 1 hour lag for forum stats to update?

Thanks

12 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

So if they are not being removed from the user group they were in – are they being added to the new target user group? This would make sense as you do not have the option set to restrict users to a single group…

SZ Stefan Zabel
Stefan Zabel
Member

Should have said…no, they’re not being added to the new usergroup.

Incidentally, if a member is included in 2 user groups, what permissions do they have?

YS Yellow Swordfish
Yellow Swordfish
Member

Sorry that took a while but I have been running some test scenarios here and I don’t have any problems. Subsequent movement between user groups is automatic – as expected.

So – perhaps the first thing to do would be for you to talk me through exactly where and how you are changing their WP role…

By the way – no lag involved. These changes are triggered by the WordPress hook system that basically sends a message out to say something has changed which gives plugins the opportunity to run code on the back of it.

As to your duel user group question – if both user groups are assigned to a forum then the user in both of them gets the best permissions of the two on each individual one. So – most open permission will prevail.

MP Mr Papa
Mr Papa
Member

are you using forum ranks?  and when reaching a rank, is a user auto assigned to new user group?

SZ Stefan Zabel
Stefan Zabel
Member

Hi Yellow Swordfish, I set up new WP roles using the Role Manager plugin. I created 3 new roles – free, full and partner.

I’m using Wishlist, and have 3 membership levels – free, full and partner too.

In the Manage Membership Levels screen in Wishlist, I’ve assigned a unique WP role to each level – the WP role full to full members and so on.

When someone registers for the first time, the role is assigned fine.

I’ve assumed when you move a member from one level to a new membership level, their role will change too.

However, perhaps not. I believe you guys use Wishlist. Have you come across this problem?

I’m going to check with WL support, but just found this plugin http://wishlistmemberplugins.com/shop/wishlist-member-change-user-roles-extension/ which suggests the role doesn’t change with a change in membership level.

To Mr Papa, I’m not using forum ranks at the moment.

Thanks

YS Yellow Swordfish
Yellow Swordfish
Member

Easy enough to check. Change your WishList members level and then look at their user record in WP (or from the WL members listing) That will tell you the WP role they have set.

We do have a codex article describing how best to set this up using Wishlist which may be of interest: http://codex.simple-press.com/codex/faq/problem-with-post-edit-buttonow-to/problem-with-post-edit-buttonow-to-configure-simple-press-with-membership-plugin/

SZ Stefan Zabel
Stefan Zabel
Member

I checked it out as you suggested, and WP role isn’t updated when you change member level. You can certainly change roles manually, but I’ll add a comment in this thread if I work out a way to do it on auto.

Thanks again

YS Yellow Swordfish
Yellow Swordfish
Member

As we suspected. I think you need to document I linked you to. That works for us here.

SZ Stefan Zabel
Stefan Zabel
Member

I’m pretty sure I’ve got things set up like that already. That page mentions it only works for new users though, and I’ve found something in Wishlist’s knowledge base that says,

If you place a Member into a different Membership Level that has a different Role than the previous Membership Level then the Member will retain their original Role unless they are manually changed.

I’ll see if Wishlist support confirms this and let you know. Cheers

SZ Stefan Zabel
Stefan Zabel
Member

Just got a very quick response from Wishlist confirming role does not change if you move a member to a new level.

So…I installed the plugin I linked to above, and that solves the problem. Thanks again for all the advice…

SZ Stefan Zabel
Stefan Zabel
Member

Not solved yet unfortunately.

With the plugin installed, if I change a member’s membership level, their WP role is updated, as shown in WP Dashoard > Users > All Users.

For some reason the role isn’t updated in Forum > Users > Member Information. If I manually map users it does update. Otherwise it doesn’t.

I’ve got a directory on the site too. Permissions on this are based on roles too. This does seem to update automatically.

Not sure what’s happening now…

YS Yellow Swordfish
Yellow Swordfish
Member

Well – as I said yesterday – role changes in WordPress are picked up by Simple:Press because a hook is fired (message is broadcast) and we can run our code on receipt of the message. Sounds to me that it is likely this plugin you have found does not fire the standard WordPress hook/send the message. And if that is the case it just means Simple:Press is never informed of the role change. And that is not good and frankly, bad plugin writing.