vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Private Messages Enhancements - Limit PMs Sent Per-Day (https://vborg.vbsupport.ru/showthread.php?t=148150)

Sim9 05-25-2007 10:00 PM

Limit PMs Sent Per-Day
 
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 :D

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.

FreshFroot 05-26-2007 04:15 AM

this will be usefull!

Thanks!

dope15gd 05-26-2007 04:25 PM

working beautifully on version 3.6.7

thanks

projectego 05-26-2007 06:15 PM

Great idea.

/me clicks install

Paul M 05-27-2007 11:42 AM

It would be better to have the parameters as vb options, not have to edit the plugin. :)

Konstantinos 05-27-2007 11:45 AM

is it per usergroup ?

Sim9 05-27-2007 06:30 PM

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 :)

gforce75 05-28-2007 01:03 AM

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.

Sim9 05-28-2007 01:08 AM

Quote:

Originally Posted by gforce75 (Post 1255864)
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. :(

Konstantinos 06-02-2007 07:57 AM

can u make it per usergroup ?


All times are GMT. The time now is 10:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01111 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete