The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Infraction PM sent from generic mod account
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?
|
#2
|
|||
|
|||
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"); |
#3
|
|||
|
|||
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) Code:
$infdata->setr_info('userinfo', $userinfo); Code:
$infdata->setr_info('userinfo', 21); __________________________________________________ ___________ Find: (Line 236) Code:
$infdata->set('actionuserid', $vbulletin->userinfo['userid']); Code:
$infdata->set('actionuserid', 21); Find: (Line 488) Code:
$infdata->set('whoadded', $vbulletin->userinfo['userid']); Code:
$infdata->set('whoadded', 21]); Find: (Line 574, 575) Code:
$pmdm->set('fromuserid', $vbulletin->userinfo['userid']); $pmdm->set('fromusername', $vbulletin->userinfo['username']); Code:
$pmdm->set('fromuserid', 21); $pmdm->set('fromusername', "SMITH"); I editted my previous post with he results from testing. I editted my previous post with he results from testing. |
#4
|
|||
|
|||
I made a typo in one of the replacement lines I posted:
Quote:
$infdata->set('whoadded', 21); |
#5
|
|||
|
|||
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. |
#6
|
|||
|
|||
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. |
#7
|
|||
|
|||
Quote:
David. |
#8
|
|||
|
|||
Quote:
|
#9
|
|||
|
|||
<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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|