need programming help with group/members.php page

need programming help with group/members.php page

by sam altomere -
Number of replies: 0

Hi, 

I am trying to change the code for potential members window on the group/members.php (which is a function in the group/lib.php file) to only show potential users who are NOT a member of any other group within that course for addition to a new or existing group.

IN other words, when I click on a group, and then click add/remove users, I only want to see users whom are enrolled in the course, but not assigned to any group. 

Presently, the code will allow the list of potential members to consist of members whom are not part of the present group, but whom are part of other groups in this course. 

The code within group/lib.php is written with notes stating that it is not going to allow users who are assigned to other groups, but they show up in the potential members list anyway.

Could someone help me to understand what i need to do to have only course members who are NOT a part of ANY other group within the course to be displayed as Potential Members?


thanks

Average of ratings: -