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
How to automatically move people from one user group to another (with Wishlist)
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 2, 2014 - 5:08 am

Most curious. The Simple:Press User Groups are changed on a standard WordPress action hook so that when a role is changed - WP fires an event action that Simple:Press then picks up and acts upon. No current known issues and in use by many, many users including us. So the first possibility is that for some reason that hook is not being fired or is being turned off. As far as I am aware there are no problems with WP Role Manager plugin either - unless @mr-papa knows of anything...

I do see now, however, that the question regarding forum ranks is a good one as that can also change a users group membership. So - do you have any standard rankings set up - based on number of posts?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 2, 2014 - 9:17 am

No, nothing than the other things I queried for...  We dont use the auto upgrade feature of wishlist, so have no real way of knowing if wishlist 'properly' changes the wp role for that or not (ie uses the wp api for the role change so a hook is fired)...  would expect they are...  there are been no other reports of similar issues and wishlist is quite popular but dont know if that feature is used by others or not...

We just released an Event Logging plugin... might be interesting to give that a try and log the wp role change hook and see if its getting fired... would be good data point...

Avatar
John McIntyre
Member
Free Members
sp_UserOfflineSmall Offline
Nov 3, 2014 - 8:57 am

So what are my options here?

Try the event logging plugin and see what appears?

Hire a dev to custom code something?

Happy to give you admin access if you want to take a look yourself. Email me - john (at) themcmethod.com

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 3, 2014 - 10:29 am

Steve is suggesting the Event Logging plugin simply to determine whether the action hook for WP role changes is being fired as expected. So it is worth a try as part of a process of elimination. I will need to talk to him about how that is set up...

Meanwhile there is still the outstanding question of forum ranks which while unlikely - is again, worth eliminating.

andy-signature.png
YELLOW
SWORDFISH
Avatar
John McIntyre
Member
Free Members
sp_UserOfflineSmall Offline
Nov 3, 2014 - 11:06 pm

Haven't changed the default forum ranks.

Just checked. 

New member, 2 posts.

Member, 1000 posts.

Both are set to "none" for Automatic User Group membership.

So when someone joins, they get signed up under the "McMastersTrial" membership, and their rank is set to "New Member".

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 4, 2014 - 2:58 am

So we do need to check that the role change event is being triggered as expected. Steve suggests using the new event logging plugin so I will check how to add a hook as I am not yet accustomed to using it.

( @mr-papa - if you get here first can you describe setting this up please? )

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 4, 2014 - 9:35 am

install our event logging plugin...  then go to its sp admin panel...  and fill out the name of the action to log

log.pngImage Enlarger

The name you want to use is: 

set_user_role

then whenever wp changes the role of a user, it will fire that action...  wait for a user to be auto upgraded and see if the hook was logged.. you can test it by manually upgrading a user...

Avatar
John McIntyre
Member
Free Members
sp_UserOfflineSmall Offline
Nov 4, 2014 - 8:31 pm

The installation failed. I tried both methods - uploading via the wp-admin interface and uploading via FTP.

The FTP info said:

Command: cd "/wp-content/plugins/logger/resources/images"

Error: Directory /wp-content/plugins/logger/resources/images: no such file or directory

Command: cd "/wp-content/plugins/logger/resources"

Error: Directory /wp-content/plugins/logger/resources: no such file or directory

Any ideas?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 4, 2014 - 9:18 pm

see:  https://simple-press.com/docum.....g-plugins/

Its an SP plugin, not a WP plugin...

Avatar
John McIntyre
Member
Free Members
sp_UserOfflineSmall Offline
Nov 4, 2014 - 10:10 pm

Ok, it's working. Set it up and upgraded a user manually... but not sure how to get the results and post them here?

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