vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Infraction PM sent from generic mod account (https://vborg.vbsupport.ru/showthread.php?t=124278)

Ncturnal 08-18-2006 05:41 AM

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?

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)
Code:

$infdata->setr_info('userinfo', $userinfo);
Replace with:
Code:

$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)
Code:

$infdata->set('actionuserid', $vbulletin->userinfo['userid']);
Replace with:
Code:

$infdata->set('actionuserid', 21);
__________________________________________________ ____________
Find: (Line 488)
Code:

$infdata->set('whoadded', $vbulletin->userinfo['userid']);
Replace with:
Code:

$infdata->set('whoadded', 21]);
__________________________________________________ ____________
Find: (Line 574, 575)
Code:

$pmdm->set('fromuserid', $vbulletin->userinfo['userid']);
$pmdm->set('fromusername', $vbulletin->userinfo['username']);

Replace with:
Code:

$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:

Quote:

(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

Quote:

Originally Posted by Reven
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

Quote:

Originally Posted by Reven
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.


All times are GMT. The time now is 10:27 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
  • Page Generation 0.01108 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete