How do I add to search for list members, such as admin, etc

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • XGC Viper XI
    Member
    • Sep 2007
    • 60
    • 5.5.x

    How do I add to search for list members, such as admin, etc

    In the Memberlist.php file on line 355 here is the following code:

    // check permission to do authorizations in this group
    if (!$leadergroup = $db->query_first_slave("
    SELECT usergroupleader.usergroupleaderid, usergroup.title
    FROM " . TABLE_PREFIX . "usergroupleader AS usergroupleader
    LEFT JOIN " . TABLE_PREFIX . "usergroup AS usergroup ON (usergroupleader.usergroupid = usergroup.usergroupid)
    WHERE usergroupleader.userid = " . $vbulletin->userinfo['userid'] . "
    AND usergroupleader.usergroupid = $usergroupid
    "))
    {
    print_no_permission();
    }

    This prevents anyone from seeing the list of members for the usergroup to include admin and a user of the group unless you are the usergroup leader.

    So how can I add to this if statement to bypass the admins usergroupid of 6 and a usergroup member with the membergroupids of the usergroup tied to this request.

    In simplier words, I want to filter the usergroup leader, site admins, and members of the usergroup (who should be able to see it to begin with).

    Code please as this would help.

    Thanks.

    Viper
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    That code has to do with the public joinable groups which are in your:

    User CP -> Group Memberships

    That code isn't for the regular member list.

    Implementing the changes that you described requires custom code. If you have some coding ability then you can post on www.vbulletin.org for help with this.

    Comment

    • XGC Viper XI
      Member
      • Sep 2007
      • 60
      • 5.5.x

      #3
      True as that may be, but a user who is in the usergroup should be able to see the rest of the members in the group. That is the major part of this fix as well as admin should be able to see them.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...