View Full Version : Infraction PM sent from generic mod account
Ncturnal
08-18-2006, 05:41 AM
We don't disclose who the moderators are on our site, so we'd like the option to have the infraction PM sent to the user recieving the infraction to come from our single generic moderator account, exactly the the Auto Moderation PM works. It's much easier for the mods if they don't have to login to the 2nd account just to warn a disruptive user. Would this be fairly easy to accomplish?
Darat
08-18-2006, 04:15 PM
You could look at editing infraction.php directly - I think the following edits would work but you'd need to check it and it's entirely at your own risk - where I use 21 you should use the userid of your generic Moderator account, where I use SMITH you should use the Moderator account's username.
Find: $infdata->setr_info('userinfo', $userinfo);
Replace with:$infdata->setr_info('userinfo', 21);
Find: $infdata->set('actionuserid', $vbulletin->userinfo['userid']);
Replace with: $infdata->set('actionuserid', 21);
Find: $infdata->set('whoadded', $vbulletin->userinfo['userid']);
Replace with: $infdata->set('whoadded', 21]);
Find:
$pmdm->set('fromuserid', $vbulletin->userinfo['userid']);
$pmdm->set('fromusername', $vbulletin->userinfo['username']);
Replace with:
$pmdm->set('fromuserid', 21);
$pmdm->set('fromusername', "SMITH");
Ncturnal
08-18-2006, 05:28 PM
I got the following error first time out, so I decided to recheck my edits:
Parse error: syntax error, unexpected ']' in /home/mysite/public_html/forums/infraction.php on line 488
Find: (Line 234)
$infdata->setr_info('userinfo', $userinfo);
Replace with:
$infdata->setr_info('userinfo', 21);
This first block of code is located at lines 234 & 445. I'm pretty sure I editted just the first instance when I tried the first time. I tried again just editting the first one and got the same error. Editting the 2nd one as well had no effect.
__________________________________________________ ___________
Find: (Line 236)
$infdata->set('actionuserid', $vbulletin->userinfo['userid']);
Replace with:
$infdata->set('actionuserid', 21);
__________________________________________________ ____________
Find: (Line 488)
$infdata->set('whoadded', $vbulletin->userinfo['userid']);
Replace with:
$infdata->set('whoadded', 21]);
__________________________________________________ ____________
Find: (Line 574, 575)
$pmdm->set('fromuserid', $vbulletin->userinfo['userid']);
$pmdm->set('fromusername', $vbulletin->userinfo['username']);
Replace with:
$pmdm->set('fromuserid', 21);
$pmdm->set('fromusername', "SMITH");
Any ideas? :) Thanks for your help with this.
I editted my previous post with he results from testing.
I editted my previous post with he results from testing.
Darat
08-19-2006, 03:27 PM
I made a typo in one of the replacement lines I posted:
(Line 488)
Find: $infdata->set('whoadded', $vbulletin->userinfo['userid']);
Replace with: $infdata->set('whoadded', 21]);
The replace line should have been:
$infdata->set('whoadded', 21);
David Mitchell
08-20-2006, 12:10 AM
How about being able to remove the notification of the infraction via PM. We don't want our users knowing that we're watching them like hawks, and aren't sure if the system will start creating negativity in the forums, but it would still be a great way to keep track of problem users and deal with them appropriately when the time comes.
David.
Reven
08-21-2006, 01:57 PM
I've just made a product which lets you specify one user to send all PMs, and it lists the actual username of the moderator giving the infraction in the user's profile (so staff and administrators can still keep track of their staff's handouts).
I'll post it here later if my testing is successful.
David Mitchell
08-21-2006, 02:24 PM
I've just made a product which lets you specify one user to send all PMs, and it lists the actual username of the moderator giving the infraction in the user's profile (so staff and administrators can still keep track of their staff's handouts).
I'll post it here later if my testing is successful.
I look forward to hearing from you if this works. The last thing we want is a bunch of paranoid users not posting thinking that they'll get an infraction.
David.
Ncturnal
08-21-2006, 04:22 PM
I've just made a product which lets you specify one user to send all PMs, and it lists the actual username of the moderator giving the infraction in the user's profile (so staff and administrators can still keep track of their staff's handouts).
I'll post it here later if my testing is successful.
Sounds great. If you need help testing, let me know.
Reven
08-21-2006, 05:41 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=124565" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=124565</a>
Thanks, but my two co-administrators gave me a hand in putting it through its paces and it came out clean. Let me know if you find anything.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.