vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - [AJAX] Moderator Statistics (https://vborg.vbsupport.ru/showthread.php?t=139248)

vitrag24 06-09-2008 08:30 PM

it was nice mod.
can i have same for vb 3.7?

Abe1 06-13-2008 08:54 PM

Quote:

Originally Posted by vitrag24 (Post 1545352)
it was nice mod.
can i have same for vb 3.7?

Some day when i have time

vitrag24 06-14-2008 03:49 AM

Quote:

Originally Posted by Abe1 (Post 1548725)
Some day when i have time

Hope you'll have time soon. :D
Bcz i was using your mod while promoting new users in moderator group.
Thanks.

proxx 07-03-2008 09:07 PM

does anyone know how to make this mod count/display stats of actions within certain forums (as opposed to all forums)?

I would pay for a quick fix, if anyone has it

vithorius 07-22-2008 09:55 AM

Hi everyone!

Any news on the 3.7.x port? :confused:


Thank you very much! :up: :up: :up:

vitrag24 07-23-2008 09:30 PM

dying to get for 3.7.1
:)

ShiZoPhreN 09-20-2008 09:44 AM

Hello

any news, about the version for 3.7?

Blind Guardian 09-25-2008 02:49 AM

Well it works on 3.7 as is, it's just missing the ability to show infractions.

That's easily fixed by adding a few lines of code here and there. Firstly under the "Moderators Stats" misc_start hook find the following:

Code:

$moderatorinfo[$moderator['userid']]['threadforum'] = 0;
And after it, add:

Code:

$moderatorinfo[$moderator['userid']]['infraction'] = 0;
Then find:

Code:

// load thread information
    $moderatorthreads = $db->query_read("
        SELECT postuserid, dateline, forumid
        FROM ".TABLE_PREFIX."thread
        WHERE postuserid IN (".implode(",",$moderatorids).")
        AND dateline >= $settings_days_time
    ");

    while ($moderatorthread = $db->fetch_array($moderatorthreads))
    {
        if ($moderatorthread['dateline'] >= $settings_thread)
        {
            $moderatorinfo[$moderatorthread['postuserid']]['thread']++;
        }

        if (in_array($moderatorthread['forumid'], $moderatorinfo[$moderatorthread['postuserid']]['forums']) && $moderatorthread['dateline'] >= $settings_thread_forum)
        {
            $moderatorinfo[$moderatorthread['postuserid']]['threadforum']++;
        }
    }

And after it add:

Code:

//Obtain warning information
       
    $moderatorinfractions = $db->query_read("
        SELECT whoadded, points, dateline
        FROM ".TABLE_PREFIX."infraction
        WHERE whoadded IN (".implode(",",$moderatorids).")
        AND dateline >= $settings_days_time
    ");       

   
    while ($moderatorinfraction = $db->fetch_array($moderatorinfractions))
    {
        if ($moderatorinfraction['dateline'] >= $settings_thread)
        {
            $moderatorinfo[$moderatorinfraction['whoadded']]['infraction']++;
        }
    }

Now you just have to add it into the templates, so go to MODERATOR_STATS and after:

Code:

<td class="thead" valign="top" nowrap="nowrap">
                <a href="misc.php?$session[sessionurl]do=moderator_stats&amp;order=$oppositesort&amp;sort=modlog">$vbphrase[total_moderator_actions]</a> $sortarrow[modlog]
        </td>

Add:

Code:

<td class="thead" valign="top" nowrap="nowrap">
                <a href="misc.php?$session[sessionurl]do=moderator_stats&amp;order=$oppositesort&amp;sort=infraction">Infractions</a> $sortarrow[infraction]
        </td>

Note: I couldn't be bothered with phrasing. If you're wanting that kind of thing, add it yourself.

And finally in moderator_stats_bit_user find:

Code:

<td class="$bgclass">$moderatorstats[modlog]</td>
And after add:

Code:

<td class="$bgclass">$moderatorstats[infraction]</td>
You can put those columns anywhere you want, but I like them after the actions.

That should be everything. There's no "total infractions" or fancy addition to the expanded AJAX information, but it works.

Alfa1 09-25-2008 09:41 PM

Statistics from Blog, albums, VM's, group messages, etc would be nice.
Any tips on adding that?

proxx 10-02-2008 01:55 AM

If somebody could modify this to allow me to EXCLUDE forums from stats, I could pay for such a modification.

for example, i have off topic forum and support forum. I don't care the posts and moderation actions in off topic forums, but I would rather get only stats of moderators in support forums.

Please PM me if you can do what I need. I can pay by paypal.

joe1989 01-09-2009 05:35 PM

Anyone test this on 3.8 yet?

joe1989 01-09-2009 06:10 PM

Just installed, and it seems to be working fine in 3.8!

joe1989 01-14-2009 07:17 PM

Is there any way this mod could include a link (like in the admincp or quicklinks, say) to the page? It's tough always linking there... how would I add a new link location?

Thanks!

q8-star 03-01-2009 07:08 PM

how about adding a feature to send the stats to each moderator? I think it's useful for them to get an idea of what they did.

joe1989 03-19-2009 02:59 AM

I'm wondering about the statistics shown...

For example, total moderator actions... is that like within the last x days or something? For some reason some of my moderators have a 0 there when they have performed moderator actions, just not recently. I couldn't find anything on it, so I'm wondering if it's some kind of bug, or if I'm not understanding what the statistics reflect.

Thanks,
Joe

Hornstar 04-10-2009 10:25 PM

What a shame this has not been updated for 3.8 :/ this had so much potential.

proxx 05-13-2009 05:50 AM

I think this is a better mod than Cyb's moderator stats.

But it is missing a vital function of including or excluding forums from being counted towards the stats.

SBlueman 06-21-2009 10:02 PM

Nothing happens when I click on the link to view the Advanced Log Stats....

joe1989 06-23-2009 06:46 PM

Quote:

Originally Posted by SBlueman (Post 1834367)
Nothing happens when I click on the link to view the Advanced Log Stats....

It's been discussed in several posts before yours that this mod is not fully compatible with newer vB versions. It was built and released for 3.6, and has not been updated since Feb. of 2007. I wouldn't expect the developer to bother working out all the bugs that it has since it has fallen behind.


All times are GMT. The time now is 01:04 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.01336 seconds
  • Memory Usage 1,765KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete