Jump to content

Can I Create some GROUPS of users?


Recommended Posts

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

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");

 

  • Like 2
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...