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 02-24-2008 08:17 PM

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.

adwade 02-25-2008 05:08 AM

:cool: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. :eek: It's in place now though, and that's what counts. ;)

Sim9 02-26-2008 01:19 AM

Excellent! I've updated the main download with version 1.1 so new users benefit from this change :)

Mark Tomlinson 03-02-2008 03:49 PM

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.

adwade 03-03-2008 03:54 AM

Quote:

Originally Posted by Mark Tomlinson (Post 1455225)
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.

Mark Tomlinson 03-03-2008 01:22 PM

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.

adwade 03-04-2008 03:46 AM

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. :D

athlon64bit 01-01-2010 01:17 AM

It would be nice if this could be brought out for vb4.:) Happy New Year everyone!

Sim9 01-01-2010 04:53 AM

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!).

MaKayWeB 03-09-2011 12:45 PM

vb4.x ?


All times are GMT. The time now is 03:47 AM.

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.02356 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_php_printable
  • (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