franciccio-ITALIANO Posted June 22, 2018 Share Posted June 22, 2018 I must choose if create groups of users by buddypress of wordpress, or by login system of processwire. In my project, each users group exist for send an emal in post for each new comment. I see that in processwire, in comment area we can subscribe the discuss. So, I would like to know if exist a simple way to create a list of own groups in each profile member. I hope I explain my problem! Peraphs, is better and faster to use buddypress, right? Link to comment Share on other sites More sharing options...
maxf5 Posted June 22, 2018 Share Posted June 22, 2018 You can create roles in ProcessWire. For example GuestsA, GuestsB, GuestsC and easily get 'em via Api. // Get them $usersA = $users->find("roles=GuestA"); // Check them if($user->hasRole('GuestA')) Also you can create custom fields inside the user-"pages". So you could create a selectfield which you can set with a hook after registration. $users->find("yourcustomfield=groupA"); 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now