The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Disable Certain E-mails? Like STOP Sending Birthday, PM Box Full, etc?
I only want to send out the basics:
Activation, reset password, lost password, new PM, etc. And want to disable: Birthday, PM box full, and ALL thread notifications. I can edit each e-mail template, that's no problem. But it still sends them out. So how do I globally disable those e-mails entirely? |
#2
|
|||
|
|||
There really isn't any global control for choosing which emails to send out.
For birthdays, you can disable the "Birthdays" scheduled task (from the Scheduled Task Manager). For pm box full, it looks like you'd have to comment out the code. In file includes/class_dm_pm.php around line 435 is this: Code:
else if ($user['usergroupid'] != 3 AND $user['usergroupid'] != 4) { $touserinfo =& $user; eval(fetch_email_phrases('pmboxfull', $touserinfo['languageid'], '', 'email')); vbmail($touserinfo['email'], $emailsubject, $emailmessage, true); $this->error('pmquotaexceeded', $user['username']); } If you remove or comment out that section, you shouldn't get any "pm box full" emails going out. There's also a "pm box almost full" message, around line 593 in the same file: Code:
if (!empty($this->info['pmwarning']["$user[userid]"]) AND !($user['options'] & $this->registry->bf_misc_useroptions['pmboxwarning'])) { // email user about pm box nearly being full $warningusers[] = $user['userid']; $touserinfo =& $user; eval(fetch_email_phrases($email_phrases['pmboxalmostfull'], $touserinfo['languageid'], '', 'email')); vbmail($touserinfo['email'], $emailsubject, $emailmessage, true); } For notifications you could also comment out the code, but maybe a better way would be to remove the "email notification" option from the templates where it's available. In template subscribe_choosetype, it looks like you'd want to remove the entire Notification Type menu since the only choice left would be "No Email". There appears to be a number of other menus for choosing the type (like when you create a new thread or change a subscription type) - search templates for "daily_email_notification" and you'll see what I mean. Anyway, you could also do a database query to set all existing subscriptions to "no email". You'd also want to change the registration options so that the default is "no email", if it isn't already. (I guess it would be easier to comment out that code as well, if you don't mind users having a choice that won't work). I can't guarantee that's everything, but if you find anything I missed, we can help you disable it. |
#3
|
||||
|
||||
Thank you so much! Wow.. Sorry I am a bit late posting a reply, but thanks solved my problems entirely!
Fantastic advice Kh99. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|