The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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. |
#2
|
||||
|
||||
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); Code:
$pmperms['adminpermissions'] = 2; |
Благодарность от: | ||
blue7 |
#3
|
||||
|
||||
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 |
#4
|
||||
|
||||
Hmmm, try adding this,
Code:
require_once('./global.php'); require_once(DIR . '/includes/adminfunctions_profilefield.php'); require_once(DIR . '/includes/adminfunctions_user.php'); 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 // ======================================================================== |
#5
|
||||
|
||||
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 |
#6
|
||||
|
||||
Ok I mess around with it a bit later and see what I can do with it.
|
#7
|
||||
|
||||
Ok thanks.
|
#8
|
||||
|
||||
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); Code:
// Fill in the blanks |
Благодарность от: | ||
Lynne |
#9
|
||||
|
||||
Do i need to undo the changes you said previously?
|
#10
|
||||
|
||||
Yes, undo those, and just use the last one.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|