Im on SMF2 RC4 , which this question concerns the Ajax Chat
I need some help with an IF statement regarding private messages in our chat.
This line is what controls whether they're allowed or not
I want it where i can edit the line and add membergroup IDs that would only allow them to use the private message option?
I'm no pro, but tried myself, and came up with this, which only brings the chat down when i add it.
member group id being "2" , cause i wanted to test it with staff only.
any help, or advice would be greatly appreciated. couldn't get much help from smf support, so gonna ask some pros around here. thanx
I need some help with an IF statement regarding private messages in our chat.
This line is what controls whether they're allowed or not
Code:
// Enable/Disable private Messages:
$config['allowPrivateMessages'] = false;
I want it where i can edit the line and add membergroup IDs that would only allow them to use the private message option?
I'm no pro, but tried myself, and came up with this, which only brings the chat down when i add it.
Code:
// Enable/Disable private Messages:
$config['allowPrivateMessages'] = false;
else if (id_group == '2')
{
$config['allowPrivateMessages'] = true;
}
member group id being "2" , cause i wanted to test it with staff only.
any help, or advice would be greatly appreciated. couldn't get much help from smf support, so gonna ask some pros around here. thanx







