PDA

View Full Version : How to disable sending email when the PM box is full ?


blue7
10-30-2013, 06:40 PM
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:

$pmdm->set_info('is_automated', true);After this:
$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 :

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,

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

// ================================================== ======================
// 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 :

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:

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

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