![]() |
Exclude Users from Reported Post Emails
1 Attachment(s)
Hi, I whipped this up quick. I'm not a programmer, so excuse the lack of proper coding. The code works, I just don't know what it breaks if anything. But I've tested it my self.
**NOTE** Make a backup of every file mentioned here when modifying them. First, open up your "includes/config.php" file and add the following. Replace the numbers with the userid's of the users who you don't want to receive the emails. Typically these will be administrators who are mostly your technical staff, they don't get involved with the forums that much other than fixing them. Code:
// ****** EXCLUDE USERS FROM REPORTED POST EMAILS ****** below: Code:
$mods["$moderator[userid]"] = $moderator; Code:
if (in_array($moderator, $config['excludereportedpostusers'])) { } Code:
$reportinfo['modlist'] .= (!empty($reportinfo['modlist']) ? ', ' : '') . unhtmlspecialchars($moderator['username']); Code:
} I created this because I know of people who don't need to receive these emails and sometimes they can get annoying on bigger sites. |
Reserved post.
|
All times are GMT. The time now is 08:11 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|