vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to disable sending email when the PM box is full ? (https://vborg.vbsupport.ru/showthread.php?t=304019)

blue7 10-30-2013 06:40 PM

How to disable sending email when the PM box is full ?
 
Hello,

I am using "vBRecycle - Moderation Auto-PM" mod, which is send pm to users when their post or threads deleted. Yesterday an user complained about spam mails. I asked to him what spam mail and he show me his mail box which is full of spams and say "your inbox is full etc..."

Problem is when someone's inbox is full and if their thread or post deleted "vBRecycle - Moderation Auto-PM" mod trying to send them pm and because inbox is full mod keep continue trying to send pm. Each time process fail user get a spam mail. And theres really thousands of spams.

I dont want to disable vBRecycle - Moderation Auto-PM mod because its really useful, i need to disable system which is send email to user when his inbox is full but i dont know how do that. On admin cp there is no such option for this.

I need your help. Thanks in advance.

ozzy47 10-30-2013 11:34 PM

Problem is with that mod, it is not something in vBulletin that should be doing. With that said you should be able to do it by editing the file, includes/functions_autopm and add this:

Code:

$pmdm->set_info('is_automated', true);
After this:
Code:

$pmperms['adminpermissions'] = 2;
This is untested, so you ill have to test it out yourself.

blue7 10-31-2013 01:06 PM

Thanks for your answer,

i did what you said and when i tested it i got this error :

HTML Code:

Fatal error: Call to a member function set_info() on a non-object in /home/......./domains/......./public_html/forum/includes/functions_autopm.php on line 117

ozzy47 10-31-2013 11:23 PM

Hmmm, try adding this,

Code:

require_once('./global.php');
require_once(DIR . '/includes/adminfunctions_profilefield.php');
require_once(DIR . '/includes/adminfunctions_user.php');

below this,

Code:

// ========================================================================
// Moderation Auto-PM
// Automaticly sends a PM when a thread, post or attachment is moderated
// Version 2.0.1
// ------------------------------------------------------------------------
// FUNCTIONS_AUTOPM.PHP - Called from the plugins
// ------------------------------------------------------------------------
// Written by Alan Wagstaff
// Copyright (C) 2006 Alan Wagstaff
// ========================================================================


blue7 11-01-2013 01:32 PM

This time i got this error :

Code:

Fatal error: Call to a member function set_info() on a non-object in /home/.../domains/..../public_html/forum/includes/functions_autopm.php on line 121

ozzy47 11-01-2013 08:13 PM

Ok I mess around with it a bit later and see what I can do with it.

blue7 11-01-2013 08:21 PM

Ok thanks.

ozzy47 11-01-2013 11:55 PM

Ok I think I finally got it, add this:

Code:

    $pm = datamanager_init('PM', $vbulletin, ERRTYPE_SILENT);
    $pm->overridequota = true;
    $pm->set_info('is_automated', true);

After this:

Code:

// Fill in the blanks
Had to adjust some of the code, but it seems to send the PM now, and no email if the inbox is full. :)

blue7 11-02-2013 07:24 PM

Do i need to undo the changes you said previously?

ozzy47 11-02-2013 07:25 PM

Yes, undo those, and just use the last one. :)

blue7 11-02-2013 07:39 PM

Thank you so much, seems its working well :))

ozzy47 11-02-2013 07:52 PM

Good deal, glad it is working. :)


All times are GMT. The time now is 05:50 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.01176 seconds
  • Memory Usage 1,730KB
  • 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
  • (7)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete