Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Limit PMs Sent Per-Day Details »
Limit PMs Sent Per-Day
Mod Version: 1.10, by Sim9 (Member) Sim9 is offline
Developer Last Online: Dec 2010 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.4 Rating: (2 votes - 4.50 average) Installs: 18
Released: 26 May 2007 Last Update: 26 Feb 2008 Downloads: 176
Not Supported Uses Plugins  

Description:
Very simple modification to limit the number of private messages sent per day. Useful to significantly limit damage spambots can do whilest not annoying users.

Installation:
  1. Download product XML (attached).
  2. Optional: Edit the XML to change the configuration variables section to your liking (sorry, no fancy frontend to the tweaks )
  3. Upload the product XML: In your AdminCP: Plugins & Products >> Manage Products >> [Add/Import Product] >> Upload.
  4. Optional: Edit the phrase 'archivepm_limitexceed' if you want to change it from its default.
  5. Test private messaging and limits.
More information on configuration variables:
These are the configuration variables you're interested in:
$arc_limit = 5; // How many PMs in a time period
$arc_timeperiod_secs = 60 * 60 * 24; // How long (One Day)
$arc_exempt_postcount = 50; // How many forum posts until user is considered exempt from this
This configuration reads as "Limit users who have less than 50 posts to making no more than 5 PMs within 24 hours." Tweak to your liking.

Version 1.1 Released (2/25/08):
I've released a small change which correctly handles automated welcome PMs. Special thanks to Adwade for testing & the donation

Boring Legal Disclaimer:

THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	archivepmlimit.jpg
Views:	284
Size:	19.1 KB
ID:	64751  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 26 May 2007, 06:15
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Aug 2005
this will be usefull!

Thanks!
Reply With Quote
  #3  
Old 26 May 2007, 18:25
dope15gd's Avatar
dope15gd dope15gd is offline
 
Join Date: Jan 2006
working beautifully on version 3.6.7

thanks
Reply With Quote
  #4  
Old 26 May 2007, 20:15
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Real name: Steve
Great idea.

/me clicks install
__________________
Reply With Quote
  #5  
Old 27 May 2007, 13:42
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
It would be better to have the parameters as vb options, not have to edit the plugin.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #6  
Old 27 May 2007, 13:45
Konstantinos's Avatar
Konstantinos Konstantinos is offline
 
Join Date: Apr 2006
is it per usergroup ?
Reply With Quote
  #7  
Old 27 May 2007, 20:30
Sim9's Avatar
Sim9 Sim9 is offline
 
Join Date: Mar 2005
Thanks guys!

Paul: Definitely, but it's a simple seven-line addon. The code for the options screen would eclipse the code doing actual work :P

Konstantinos: Unfortunately, no. This applies globally to all users. On my site, staff members all have way above 50 posts each, so it was a non-issue during development
__________________
Archive Items & Archive Points
Reply With Quote
  #8  
Old 28 May 2007, 03:03
gforce75 gforce75 is offline
 
Join Date: Sep 2003
Spambots send PM's? Wow, well anyways, I'll keep this script in mind if I see such an issue. Probably good for heavy resourced forum sites.
Reply With Quote
  #9  
Old 28 May 2007, 03:08
Sim9's Avatar
Sim9 Sim9 is offline
 
Join Date: Mar 2005
Originally Posted by gforce75 View Post
Spambots send PM's? Wow, well anyways, I'll keep this script in mind if I see such an issue. Probably good for heavy resourced forum sites.
Yeah, I found this out the hard way after almost 200 PM's were sent, one per minute. I was surprised someone would do this, too.
__________________
Archive Items & Archive Points
Reply With Quote
  #10  
Old 02 Jun 2007, 09:57
Konstantinos's Avatar
Konstantinos Konstantinos is offline
 
Join Date: Apr 2006
can u make it per usergroup ?
Reply With Quote
  #11  
Old 10 Jun 2007, 19:45
criscokid criscokid is offline
 
Join Date: Nov 2003
Originally Posted by Sim9
This configuration reads as "Limit users who have less than 50 posts to making no more than 5 PMs within 24 hours." Tweak to your liking.
Any chance of a similar mod so that it's usergroup based?
ie: registered users get 15 PMs per day, premium users get unlimited PMs per day.
Reply With Quote
  #12  
Old 07 Aug 2007, 04:06
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
This is a cool mod. I'd like to add to it the functionality of sending me a PM when someone in the "waiting period" attempts to send more than X PM per day. I am able to send and receive the alert. But it also gives me a database error even though transaction was successful. This is what I included before the closing bracket


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Like I said, transaction is fine but the next page is about a duplicate entry. Do you still save the blocked PM ?

MySQL Error : Duplicate entry '25031' for key 1
Error Number : 1062
Reply With Quote
  #13  
Old 20 Sep 2007, 01:31
JadedSouls's Avatar
JadedSouls JadedSouls is offline
 
Join Date: May 2007
Real name: Jolene | JoJo
I like!
*installed*
Reply With Quote
  #14  
Old 11 Feb 2008, 14:55
qdin's Avatar
qdin qdin is offline
 
Join Date: Nov 2006
Location: Istanbul
Real name: Murat Çelebi
Thanx it works fine with 3.6.8
__________________
Beşiktaş
Reply With Quote
  #15  
Old 17 Feb 2008, 14:04
qdin's Avatar
qdin qdin is offline
 
Join Date: Nov 2006
Location: Istanbul
Real name: Murat Çelebi
There is a bug with this hack guys. I installed it 1 week ago. But unfortunately when my guests try to register the result of the register is a blank page. And the Error is like that


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

When I disable this hack everything works fine. Could anyone find the problem :S I am not a good coder :S

P:S. the version of my board is 3.6.8
__________________
Beşiktaş
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 04:47.

Layout Options | Width: Wide Color: