Thread: Moderators Functions - Moderator Checkpoint System
View Single Post
  #10  
Old 03-20-2008, 09:45 PM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I want to thank Kirk for scripting this mod for our board.
We used to have an unapproved checkpoint thread in each forum which indicated which threads had been checked. The moderators read those threads newer than the checkpoint thread and then replied to to it to bump it to the top.
But this was crude and didn't prevent moderators from reading the same posts in a thread.
So a while back I kicked around the checkpoint system idea here which helped me focus some ideas.
With help from the moderators on our forum (I have about 60 of them), we nailed the functionality down and Kirk agreed to put it into action.
I feel it's important that the community benefits from ideas like this so I asked Kirk to release it here.
My moderators love this functionality as it saves loads of their precious time and helps them efficiently work their way through posts and threads checking the content for rule breaking, infractions and libellous material.
(Incidentally here in the UK at least, the OWNER of a forum can get sued for libellous contents of their board irrespective of whom wrote it).
I think we're going to become very reliant on this modification very quickly.

I found a couple of SQL statements very useful.
Firstly to assign post check and uncheck permissions to all the moderators in all the forums they moderate (after you have installed the plugin, of course!):
Quote:
UPDATE moderator SET cancheck=1,canuncheck=1
(remember to put any table prefixes in).
And because we wanted to start with a clean slate and mark all the old threads as having been checked, I ran this:
Quote:
UPDATE post SET `ischecked`=1, `checkedby`=nnnnn, `checkedbyu`= 'Username', `checkedtime`=xxxxxxxxxx WHERE `ischecked`=0 AND `dateline`<xxxxxxxxxx
Where nnnnn is the id of your chosen moderator, 'Username' is the name of your chosen moderator and xxxxxxxxxx is the unix time before which you want to mark your posts as having been checked.
On our board, we have a system user which I used, and I marked all the posts prior to 01/01/2008 to having been checked on 01/01/2008:
Quote:
update post set `ischecked`=1, `checkedby`=160503, `checkedbyu`= 'AVForums system', `checkedtime`=1199145600 WHERE `ischecked`=0 AND `dateline`<1199145600
(remember to put any table prefixes in).
This processed 4.7 million posts in a few minutes - which is a lot faster than manually checking all the threads! And afterwards don't forget to run the checked post counter (in admincp->update counters) to correctly set the checked post count in your threads.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01119 seconds
  • Memory Usage 1,770KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete