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.
  #16  
Old 17 Feb 2008, 21:38
Sim9's Avatar
Sim9 Sim9 is offline
 
Join Date: Mar 2005
Konstantinos/criscokid - if you're interested in usergroup permissions, this is the line to change:

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

Off the top of my head, I'm not sure what the check usergroup code is, but you could change that condition to check for it. Should only be a one line change

Lionel - I like the idea of warning an admin about PM spam, but you wouldn't want to send one warning per attempt or your inbox would be badly spammed. I'm guessing that the reason you can't send a pm at that time is that another PM (the user's) is being constructed at that time. Maybe try erroring out and clearing the user's PM first, then send the admin pm (being sure to initialize a fresh PM with a unique ID)?

qdin, are you running a PM member on register plugin? It's possible this plugin is not compatible with that, though it runs fine on my board with other automated PMs (though I don't have a registration PM). Try sending automated PMs from a user account with a postcount higher than the spam check postcount
__________________
Archive Items & Archive Points
Reply With Quote
  #17  
Old 23 Feb 2008, 03:03
adwade adwade is offline
 
Join Date: Aug 2006
Real name: A.D.
One other question, not being a 'coder' I guess this


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

is probably what controls the 60 second new posting delay? If one wanted to make the forced delay between postings 120secs (instead of 1min) would you change one of the 60's above, and if so which one?

Update: Nevermind, I found Private Messaging Options in AdminCP that controls the delay between sending PMs!

INSTALLED!

Last edited by adwade; 26 Feb 2008 at 05:22.
Reply With Quote
  #18  
Old 23 Feb 2008, 04:53
Sim9's Avatar
Sim9 Sim9 is offline
 
Join Date: Mar 2005
Sounds like you cleared it up, but just so everyone knows the distinction in case all they really need is the stock vB functionality:

Stock vBulletin provides an option to control the timeout between two individual PMs (adwade's post) - this lets you say a normal user can PM no more than once per sixty seconds. With a sixty second delay, a user can potentially send 1,440 privates messages a day (1,440 minutes in a day). Setting this to an hour interval mitigates this down to 24 private messages a day, at the cost of potentially annoying legitimate users who now have to wait a full hour between sending PMs.

This plugin lets you restrict the number of PMs sent over a span of a full day (or whatever other interval you set). So you could set the vBulletin delay between PMs to a negligible five seconds, but only allow five PMs per day for new users. This shouldn't affect legitimate new users, but will significantly limit the damage a spam bot could do.

Hope that makes the plugin clearer
__________________
Archive Items & Archive Points
Reply With Quote
  #19  
Old 24 Feb 2008, 06:44
adwade adwade is offline
 
Join Date: Aug 2006
Real name: A.D.
I'm running vB v3.6.4 and when I installed and tested your MOD, everything acted normally until I 'clicked' on the LINK in the verification email sent out when a new user registers. Then, this is what I got:


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

Toggle the MOD OFF and the error went away, whenever I signed up as a new user and clicked the verification LINK in the email. I get the same error using MS-IE or FireFox either one with the MOD Enabled. Any ideas??

EDIT: One other thing I forgot to add, is the Verification LINK actually works, regardless of this error. It's just seeing the Fatal Error vs. the You're Registered Now screen confuses new users.

Last edited by adwade; 24 Feb 2008 at 09:32.
Reply With Quote
  #20  
Old 24 Feb 2008, 07:01
adwade adwade is offline
 
Join Date: Aug 2006
Real name: A.D.
Originally Posted by Sim9 View Post
qdin, are you running a PM member on register plugin? It's possible this plugin is not compatible with that, though it runs fine on my board with other automated PMs (though I don't have a registration PM). Try sending automated PMs from a user account with a postcount higher than the spam check postcount
FWIW, I'm not. However, I am running Cyb - PM System Enhancements Could that be doing it, when installed alongside your MOD? I disabled it and re-tried signing up as a new user with your MOD enabled and still got the Fatal Error above.

Last edited by adwade; 24 Feb 2008 at 11:09.
Reply With Quote
  #21  
Old 24 Feb 2008, 22:17
Sim9's Avatar
Sim9 Sim9 is offline
 
Join Date: Mar 2005
vBulletin apparently has a built-in send pm to user function on sign-up, as that's what class_dm_user is calling, and my plugin wasn't written to handle that (at least when the fromuser switch is on - otherwise it doesn't call my code at all in that function). Let's do an experiment and see if this fixes it. Open up the XML and change this line:


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

to this:


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

Then reupload the XML and see if you still get errors.
__________________
Archive Items & Archive Points
Reply With Quote
  #22  
Old 25 Feb 2008, 07:08
adwade adwade is offline
 
Join Date: Aug 2006
Real name: A.D.
S-W-E-E-T job there Sim9! That little change seems to have fixed things right up for me. Many Thanxx, as this is one MOD I could have used a few weeks ago. It's in place now though, and that's what counts.
Reply With Quote
  #23  
Old 26 Feb 2008, 03:19
Sim9's Avatar
Sim9 Sim9 is offline
 
Join Date: Mar 2005
Excellent! I've updated the main download with version 1.1 so new users benefit from this change
__________________
Archive Items & Archive Points
Reply With Quote
  #24  
Old 02 Mar 2008, 17:49
Mark Tomlinson's Avatar
Mark Tomlinson Mark Tomlinson is offline
 
Join Date: Oct 2007
Real name: Mark Tomlinson
KISS principal at work! Excellent.

One thing our forum was discussing is that there is a 10 recipient limit on PMs. Even if a spammer can knock off only one PM, they could possibly send it to 10 members. I've been poking around to see if there is a way to limit the number of recipients, but not having any luck.

Thoughts? If I come up with anything, I'll share it.
__________________
Mark Tomlinson
"I am not a trouble maker; I'm a catalyst for change."
Reply With Quote
  #25  
Old 03 Mar 2008, 05:54
adwade adwade is offline
 
Join Date: Aug 2006
Real name: A.D.
Originally Posted by Mark Tomlinson View Post
I've been poking around to see if there is a way to limit the number of recipients, but not having any luck.

Thoughts? If I come up with anything, I'll share it.
In AdminCP, under Usergroups choose Usergroup Manager then select a usergroup and you can specify the Maximum Recipients to Send PMs at a time.(with 0 disabling the feature) Just set it to 1 there and that should impede a spammer's ability to spread messages 10 at a time.
Reply With Quote
  #26  
Old 03 Mar 2008, 15:22
Mark Tomlinson's Avatar
Mark Tomlinson Mark Tomlinson is offline
 
Join Date: Oct 2007
Real name: Mark Tomlinson
Yeah, I figured this out last night. I was thinking that was something for the mod, but it can be done through permissions.

What I'm going to do is set 'Registered Users' to be able to only PM one recipient at a time. Then I'll create a group called 'Registered Users in Good Standing', and promote people there after a few posts.

Sorry to bother this thread about it.
__________________
Mark Tomlinson
"I am not a trouble maker; I'm a catalyst for change."
Reply With Quote
  #27  
Old 04 Mar 2008, 05:46
adwade adwade is offline
 
Join Date: Aug 2006
Real name: A.D.
No bother at all, as threads such as these is where I've learned so many little things about vB. And besides, gives me a chance for another accolade to SIM9 for creating and modify this MOD so I could employ it! THANXX.
Reply With Quote
  #28  
Old 01 Jan 2010, 03:17
athlon64bit athlon64bit is offline
 
Join Date: Mar 2007
It would be nice if this could be brought out for vb4. Happy New Year everyone!
Reply With Quote
  #29  
Old 01 Jan 2010, 06:53
Sim9's Avatar
Sim9 Sim9 is offline
 
Join Date: Mar 2005
I haven't gotten around to upgrading my forum to v4 yet (too much custom coding & themeing done on v3), so I'll have to set aside a lot of time to get everything ported over. Once I do, I'll update this thread with a new version of this plugin (assuming of course v4 hasn't made it obsolete!).
__________________
Archive Items & Archive Points
Reply With Quote
  #30  
Old 09 Mar 2011, 14:45
MaKayWeB MaKayWeB is offline
 
Join Date: May 2008
Real name: MUHAMMED AKAY
vb4.x ?
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 21:46.

Layout Options | Width: Wide Color: