Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-18-2006, 05:41 AM
Ncturnal Ncturnal is offline
 
Join Date: Feb 2005
Location: Atlanta, GA
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 08-18-2006, 04:15 PM
Darat Darat is offline
 
Join Date: Aug 2004
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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");
Reply With Quote
  #3  
Old 08-18-2006, 05:28 PM
Ncturnal Ncturnal is offline
 
Join Date: Feb 2005
Location: Atlanta, GA
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 08-19-2006, 03:27 PM
Darat Darat is offline
 
Join Date: Aug 2004
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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);
Reply With Quote
  #5  
Old 08-20-2006, 12:10 AM
David Mitchell David Mitchell is offline
 
Join Date: Mar 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 08-21-2006, 01:57 PM
Reven Reven is offline
 
Join Date: Aug 2005
Location: UK
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 08-21-2006, 02:24 PM
David Mitchell David Mitchell is offline
 
Join Date: Mar 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 08-21-2006, 04:22 PM
Ncturnal Ncturnal is offline
 
Join Date: Feb 2005
Location: Atlanta, GA
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 08-21-2006, 05:41 PM
Reven Reven is offline
 
Join Date: Aug 2005
Location: UK
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:53 PM.


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.04051 seconds
  • Memory Usage 2,244KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (8)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete