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.


All times are GMT. The time now is 09:12 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.01588 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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