• Hi,
    I have a question, how do you configure the roles for users?
    I would also like to moderate or administer a user, but I do not understand how.

    There are commands to be set? or it must intervene to file. php?

    sorry my bad english

Viewing 1 replies (of 1 total)
  • Right now you’d have to edit the customerAjaxChat.php file and add users other than admin to be an admin or no. Just like this:

    if ($row[‘user_nicename’] == “admin”)
    {
    $this->users[$j][‘userRole’] = AJAX_CHAT_ADMIN;
    $this->users[$j][‘channels’] = array();
    $group = 0;

    for ($group; $group < count($this->channels); $group++)
    {
    array_push($this->users[$j][‘channels’], $group);
    }
    $i++;
    $j++;
    continue;
    } else {
    $this->users[$j][‘userRole’] = AJAX_CHAT_USER;
    }

    Change the top line to be:
    if ($row[‘user_nicename’] == “admin” || $row[‘user_nicename’] == “someothername” )

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Buddypress-Ajax-Chat] role user’ is closed to new replies.