How To Enable PM Restrictions


Subject: How To Enable PM Restrictions
Hi,
I've been searching high and low if this had already been discussed but was unlucky. My simple question is: is it possible to disable the sending of PMs from users with less than 30 posts?

Thanks

PS to himself:
Hope I got the right section this time.

Subject: Re: How To Enable PM Restrictions
TRY this on prvmsg.php

find
Code: [Download] [Hide] [Select]
//
// Has admin prevented user from sending PM's?
//
if ( !$userdata['user_allow_pm'] )
{
$message = $lang['Cannot_send_privmsg'];
message_die(GENERAL_MESSAGE, $message);
}


after, add

Code: [Download] [Hide] [Select]
if ( $userdata['user_posts'] < 30 )
{
$message = $lang['Cannot_send_privmsg'];
message_die(GENERAL_MESSAGE, $message);
}

Subject: Re: How To Enable PM Restrictions
Thanks a lot for your help.

Alpa


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.6191s (PHP: 3% SQL: 97%)
SQL queries: 13 - Debug Off - GZIP Enabled