Cleaned up a few things to do with groups. Allowed groups to be selected through the htaccess file and next I will the creation of a group by a user.
Fixed bugs due to mysql.php being included more than once. I should have been using include_once function in the php.
Fixed bugs due to mysql.php being included more than once. I should have been using include_once function in the php. This was a bigger problem than I thought. I have now replaced all occurances of not using include_once.
Back end for adding a new group with the user in it is complete. Now need to add functionality to add others to the same group, this will take much longer.
Added error messages for failure during group creation
Adjusted nav bar so that in future, groups can be selected from there that the user belongs to.
Added new script to make available a list of a users groups excluding their cohort group.
Fixed bug where notifications were only being loaded on the main page, and not the chat page.
Added the ability for users to create their own groups. They are redirected correctly. Next up, I will enable adding other people to groups (backend first).
Fully implemented customisable groups. Known bugs: You can join the same group multiple times; you are redirect to your new group sometimes before you have been added to the group (race condition); comments and posts are still also subject to occasional race condition related bugs that require you have to refresh the page to see your new comment or post.
Merge branch 'cstm_groups'