Jump to content

How to create groups in a website?


JDreau

Recommended Posts

This is quite advanced.

 

A "group" in this context is a page that can only be accessed by a certain set of members.

 

So first of all, in our database we would have a groups table and a users table. Groups have an ID, name, etc. Users have an ID, name, etc.

Then we would have a relationship between a groups table and the members table. One feature of that relationship would be the status of the member in that group, so we would need a table that associates groups and users with a status as well, such as this:

 

GroupID | Status | UserID

---------+----------+---------

1 | Member | 3

1 | Admin | 1

1 | Member | 2

:: User 1 is an admin of group 1, users 2 and 3 are members of the group

 

Then there's an entire set of tables dedicated to adding discussion threads, comments, widgets and articles to the group, which is a massive project in itself.

 

A project of this sort could be worth tens of thousands of dollars to create, and that's my lower-range estimate.

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
×
×
  • Create New...