 |
 |
 |
 |
#311395 - 09/01/06 05:28 PM
Re: Enabling PM for Established Members
[Re: AllenAyres]
|
I type Like navaho
Registered: 03/10/00
Posts: 25373
Loc: Texas
|
OK, the code I had wasn't like this, so I wrote it. Here you go, only minimally tested  I have it set for 50 posts, you'll need to adjust that to whatever number you like. mess_handler.phpFind:
$user = $userob -> authenticate("U_Groups,U_EReplies,U_TextCols,U_TextRows,U_Preview");
$Username = $user['U_Username'];
$Password = $user['U_Password'];
Replace with:
$user = $userob -> authenticate("U_Groups,U_EReplies,U_TextCols,U_TextRows,U_Preview,U_Totalposts");
$Username = $user['U_Username'];
$Password = $user['U_Password'];
if ($user['U_Totalposts'] < "50" ) {
$html = new html;
$html -> not_right("You need 50 posts in the forum to send a private message,",$Cat);
}
send_message.phpFind:
$user = $userob -> authenticate("U_Language,U_TextCols,U_TextRows");
$Username = $user['U_Username'];
Replace with:
$user = $userob -> authenticate("U_Language,U_TextCols,U_TextRows,U_Totalposts");
$Username = $user['U_Username'];
if ($user['U_Totalposts'] < "50" ) {
$html = new html;
$html -> not_right("You need 50 posts in the forum to send a private message,",$Cat);
}
send_private.phpFind:
$user = $userob -> authenticate("U_TextCols,U_TextRows,U_Preview,U_CoppaUser");
$Username = $user['U_Username'];
Replace with:
$user = $userob -> authenticate("U_TextCols,U_TextRows,U_Preview,U_CoppaUser,U_Totalposts");
$Username = $user['U_Username'];
if ($user['U_Totalposts'] < "50" ) {
$html = new html;
$html -> not_right("You need 50 posts in the forum to send a private message,",$Cat);
}
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|