Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Moderator management system Details »»
Moderator management system
Version: 1.00, by Kentaurus Kentaurus is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 10-20-2004 Last Update: 11-19-2004 Installs: 105
 
No support by the author.

tested with 3.0.3

You went into a lot of trouble selecting the moderators for your forum, you created a set of rules, told them what you expected from them. Now, how do you know if they are really moderating?

Of course, if you have 3 forums and 3 moderators, it's not big deal. But if you have 5+ moderators then this tool might be useful.

I wanted to receive an alert when my moderators were absent, or when they were in the forum but weren't doing any moderation at all... also I want my moderators to be active posters. But checking on every one of them is time consuming. That's why I made this tool.

With it you receive an alert pm if:
  • a moderator has been absent for more than x days
  • a moderator has not modded (edited/deleted/moved/closed) for more than z days
  • a moderator has not posted in HIS forum for more than y days
  • a moderator has nos posted for more than y days
  • a moderator has not created a new thread in HIS forums for more than y days
  • a moderator has not created a thread globally for more than y days
  • a moderator has failed to OPEN and potentially read at least x percent threads in HIS forum in the last week
Installation instructions:

1)
Upload the files in the .zip file to your forum. Make sure that you follow the directory structure in the zip file.
modmanagement.php goes in the root of your forum
functions_modmanagement.php goes to the includes/ directory
modmanagement_cron.php goes into the includes/cron/ directory
modmanagement_install.php goes into the admincp directory

2)
Open the modmanagement_install.php in your browser

3)
That's it No file modifications, no template modifications

Customization:
- Go to vbulletin options and change how many posts a moderator should do in how many days, how long can someone be inactive, etc.
- Go to the scheduled tasks and you can change the cron job. By default, it sends the alerts sunday morning.

Other options:
Open modmanagement.php in your browser to see a summary of the moderators activity.

Even more customization:
Note: You should really test that the hack is working and that you like it before doing anything else

*optional* For integration in the admincp and a link in every page, you need some file modifications, here: https://vborg.vbsupport.ru/showpost....5&postcount=27

*optional* The summary page can only be accesed by administrators. If you want to give access to supermoderators or moderators, here:
https://vborg.vbsupport.ru/showpost....9&postcount=64


Info for hackers:
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org at least, there is no
need to pm me asking for permission
Some portions of the code are (c) Jelsoft Enterprises Ltd.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 10-22-2004, 07:32 PM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sv1cec
As I said, great hack. However, I would prefer if I call it "Moderator Statistics" instead of "Moderators Management". I've searched the files and the templates, and I can't find where that phrase comes from. I am talking about the phrase that appears in the welcome box, as shown in the attached picture.

Any ideas would be greatly appreciated.

Rgds
-----------
John
It is in the phrases

AdminCP
Languages & Phrases -> Search in Phrases -> mod_management (phrase variable name)
Reply With Quote
  #43  
Old 10-22-2004, 07:38 PM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
This is crazy. I just reuploaded (same size). I tried to change the template name to another one, yet still empty!!!

Ah! Forgot to say I am using 3.01
That might be the problem.... I have only tested this hack with vb3.0.3, it might not work with 3.0.1. Depending on your server configuration you can get a blank page if you have a php error, like calling a function that didn't exist... can you get the detailed error from the server log or something like that? maybe it is a simple fix. Did you remembered to upload functions_modmanagement.php in the includes directory? You can also try adding something like "Hello" at the very end of the file, if it doesn't print then it is a php error and nothing with the template.
Reply With Quote
  #44  
Old 10-22-2004, 07:42 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

echo "hello";
?>

does not print.

functions_modmanagement.php was uploaded. I did get the alerts PM
Reply With Quote
  #45  
Old 10-22-2004, 07:49 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nothing in error log. Access log shows this:

xx.xxx.xxx.xxx - - [22/Oct/2004:16:45:40 -0400] "GET /forums/modmanagement.php HTTP/1.1" 200 6992 "http://site.com/forums/admincp/index.php?do=nav" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
Reply With Quote
  #46  
Old 10-22-2004, 07:54 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is an absolutely superb idea - well done !
Reply With Quote
  #47  
Old 10-22-2004, 07:55 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hear this! When I put echo "hello"; at the top, it prints, AND it also prints template

When I remove it, blank page...
Reply With Quote
  #48  
Old 10-22-2004, 08:20 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kentaurus
What can I say? I am really sorry. I was hoping there was a cache for moderator permissions... there is not. 12293 queries is not acceptable. In my defense 12293 queries in only 3.6 seconds? Those must be light-speed queries.

Please use the modified version in this post (reupload it in your includes/ directory), I wrote a custom fetch_permissions and it uses A LOT less queries. Please let me know if it helped, I know it will.
I feel much better now: Page generated in 1.09987 seconds with 11 queries

However, the sorting by lastvisit still doesnt work very well:

here's the order I get with modmanagement.php?sortby=lastvisit

22-10-2004 03:34 PM
22-10-2004 01:26 PM
22-10-2004 03:51 PM

...
22-10-2004 02:34 AM
21-10-2004 10:52 PM
22-10-2004 03:46 AM
22-10-2004 12:11 PM
21-10-2004 09:45 PM
....



Quote:
Only the admin can see it. Other people get a nopermission screen.
If you want to allow some other group to access the code too, you can just modify the condition in modmanagement.php, right?
says

PHP Code:
// only administrators can see this page
if (($bbuserinfo['usergroupid'] != 6) AND ($bbuserinfo['usergroupid'] != 5))
{
    
print_no_permission();

Reply With Quote
  #49  
Old 10-23-2004, 02:55 AM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mtha
I feel much better now: Page generated in 1.09987 seconds with 11 queries

However, the sorting by lastvisit still doesnt work very well:

here's the order I get with modmanagement.php?sortby=lastvisit

22-10-2004 03:34 PM
22-10-2004 01:26 PM
22-10-2004 03:51 PM

...
22-10-2004 02:34 AM
21-10-2004 10:52 PM
22-10-2004 03:46 AM
22-10-2004 12:11 PM
21-10-2004 09:45 PM
....




If you want to allow some other group to access the code too, you can just modify the condition in modmanagement.php, right?
says

PHP Code:
// only administrators can see this page
if (($bbuserinfo['usergroupid'] != 6) AND ($bbuserinfo['usergroupid'] != 5))
{
    
print_no_permission();

Please reupload the includes/functions_modmanagement.php file in the zip, there was a bug with the ordering by lastvisit, it was showing the lastactivity and ordering by the last visit.

Yes, you can just modify the condition in the modmanagement.php in that way. In your example that would give access to the supermoderators also.
Reply With Quote
  #50  
Old 10-23-2004, 02:59 AM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
Hear this! When I put echo "hello"; at the top, it prints, AND it also prints template

When I remove it, blank page...
That doesn't make any sense... but you already know that Maybe you can just leave that hello at the top?
Reply With Quote
  #51  
Old 10-23-2004, 03:41 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No that does not make sense. I wish someone could explain. I am sure there is a reason for it. Anyway, I just placed a non breaking space as echo. The only annoyance is that it drops the header table from topmargin=0
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 11:09 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.04703 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete