Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Limit PMs Sent Per-Day Details »»
Limit PMs Sent Per-Day
Version: 1.10, by Sim9 Sim9 is offline
Developer Last Online: Dec 2010 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 3.6.4 Rating:
Released: 05-25-2007 Last Update: 02-25-2008 Installs: 20
Uses Plugins
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 02-24-2008, 08:17 PM
Sim9's Avatar
Sim9 Sim9 is offline
 
Join Date: Mar 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

PHP Code:
if ($vbulletin->userinfo['posts'] < $arc_exempt_postcount
to this:

PHP Code:
if (isset($vbulletin) && isset($db) && isset($vbulletin->userinfo) &&
$vbulletin->userinfo['posts'] < $arc_exempt_postcount
Then reupload the XML and see if you still get errors.
Reply With Quote
  #23  
Old 02-25-2008, 05:08 AM
adwade adwade is offline
 
Join Date: Aug 2006
Location: SouthEast, TN
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

S-W-E-E-T job there Sim9! That little change seems to have fixed things right up for me. :up: 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
  #24  
Old 02-26-2008, 01:19 AM
Sim9's Avatar
Sim9 Sim9 is offline
 
Join Date: Mar 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent! I've updated the main download with version 1.1 so new users benefit from this change
Reply With Quote
  #25  
Old 03-02-2008, 03:49 PM
Mark Tomlinson's Avatar
Mark Tomlinson Mark Tomlinson is offline
 
Join Date: Oct 2007
Location: Chicago Area
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #26  
Old 03-03-2008, 03:54 AM
adwade adwade is offline
 
Join Date: Aug 2006
Location: SouthEast, TN
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
  #27  
Old 03-03-2008, 01:22 PM
Mark Tomlinson's Avatar
Mark Tomlinson Mark Tomlinson is offline
 
Join Date: Oct 2007
Location: Chicago Area
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #28  
Old 03-04-2008, 03:46 AM
adwade adwade is offline
 
Join Date: Aug 2006
Location: SouthEast, TN
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #29  
Old 01-01-2010, 01:17 AM
athlon64bit athlon64bit is offline
 
Join Date: Mar 2007
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be nice if this could be brought out for vb4. Happy New Year everyone!
Reply With Quote
  #30  
Old 01-01-2010, 04:53 AM
Sim9's Avatar
Sim9 Sim9 is offline
 
Join Date: Mar 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!).
Reply With Quote
  #31  
Old 03-09-2011, 12:45 PM
MaKayWeB MaKayWeB is offline
 
Join Date: May 2008
Location: Black Smoke
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vb4.x ?
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 04:17 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.05621 seconds
  • Memory Usage 2,317KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete