View Full Version : Moderator management system
Kentaurus
10-20-2004, 10:00 PM
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.php?p=564415&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.php?p=564869&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.
Kentaurus
10-21-2004, 08:24 PM
There is an extra option in the hack, but it needs additional modifications so I'm posting it apart.
THIS IS OPTIONAL AND ONLY IF YOU WANT THE EXTRA FUNCTIONALITY
You need my "who viewed thread" hack installed:
https://vborg.vbsupport.ru/showthread.php?t=61225 (yes, it works with 3.0.3)
after you install that other hack:
1)
open includes/functions_modmanagement.php
2)
change:
define('ENABLE_MODERATOR_READ', false);
to this:
define('ENABLE_MODERATOR_READ', true);
you will get an extra column that shows the % number of threads that your moderator has read. If it is a really good moderator then he reads 100% of the threads in his forum, right?
Check the last column in the following screenshot for an example of this extra option.
Koutaru
10-21-2004, 08:32 PM
Excellent hack :D Hopefully I'll be able to scare my mods into being more active with this thing ;)
Could there also be an email to the moderator who has been unactive for x days or has not posted x amount of threads to remind them of their duties?
alkatraz
10-21-2004, 08:40 PM
OUTSTANDING hack! Can't wait to install thi
Rick Sample
10-21-2004, 09:44 PM
Great Hack! You should have a link or something to the modmanagement.php file in the quick links bar somewhere that only admins and mods can see so we won't always have to remember that filename, other than that great hack!
~~now its time to show this to my mods so it can wake them up~~
jd-inflames
10-21-2004, 10:56 PM
I like the concept. I'm going to recommend it to a few people, and consider installing it on my own forum.
turkforum
10-21-2004, 11:17 PM
its good but every body can see this right ?!!
users guest everybody
if i put modmanagement.php under the admicp/ folder will this work
AlexanderT
10-21-2004, 11:38 PM
nice work!
Kentaurus
10-22-2004, 12:14 AM
its good but every body can see this right ?!!
users guest everybody
if i put modmanagement.php under the admicp/ folder will this work
No. Only the admin can see it. Other people get a nopermission screen.
Boofo
10-22-2004, 12:22 AM
The Master is back! ;)
Another quality hack, sir. ;)
* Boofo clicks the install button
Shadow Blaze
10-22-2004, 12:37 AM
very very nice, i love this one
Skyline_GT
10-22-2004, 01:09 AM
very nice indeed
Reeve of shinra
10-22-2004, 02:28 AM
This is a god send.
/me worships
HiDeo
10-22-2004, 03:31 AM
Nice job
Thanks for the hack !
Darmak
10-22-2004, 04:45 AM
Kentaurus, dejame te comento que eres mi heroe xDDDD
Muchas gracias !!! este hack me va a servir de muchiiisimo ;)
very nice. However, sorting by lastvisit doesnt work very well.
agrrrrrrrrr
I have about 70 mods, and ...
Page generated in 3.61179 seconds with 12293 queries
SIINSI
10-22-2004, 05:57 AM
Anyway to see supermods as well? Great hack!
Floris
10-22-2004, 07:42 AM
There is an extra option in the hack, but it needs additional modifications so I'm posting it apart.
THIS IS OPTIONAL AND ONLY IF YOU WANT THE EXTRA FUNCTIONALITY
You need my "who viewed thread" hack installed:
https://vborg.vbsupport.ru/showthread.php?t=61225 (yes, it works with 3.0.3)
after you install that other hack:
1)
open includes/functions_modmanagement.php
2)
change:
define('ENABLE_MODERATOR_READ', false);
to this:
define('ENABLE_MODERATOR_READ', true);
you will get an extra column that shows the % number of threads that your moderator has read. If it is a really good moderator then he reads 100% of the threads in his forum, right?
Check the last column in the following screenshot for an example of this extra option.
Small note:
By default vBulletin shows in a color legend the activity of your moderators - check 'view all moderators' through the admin control panel.
Ber|Art
10-22-2004, 07:44 AM
wow, great this Hack is saving a lot off time :)
Darmak
10-22-2004, 07:55 AM
mmmm
i have this problem in modmanagement.php
Warning: array_key_exists(): The second argument should be either an array or an object in /home/digizona/public_html/foro/includes/functions_modmanagement.php on line 251
reteep
10-22-2004, 08:03 AM
First of all, very nice hack!
Would it be possible to generate any kind of statistics for Super Moderators, too?
sv1cec
10-22-2004, 09:34 AM
mmmm
i have this problem in modmanagement.php
Warning: array_key_exists(): The second argument should be either an array or an object in /home/digizona/public_html/foro/includes/functions_modmanagement.php on line 251
I have the same problem, and it annoys me. Is there something we can do about it?
Tnx, looks interesting.
SaN-DeeP
10-22-2004, 10:06 AM
Kentaurus (https://vborg.vbsupport.ru/member.php?u=3031) truly its a very nice hack :), you can definetly add loads of features to same.. (i will myself recommend a few more things needed)
I appreciate your efforts for this hack http://forums.tech-arena.com/images/smilies/notworth.gif
Warm Regards,
Sandy...
Kentaurus
10-22-2004, 10:51 AM
very nice. However, sorting by lastvisit doesnt work very well.
agrrrrrrrrr
I have about 70 mods, and ...
Page generated in 3.61179 seconds with 12293 queries
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.
It is fixed now, please use the modified functions_modmanagement.php in the zip (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.
Also for the array_key_exists() warning (I have never had that on my forum btw) I added code to fix that, please also reupload that file, you'll need to redownload the zip.
sv1cec
10-22-2004, 11:15 AM
Me clicked 'Install'.
Now, all I have to do is to find a way to integrate it into my AdminCP. This vB software can always keep you busy.
Thanks for a lovely hack.
Rgds
Johnny
10-22-2004, 11:32 AM
well this is one awsome mod, thx, ill make sure ill install this one.
Kentaurus
10-22-2004, 11:36 AM
Me clicked 'Install'.
Now, all I have to do is to find a way to integrate it into my AdminCP. This vB software can always keep you busy.
Thanks for a lovely hack.
Rgds
If you really need to do that (I was aiming at a no file no template modification hack, I am tired of rehacking everything every month ;))
For a link in you admincp, it will be below "View permissions" in the "Forums & Moderators" box
In admincp/index.php
find:
construct_nav_group("$vbphrase[forums] & $vbphrase[moderators]");
add ABOVE:
construct_nav_option('Moderators management', '../modmanagement.php');
For a link in your footer template, it will appear just next to your "admincp" link
in your 'footer' template
find:
<if condition="$show['admincplink']"><a href="$admincpdir/index.php?$session[sessionurl]">$vbphrase[admin]</a> -</if>
REPLACE it with:
<if condition="$show['admincplink']"><a href="$admincpdir/index.php?$session[sessionurl]">$vbphrase[admin]</a> - <a href="modmanagement.php">Moderators Management</a> -</if>
Kentaurus
10-22-2004, 11:46 AM
Before somebody asks.... If you don't like the alerts that the system sends you can always delete the cron job, it is called "Moderator Management alerts" and you can delete it at the:
Scheduled tasks -> Scheduled tasks manager -> find "Moderator Management alerts" and delete it.
You can also run the task to see an example of how you'd see the alerts. I find the alerts a main feature of the system but you can get a lot of alerts if you have many moderators and they are all inactive :)
Nice Mod! Thanks for sharing Kentaurus
/me clicks install
Lionel
10-22-2004, 01:34 PM
I get the pm alerts, but I get a blank page for the modmanagement.php and templates are there
Kentaurus
10-22-2004, 02:22 PM
Was the file modmanagement.php uploaded correctly? Check the length of the file against the one in the zip.
You shouldn't get a blank page at all, you should get the summary page if you are an admin or a no permission page if you login with any other group. Try editing the templates and re-saving it, in case the styles weren't updated correctly, but that is unlikely.
ImportPassion
10-22-2004, 02:27 PM
this is gonna help alot. i have 25+ mods
Great job
Thanks for sharing.
jluerken
10-22-2004, 04:35 PM
This sounds like one of the first hack since weeks useful :D
Should be a standard function for version 3.0.4 or 3.1.
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 features:
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.php?p=564415&postcount=27
Kentaurus this modd is too siick. You have taken lead as my fave programmer on here. Great work, please keep it up. :)
jluerken
10-22-2004, 05:53 PM
Kentaurus this modd is too siick. You have taken lead as my fave programmer on here. Great work, please keep it up. :)
Question: Is there also an uninstaller?
neocorteqz
10-22-2004, 06:08 PM
Question: Is there also an uninstaller?
Just remove the files, after that you can put the variable of
$debug = 1; in your includes/config.php
and remove the settings in your vBull settings that way.
that is if it adds a setting to the settings menu.
hope that helps.
i will ask as well, is there a way to track supermods and other administrators?
I suppose i could look at the code, but I wasn't going to download it till i was going to use it, and this is a feature i'd like. :)
But Great work on a hack that is most usefull.
Kentaurus
10-22-2004, 06:24 PM
Question: Is there also an uninstaller?
Currently only moderators are tracked, administrators and supermoderators are not considered unless they moderate a forum. You can always create a dummy forum and add your supermoderadors and admin to them. Some stats like "how many posts have the administrator made in his forum" will be always in 0. I'm considering however adding this to the hack to avoid using clever tricks.
There is not an uninstaller, but I am already making one since it will be a useful tool for upgrades to this hack. (uninstall the last version, install the new...). If you really need to know what was modified download the attached file.
sv1cec
10-22-2004, 06:55 PM
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
Lionel
10-22-2004, 07:13 PM
Was the file modmanagement.php uploaded correctly? Check the length of the file against the one in the zip.
You shouldn't get a blank page at all, you should get the summary page if you are an admin or a no permission page if you login with any other group. Try editing the templates and re-saving it, in case the styles weren't updated correctly, but that is unlikely.
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
Kentaurus
10-22-2004, 07:32 PM
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)
Kentaurus
10-22-2004, 07:38 PM
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.
Lionel
10-22-2004, 07:42 PM
echo "hello";
?>
does not print.
functions_modmanagement.php was uploaded. I did get the alerts PM
Lionel
10-22-2004, 07:49 PM
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)"
Dean C
10-22-2004, 07:54 PM
This is an absolutely superb idea - well done :)!
Lionel
10-22-2004, 07:55 PM
Hear this! When I put echo "hello"; at the top, it prints, AND it also prints template
When I remove it, blank page...
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
....
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
// only administrators can see this page
if (($bbuserinfo['usergroupid'] != 6) AND ($bbuserinfo['usergroupid'] != 5))
{
print_no_permission();
}
Kentaurus
10-23-2004, 02:55 AM
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
// 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.
Kentaurus
10-23-2004, 02:59 AM
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? ;)
Lionel
10-23-2004, 03:41 AM
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
Lionel
10-23-2004, 03:55 AM
Now, you want to hear the best? I am at home on a different PC, and it tells me unable to add cookies headers already sent on the echo line. When I remove the echo line, the page simply takes forever to load.... or perhaps does not load at all (closed brpwser after 5 minutes)
SaN-DeeP
10-23-2004, 04:35 AM
Page generated in 0.51729 seconds with 13 queries [Server Loads: 0.49 0.55 : 0.47]awesome hack :)
sv1cec
10-23-2004, 05:00 AM
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.
It works fine with 3.0.1, I can assure you.
And again, thanks for a lovely hack. Now, I am awaiting for the alerts to see what they are about, haven't seen one yet.
Rgds
Makador
10-23-2004, 12:01 PM
This hack has a major bug. If your Admins dont have the groupid 6 you cant access the page...
/edit:
Hm and changing to this doesn't work:
if (!can_administer('whatever'))
{
print_cp_no_permission();
}
/edit2:
Anybody knows a way to change it in that way, that all people who have access to the admin panel can view it? Because in my case, they are all in a lot of different usergroups.
This hack has a major bug. If your Admins dont have the groupid 6 you cant access the page...
/edit:
Hm and changing to this doesn't work:
if (!can_administer('whatever'))
{
print_cp_no_permission();
}
/edit2:
Anybody knows a way to change it in that way, that all people who have access to the admin panel can view it? Because in my case, they are all in a lot of different usergroups.
// only administrators can see this page
if (($bbuserinfo['usergroupid'] != 6) AND ($bbuserinfo['usergroupid'] != 5))
{
print_no_permission();
}
Add any group that you want to included in the above IF condition, same way I add
"AND ($bbuserinfo['usergroupid'] != 5)"
Makador
10-23-2004, 01:52 PM
Hm I could do that, but I dont want to put everyone who can access the admin panel in one group and especially not as primary group, because they all need different acess to forums and different titles. We got around 400+ Forums, so it is a bit complex ;)
GamerJunk.net
10-23-2004, 05:10 PM
Awesome! Great Job!
trackpads
10-23-2004, 05:38 PM
Great Hack!!!
Kentaurus
10-23-2004, 06:17 PM
This hack has a major bug. If your Admins dont have the groupid 6 you cant access the page...
/edit:
Hm and changing to this doesn't work:
if (!can_administer('whatever'))
{
print_cp_no_permission();
}
/edit2:
Anybody knows a way to change it in that way, that all people who have access to the admin panel can view it? Because in my case, they are all in a lot of different usergroups.
First of all I would appreciate if you didn't call that a "major bug" because you are going to frighten someone, after reading it I thought it was a security issue, performance issue or something like that :)
Certainly yours is a special setup, by default most people use the 6 as the administrator group and it is also the default. I agree with you that it should be fixed. here it is.
In modmanagement.php change
if ($bbuserinfo['usergroupid'] != 6)
{
print_no_permission();
}
To this
if (!($permissions['adminpermissions'] & CANCONTROLPANEL))
{
print_no_permission();
}
Makador
10-23-2004, 06:38 PM
Hehe sorry for calling it a major bug and thanks for your help :)
But I also need to change the modmanagement_cron.php. Same here: All users, who can see the adminpanel should get the pm's.
DrkFusion
10-23-2004, 07:42 PM
This is a very nice hack, I have actually noticed my Moderators are doing so much more work than I expected, and a couple of the other moderators are going to be getting my nice aldo boot :)
Nice hack!
billywiz
10-23-2004, 08:06 PM
very nice hack :)
Kentaurus
10-23-2004, 10:08 PM
Hehe sorry for calling it a major bug and thanks for your help :)
But I also need to change the modmanagement_cron.php. Same here: All users, who can see the adminpanel should get the pm's.
I uploaded a new zip with some fixes
.fixed the cron job and the access to the main page in case you have several admin groups and not only group 6
.added a log to the cron job
.fixed a bug where the "unread pm's" in the navbar wasn't updated
If any of these bugs bother you then just re-download the zip and replace the files.
Kentaurus
10-23-2004, 10:13 PM
By default only admins can view the modmanagement.php page, if you want your supermoderators to be able to access the page.
In modmanagement.php search for:
if (!($permissions['adminpermissions'] & CANCONTROLPANEL))
replace it with:
if (!($permissions['adminpermissions'] & CANCONTROLPANEL) && !($permissions['adminpermissions'] & ISMODERATOR))
By default only admins can view the modmanagement.php page, if you want all moderators to be able to access the page.
In modmanagement.php search for:
if (!($permissions['adminpermissions'] & CANCONTROLPANEL))
replace it with:
if (!($permissions['adminpermissions'] & CANCONTROLPANEL) && !can_moderate())
Aurous
10-23-2004, 10:45 PM
I get the pm alerts, but I get a blank page for the modmanagement.php and templates are thereSame problem on 3.0.1
If there is no fix to this, an uninstaller will be very nice to see here or I'll have to waste time manually deleting everything :(
Kentaurus
10-23-2004, 10:56 PM
Same problem on 3.0.1
If there is no fix to this, an uninstaller will be very nice to see here or I'll have to waste time manually deleting everything :(
I am trying to provide a fix, but I cannot identify where the problem is.
Some people have installed it in 3.0.1 succesfully, but Lionel has the weirdest behaviour I have seen or read, and I installed a copy of vb3.0.1 in my local machine to test it and it ran without problems. Unless there is another conflicting hack or server setting that I am not aware of there is no good reason for it not to work.... maybe I can check your website or test site to see if I can identify what the problem is?
Aurous
10-23-2004, 11:07 PM
Well, I was bored and deleted all the phrases and settings manually. Its possible its conflicting with other hacks I have installed, not sure which one as I have many. Maybe Lionel can be of some help.
Loki12
10-24-2004, 11:10 AM
I like this, and I'm going to install it soon. ;)
Makador
10-24-2004, 11:38 AM
Thanks again for your help. Now everything works fine for me!
I uploaded a new zip with some fixes
.fixed the cron job and the access to the main page in case you have several admin groups and not only group 6
.added a log to the cron job
.fixed a bug where the "unread pm's" in the navbar wasn't updated
If any of these bugs bother you then just re-download the zip and replace the files.
Please provide versions and update time/date (and upgrade instruction if posible). Thank you :)
sv1cec
10-25-2004, 04:49 AM
Today, I received the first PMs from this hack. All fine and well, except that they didn't increase the admins unread PM's number, not did they trigger the fact that there were unread PMs.
Any ideas???
Tnx and rgds
-------------
John
Kentaurus
10-25-2004, 11:30 AM
Today, I received the first PMs from this hack. All fine and well, except that they didn't increase the admins unread PM's number, not did they trigger the fact that there were unread PMs.
Any ideas???
Tnx and rgds
-------------
John
I fixed that a couple of days ago, you'll need to redownload the zip and replace the .php files except the installation file :)
SaN-DeeP
10-25-2004, 07:24 PM
I fixed that a couple of days ago, you'll need to redownload the zip and replace the .php files except the installation file :)
i have the newest version but have this problem :), i have around 25+ unread PMs in my box but my private messages shows 0 new
Regards,
sv1cec
10-26-2004, 03:32 AM
i have the newest version but have this problem :), i have around 25+ unread PMs in my box but my private messages shows 0 new
Regards,
Maybe they were send before you installed the latest version? That's what happened with me too, but I have to assume they were send before, because next day I received about 40 of them and got warned all right. I'll have a more ... concrete opinion next Sunday!! LoL
Rgds
--------------
John
I am trying to provide a fix, but I cannot identify where the problem is.
Some people have installed it in 3.0.1 succesfully, but Lionel has the weirdest behaviour I have seen or read, and I installed a copy of vb3.0.1 in my local machine to test it and it ran without problems. Unless there is another conflicting hack or server setting that I am not aware of there is no good reason for it not to work.... maybe I can check your website or test site to see if I can identify what the problem is?
I also had the white page problem but found a fix for my board (not sure if it will work for all)
Open modmanagement.php
Search for:
$globaltemplates = array(
'MODMANAGEMENT',
'modmanagement_bit'
);
Replace with:
$globaltemplates = array(
'modmanagement_bit'
);
Hope this will help someone else
This a great Mod,, Thanks for your efforts Kentaurus
The Realist
10-26-2004, 08:15 PM
One this thats annoying me is when it sends a PM informing the admin what a mod or mods have been up to, the email says "Blah Blah has not posted in his forum in the last 30 days"
Now I have moderators that mod more than one forum so how would I know from this what forum its refuring to?
Can this hack be changed so the PM's state what forums its on about.
Laters
Kentaurus
10-27-2004, 02:09 AM
One this thats annoying me is when it sends a PM informing the admin what a mod or mods have been up to, the email says "Blah Blah has not posted in his forum in the last 30 days"
Now I have moderators that mod more than one forum so how would I know from this what forum its refuring to?
Can this hack be changed so the PM's state what forums its on about.
Laters
Right now, it can't. But I'll take the suggestion for improvements in a future version :) As it is now it monitors all forums as a whole. If the pm says that he hasn't posted in the last 30 days it means he hasn't posted in ANY of his forums in the last 30 days. Sounds pretty bad to me.
sv1cec
11-02-2004, 03:52 AM
Right now, it can't. But I'll take the suggestion for improvements in a future version :) As it is now it monitors all forums as a whole. If the pm says that he hasn't posted in the last 30 days it means he hasn't posted in ANY of his forums in the last 30 days. Sounds pretty bad to me.
This PM function needs improvement. This morning, it reported to me that ... I was inactive. I am the admin (and act as moderator as well) and I've done several mod work the last few days. However, as someone pointed out, if a mod has more than one forums, the PM gets send even if he has moderated all of them but one. What's worst, is that it does not tell you, for which forum the PM was issued.
I am keeping the statistics, but removing the cron job.
Rgds
Kaitou
11-08-2004, 05:43 PM
Great hack!
This certanly makes it a lot easier to see if a mod isn't around for some reason.
I have also modified it slightly, to show in the percent read column:
"25 of 76, 33%" or "12 of 13, 92%" because the pure percent can be a bit misleading, and it helps to see if the mod is just not paying attention, of if they are swamped, and a co-mod may be needed.
68 Z-28
11-08-2004, 06:57 PM
You are WONDERFUL. I've been having these sort of problems with the mods on my site, and this will work wonders. Will be great for removing moderators as well :D
SaN-DeeP
11-08-2004, 06:58 PM
Great hack!
This certanly makes it a lot easier to see if a mod isn't around for some reason.
I have also modified it slightly, to show in the percent read column:
"25 of 76, 33%" or "12 of 13, 92%" because the pure percent can be a bit misleading, and it helps to see if the mod is just not paying attention, of if they are swamped, and a co-mod may be needed.
thats a nice modification you made there :) care to share ?
Kentarus, how about adding all the fields which can be configured in admincp for this hack to the modmanagement.php ? and a better way to get the alerts in thread or email instead of receiving huge no. of pm alerts ??
Just my 2 cents above :)
Regards,
Kaitou
11-09-2004, 02:07 AM
ah, not at all, it's too simple to be much of anything really
just replace
round(($moderatorInfo[$userid]['readcurrent']/$moderatorInfo[$userid]['readtotal'])*100);
with
$moderatorInfo[$userid]['readcurrent']." of ".$moderatorInfo[$userid]['readtotal'].", ".round(($moderatorInfo[$userid]['readcurrent']/$moderatorInfo[$userid]['readtotal'])*100);
in includes/functions_modmanagment.php
Koutaru
11-10-2004, 07:31 PM
Is there any way that this could be EMAILED instead of PMed? I'm tired of all the random PMs.
It should just generate one report
XrayHead
11-10-2004, 11:46 PM
Thanks for that great hack mate, Installed.......
Xray
RacerX
11-13-2004, 08:48 PM
Excellent hack... WE have over 70 mods now and this will come in very useful!
Sin City
11-15-2004, 06:48 PM
superb hack.... extremely helpful
id love for this to also include super mods...that would be awesome
sabret00the
11-16-2004, 10:42 AM
wow what a great hack, i'll add this, this weekend :)
burnist
11-16-2004, 12:28 PM
I was going to make soething like this but yours is just so much better im not going to bother. Well done this is truly an excellent hack and deserves HoTM
sv1cec
11-17-2004, 11:29 AM
A few days ago, I upgraded from 3.01 to 3.03. I hadn't check that hack until today, when I noticed that all numbers in the statistics page were zero. The only column showing meaningful data, is the Last Login. All the others have zeros. Any idea what could be wrong?
Also, the settings were all lost, maybe in the initial file I had downloaded, the volatile was not set properly. Anyhow, I re-run the installation script with some mods and re enter them, but I still can't figure out why all the stats are zero. I know that my mods did some moving and deleting yestarday, and I did too, but it just doesn't show up.
Any ideas?
Rgds
----------
John
P.S. : Never mind, it looks as if the templates have changed somewhere along the line. Deleted them and recreated them and now it works.
Tnx
Kentaurus
11-20-2004, 04:07 PM
In preparation for an upgrade I added the requested uninstaller for the people that wanted to have total control of the hack. It is not a separate file but instead you should run modmanagement_install.php (in your admincp) and you will have the option to uninstall the hack, all settings, phrases and templates added will be deleted and only the files are left for you to delete. This is also useful if for whatever reason you want to reinstall the hack.
I have successfully tested it in my local vbtest of my forums and in my production environment, however I would advice to have a backup of your forums before attemping to install or uninstall any hack including mine, "just in case".
alkatraz
11-25-2004, 07:38 PM
great hack! thank you!!!
couple of suggestions that have already been posted
-ability to track supermods and admins (for comparison sake)
-PM or Email "summary" mode, instead of 50+ random PM's (i turned the cron task off cuz it spammed me to death)
rstan
11-28-2004, 12:20 AM
installed.....all my admins got 140 PMs. I delted them from the table pmtext and they are gone but the unread PMs shows as 140 still???????
SHARKY
11-29-2004, 02:58 AM
i also get a blank page when i go to modmanagement.php is there any fix in the works i have the latest version of vb
zzzxxzzz
11-29-2004, 09:18 PM
Database error in vBulletin 3.0.3:
Invalid SQL: SELECT +++++ad,forumid FROM thread WHERE dateline >= 1101165382
mysql error: Unknown column '+++++ad' in 'field list'
mysql error number: 1054
Date: Monday 29th of November 2004 11:16:24 PM
what is that? got that one when open modmanagement.php
+++++ad' = who read
is there anyway to disable the PMs ? id like to disable that because we can read the stats from the management system...id rather do that then have so many PMs sent to all my admins
marcel-ea
12-05-2004, 09:34 AM
great hack some possiblity to show the logins of the team in this list?
Like: xxx Mod was 212 times online in the last 60 days also a new row?
thx
etaslim
12-15-2004, 10:38 AM
great hack! very easy to install & wonderfull efect. Thanks
Jmonto
12-27-2004, 05:18 PM
is there anyway to disable the PMs ? id like to disable that because we can read the stats from the management system...id rather do that then have so many PMs sent to all my admins
i would also like to disable all these PMs, i get over 140 a day
alkatraz
12-27-2004, 05:47 PM
i would also like to disable all these PMs, i get over 140 a day
Adminc Cp \ Scheduled Tasks
Turn off or remove the Cron job you installed for this script.
Carnage
01-07-2005, 12:19 PM
you got yourelf an install, great hack
one idea though, how about an option to include smods and admins in the table, since i quite like the idea of saying to my mods: " look at how much work i do, then look at what you are doing" etc :p
hanna
01-27-2005, 07:23 PM
I got the same problem after upgrading.What I did is to copy all the code in the functions_modmanagement.php (except the <? and ?>) to the modmanagement.php file,just under:require_once('./global.php'); line.And it is working for me now.Hope it's helpful.
Same problem on 3.0.1
If there is no fix to this, an uninstaller will be very nice to see here or I'll have to waste time manually deleting everything :(
jluerken
02-10-2005, 06:03 AM
Hi, I am searching a way to uninstall this hack.
Is there an uninstaller available or can the author please list all table changes, phrase add and templates adds so that I can remove it manually?
venomx
02-23-2005, 07:49 AM
If we are on the modmanagement.php will that show up in the Who's Online area? If so whats the code to add it?
shadiguy1
02-23-2005, 11:41 AM
its not displaying all y mods. Pelase advise on why?
XrayHead
04-06-2005, 07:02 AM
Hi
I also am keeping the statistics, but removing the cron job.
Other than that the hack works great.
Xray
EvilHawk
04-06-2005, 05:04 PM
Works prefectly on 3.0.7 thanks!
mmm...
when I go to modmanagement.php I get the following message:
There are no moderators in the forum!when in fact there is moderators... can someone help me out please... thank you :)
venomx
04-18-2005, 03:38 PM
I get that too but I think its just because theres only me and a supermod and neither of us is listed as an MOD of any forum since its not needed...
mmm... so i have to give specific forums to my moderators? my moderators are global moderators... meaning that they can moderate all of the forums... how could I make this work for me then?
angelicGrace
05-03-2005, 01:17 AM
I love this. it was super easy to install even for my novice self. and it works so well. it mjust may give me a reason to fire this one little twirp I so don't like on my staff anymore. thanks bunches.
larryd
05-03-2005, 09:03 PM
That doesn't make any sense... but you already know that :) Maybe you can just leave that hello at the top? ;)
I get a blank white page with 3.03; I assume there is no fix for this since I read through the entire thread and tried the couple things that were mentioned without success?
almqdad
05-04-2005, 09:25 AM
great hack
asianboi
05-04-2005, 03:18 PM
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
You can either change it in the phrase
Do a phrase search and search for
mod_management
Then change that
If you're interested in changing that to statistic also then in the same search
Varname: mod_statistic
Text: Moderator Statistic
In moderatormanagement.php
find
$navbits[''] = $vbphrase['mod_management'];
Then change mod_management to mod_statistic
That's it
Ex: $navbits[''] = $vbphrase['mod_statistic'];
asianboi
05-04-2005, 03:59 PM
damn the PM is like crazy..
Remove the cron job in the includes/cron/ and also the schedule maintain
artonex
05-24-2005, 08:09 PM
can anyone else confirms this works on vb 3.0.7 ?
can anyone else confirms this works on vb 3.0.7 ?it does... I got it working on my site :)
Snitz
05-25-2005, 11:10 AM
when I access modmanagement.php it gives me the following:
there is moderators for this forum
although I have set "The Team" group as "super moderator" to monitor all the forums.. :confused:
and just a small question, how can I add a link in the footer to be visible only for admins to point to modmanagement.php. (just like the "Admin" link)
Snitz
05-25-2005, 11:24 AM
oh never mind, I fixed the error!
angelicGrace
05-25-2005, 02:02 PM
and just a small question, how can I add a link in the footer to be visible only for admins to point to modmanagement.php. (just like the "Admin" link)
I would also like to know the answer to this one. I tried doing it on my own and got a world of no where. lol
Snitz
05-26-2005, 08:02 AM
I would also like to know the answer to this one. I tried doing it on my own and got a world of no where. lol
oh it's easy, I figured it out:
Admincp >> Styles & Templates >> Search in Templates >> "footer"
search for:
<if condition="$show['modcplink']"><a href="$modcpdir/index.php?$session[sessionurl]">$vbphrase[mod]</a> -</if>
add after:
<if condition="$show['admincplink']"><a href="modmanagement.php?$session[sessionurl]">Mod Management</a> -</if>
angelicGrace
05-26-2005, 12:01 PM
thank you muchlies. i think my brainw as turned off the day I tried to fix it myself. lol but note i didn't bother trying agian.
hitokiri battou
05-27-2005, 05:12 AM
I have a quick question. I was wondering if there was a way to make it so only one admin can access this page? Like there is a way to set some admin and super admin and such. So is there a way i can make it so only one member or a certain member can access moderator managment and get PMed? Thanks in advance for any help.
Snitz
05-27-2005, 07:35 AM
it is set so no one can access the page other than the admins
only admins can enter it!
VBUsers
05-27-2005, 08:38 AM
great cant wait to see what happens. installed and ready to go thanks and i clicked install as well
H@K@N
05-27-2005, 10:03 AM
I get a blank white page with 3.03; I assume there is no fix for this since I read through the entire thread and tried the couple things that were mentioned without success?
I have the same Problem, i think its caused by PHP5, because i had 4.3.11 and it worked, now i have php5 and i am getting a blank page.
Does somebody know how to fix this ?
th@nks and gr33tz
VBUsers
05-27-2005, 04:48 PM
i just got like 50 PMs telling me my mods were doing there job. is that a glitch or will that happen daily?
hitokiri battou
05-27-2005, 06:59 PM
it is set so no one can access the page other than the admins
only admins can enter it!
Ya i know, i think you missunderstand my question. I was wondering if i can make it so only ONE specific user can access this info. Not all the admin, only one member, is this possible?
Snitz
05-28-2005, 06:44 AM
ah I don't know, u'll have to ask the author :P
SilverBoy
08-04-2005, 12:15 PM
I installed it on my board 3.0.7, but when I upgrade it to 3.0.8 it didnt work and give me 0 for all records.
any help?
sv1cec
08-04-2005, 02:43 PM
If I remember correctly, this is the hack I have installed at least 5 times. As many, as the upgrades of vB, in other words. Just run the installation script again, if I remember correctly.
for some reason, everytime i run the modmanagement_install.php i get a vdeck cannot be found error page. Anythoughts as to why this is happening?
Thanks in advance :nervous:
*FIXED* end user error :rolleyes:
GetGamer.com
10-10-2005, 04:39 PM
I have one problem and one question:
First, the problem...
This works almost flawlessly on my site. I can view the stats on modmanagement.php and everything is reported correctly. I configured it to send me a PM when someone falls outside the guidelines, but each week I'm getting a PM for EVERYONE on my staff (myself included) even though they have not exceeded the guidelines established through the admin. Any ideas why?
Now for the question...
I'd like to be able to modify modmanagement.php so that I can run it against any usergroup, maybe through a querystring variable. This would allow me to view reports on non-moderators (I have staff members that do not have moderator rights, believe it or not), and I'd also like to view reports by "team" (a specific usergroup). Is this an easy modification? Seems like this would be a nice little change that others could use as well.
bigmonay2k
10-16-2005, 01:28 AM
Excellent hack :D Hopefully I'll be able to scare my mods into being more active with this thing ;)
Could there also be an email to the moderator who has been unactive for x days or has not posted x amount of threads to remind them of their duties?
hahaha this hack is funny, you talking like you pay them money to moderate your board :nervous:
brvheart
10-17-2005, 05:31 PM
I have 3.0.7, installed fine etc, but I can not see the modmanagement.php page or from the link inside the admin cp, anyone give me a hand please?
Also if I delete the cron job, that just simply stos the mad PM's correct?
I get a blank page in the admin CP and a Page can not be displayed in the browser.
get these fixed and will be a I installed for sure....very nice hack.
angelicGrace
10-18-2005, 01:52 PM
I rather depend on this too kepe a watchful eye on my mods. Has anyone tried using it with 3.5 or are there plans for an out right port to 3.5?
K, are you going to port this to 3.5.0?
proxx
10-28-2005, 08:33 PM
This MUST be ported to VB3.5.... there so much demand for mods like this, yet noone is porting them.
I mean, if there a serious programmer who'll just port 5 of the good mods, I would be willing to pay to have it. (instead of waiting for months until some nice person ports it)
Stone Cold 3:16
10-30-2005, 04:24 PM
Installer? Whooo! No file edits :p
Thanx!
dxguru
11-18-2005, 06:08 AM
For those who want to use this great Mod to get stats just for the Super Moderator group (because like me, you have Moderators that work the entire site and do not assign Moderators specifically to individual forums) ...
In file functions_modmanagement.php
find
$result = $DB_site->query("SELECT user.* FROM ".TABLE_PREFIX."moderator moderator INNER JOIN ".TABLE_PREFIX."user user ON moderator.userid=user.userid");
and replace with
$result = $DB_site->query("SELECT user.* FROM ".TABLE_PREFIX."user WHERE usergroupid='5'");
find
foreach ($moderatorInfo as $userid => $moderatorData)
{
if (has_permissions_in_forum($data['forumid'], $userid))
{
$moderatorInfo[$userid]['forums'][] = $data['forumid'];
$hasForum = true;
}
}
and replace with
foreach ($moderatorInfo as $userid => $moderatorData)
{
# if (has_permissions_in_forum($data['forumid'], $userid))
# {
$moderatorInfo[$userid]['forums'][] = $data['forumid'];
$hasForum = true;
# }
}
<a href="showthread.php?t=106329" title="vBulletin.org Forum - Mod 106329">Here</a> you go. A vb 3.5 version!
FunaGuy
03-14-2006, 11:22 AM
its not working plz fix it
i pm u all my inform
kuscheltier
03-18-2006, 08:14 PM
Nicer Hack, but it works not fine...
On the Statistic Page (modmanagement.php) i can the the correct info's. When i run the cron, i get also only the korrekt PM's.
BUT when the cron run automatically, i get every possible PM for every moderator. have somebody any idea , whats going wrong ?
kirkmkiv
03-20-2006, 01:55 AM
My site is sharing the user database, how will this hack react when there is a user who is under the moderator usergroup but the forum that they moderate does not "exist"? Thanks
As long as you add the usergorup to the list, then they will show up.
kirkmkiv
03-20-2006, 11:19 PM
the server slows down and eventually crashes when I load modmanagement.php
the cron job sent out hundreds of PM's to each admin saying every single mod has not posted, viewed, etc... If anyone else has these problems please let me know. I got this hack working on one of my sites without much effort, but the other website with a shared user database does not seem to cooperate.
I would love to get it to work seeing as we have a hefty mod staff between the two sites.
kirkmkiv
03-24-2006, 10:03 PM
anyone ?
precharge
08-03-2006, 07:29 AM
I get
PHP Fatal error: Call to a member function on a non-object in modmanagement_install.php on line 225
Ideas?
DF-inside
08-07-2006, 07:33 PM
Can anyone tell me if this hack is workin on VBB3.6.0?
I get
PHP Fatal error: Call to a member function on a non-object in modmanagement_install.php on line 225Ideas?
I get this error as well...anyone??????
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.