phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Private Message restriction

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
::  
Author Message
nims
phpBB SEO Team
phpBB SEO Team


Joined: 11 Oct 2006
Posts: 243
Location: New Delhi, India

Private Message restrictionPosted: Thu Nov 30, 2006 8:03 am    Post subject: Private Message restriction

Is there any MOD that can control the number of allowed PMs for users depending on the number of posts they have made.

I am facing a problem of users discussing and promoting their companies thru PM without taking part in the discussions on the main forum. I cannot disable the PMs altogether bcos there are certain genuine things that need to be discussed thru PM only.

It wud be great to know if there is a MOD that restricts the number of PMs a user can send depending on the number of posts he has made in the main forum.

_________________
Audio Ads - Earn from every visitor to your site
Buy Latest mobiles *** SEO India
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15127

Private Message restrictionPosted: Thu Nov 30, 2006 8:33 am    Post subject: Re: Private Message restriction

This is simple Very Happy

Open :

Code:
privmsg.php


find :

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


replace with :
Code:
      // www.phpBB-SEO.com SEO TOOLKIT BEGIN
      // Set here the limit before PM Sending is made possible
      // 0 for always
      $min_posts = 25;
      //
      // Has admin prevented user from sending PM's?
      //
      if ( !$userdata['user_allow_pm'] || (intval($userdata['user_posts']) < $min_posts) )
      {
         $message = $lang['Cannot_send_privmsg'];
         message_die(GENERAL_MESSAGE, $message);
      }
      // www.phpBB-SEO.com SEO TOOLKIT END


You could as well edit the $lang['Cannot_send_privmsg'] in lang_main.php, to tell something about the limit Wink

You can set the limit on this line :

Code:
      $min_posts = 25;


++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
nims
phpBB SEO Team
phpBB SEO Team


Joined: 11 Oct 2006
Posts: 243
Location: New Delhi, India

Private Message restrictionPosted: Thu Nov 30, 2006 9:30 am    Post subject: Re: Private Message restriction

Thanks for that, but actually my requirement is to control the number of PMs a person can send in all.
Quote:

It wud be great to know if there is a MOD that restricts the number of PMs a user can send depending on the number of posts he has made in the main forum.


Example : say we can have
Code:
number_of_pms_allowed = number_of_posts * 3

So if someone has posted a total of 10 posts he will be authorised to send 10*3=30 PMs in all. For every one post he gets to send 3 PMs.

_________________
Audio Ads - Earn from every visitor to your site
Buy Latest mobiles *** SEO India
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15127

Private Message restrictionPosted: Thu Nov 30, 2006 9:45 am    Post subject: Re: Private Message restriction

This is another story Wink

The problem in this case is the information's pmed are likely to be quite personal and useful (your member need to talk together for your website to be useful). Maybe you could start private forums for personal contacts. Or find other ways to have people posting more.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
nims
phpBB SEO Team
phpBB SEO Team


Joined: 11 Oct 2006
Posts: 243
Location: New Delhi, India

Private Message restrictionPosted: Thu Nov 30, 2006 10:59 am    Post subject: Re: Private Message restriction

I think you can surely do some editing to the above code and accomplish that.
You only need to know how many PMs that user has sent like you have
Code:
$userdata['user_posts']

PHPBB must be storing the number of PMs sent somewhere or if not then we can add a column in appropriate table to have a count of number of PMs sent and then it wud be really simple. What do you say ?

_________________
Audio Ads - Earn from every visitor to your site
Buy Latest mobiles *** SEO India
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15127

Private Message restrictionPosted: Thu Nov 30, 2006 9:56 pm    Post subject: Re: Private Message restriction

Of course I can, time and will to do it is another matter.

What you are asking for is more than a simple tweak, it's a real mod.

Before I spend some time on coding this, could be useful and interesting actually, it could be useful if you checked at least phpBB.com and phpBBhack.com to see if there is not already one doing what you want.


++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15127

Private Message restrictionPosted: Tue Dec 12, 2006 5:58 pm    Post subject: Re: Private Message restriction

I felled on two mods doing the same thing as I suggested :
Minimum Posts Before PM and Email Allowed and PM threshold.

But none is checking the number of PMs, this would require an additional query, but is doable.

I don't think the email threshold is really required, what do you think ?

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
Page 1 of 1

Navigation Similar Topics

Jump to: