vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Statistics Modifications - Cyb - Moderating Stats (https://vborg.vbsupport.ru/showthread.php?t=201296)

Domenico 01-14-2010 01:57 PM

Quote:

Originally Posted by Schnee (Post 1879989)
Any idea why mine shows NO infractions at all?

Even when I just did some?

Do infractions need to be Warnings to show up?

Same here! I only see them when I set 'Show Mod log entries from last X days only' to NO.

Can you please fix this?

proxx 01-20-2010 07:13 AM

does anyone know how to make moderator stats count only stats of mod actions in certain forums and not all forums?

Valter 02-22-2010 10:43 PM

Released for vB4 here:
https://vborg.vbsupport.ru/showthread.php?t=236630

adriatic21 02-23-2010 02:35 PM

I try to install, but I have this message

Quote:

XML Error: not well-formed (invalid token) at Line 0
what is problem?
thanks for the help.

ORP 05-18-2010 01:49 PM

Thanks, cool mod.

I've had good luck with other Cyb mods so I jumped on this one. I did use a different mod stat hack, which is currently quarentined here on vb.org. It had a few cool features that would be a big plus to this hack.
It showed the mods activity for the time period in question ...instead of total posts is showed the number of posts for the period and the number of threads started for the time period only.
If you needed columns freed up to add this new stuff I would suggest you delete total posts, date joined and date of last activity.
Any chance of getting this info added to this hack or is it wishful thinking?

merk_aus 05-21-2010 02:45 AM

Thanks for this I love all of your mods they are the first ones I come to get when setting up a forum.

Samish 05-24-2010 08:12 AM

Got a query, I have changed the original url for the /admincp and this is stopping the log for Moderating Actions from going anywhere, I just get a 404 page from where the page used to be. Where is the coding for this and how do I change it? Thanks :)

Brilliant plugin however.

bulbasnore 10-19-2010 02:07 AM

Quote:

Originally Posted by Domenico (Post 1955523)
Same here! I only see them when I set 'Show Mod log entries from last X days only' to NO.

Can you please fix this?

The workaround for me is to turn off the 'time period'. When that is marked 'no' it works to show infractions and points.

I'm guessing this has to do with the evil php 5.3.1 I am running. I'm guessing it has broken this construct:
PHP Code:

if ($vbulletin->GPC['cybms_del']<1)
            {
                
$cybmodstats_timeperiod "";
                
$cybmodstats_timeperiod_tot "";
                [
B]if ($vbulletin->options['cybmodstats_time_period'])
                {
                    
$fromtime TIMENOW - ($vbulletin->options['cybmodstats_period_days']*24*60*60);
                    
$cybmodstats_timeperiod "AND moderatorlog.dateline > $fromtime";
                    
$cybmodstats_timeperiod_tot "WHERE dateline > $fromtime";
                }[/
B

Valter?

--- later ---

OK, comparing to his 4.0 product I came up with this fix. Sorry to go all Unix 'diff' utility on you folks, but I'm off to shop for my wife's birthday.

Code:

diff -c Cyb_MS.xml Cyb_MSfixed.xml
*** Cyb_MS.xml        2008-10-26 14:55:56.000000000 -0700
--- Cyb_MSfixed.xml        2010-10-18 20:20:44.000000000 -0700
***************
*** 84,94 ****
--- 84,96 ----
                          {
                                  $cybmodstats_timeperiod = "";
                                  $cybmodstats_timeperiod_tot = "";
+                                $cybmodstats_timeperiod_inf = "";
                                  if ($vbulletin->options['cybmodstats_time_period'])
                                  {
                                          $fromtime = TIMENOW - ($vbulletin->options['cybmodstats_period_days']*24*60*60);
                                          $cybmodstats_timeperiod = "AND moderatorlog.dateline > $fromtime";
                                          $cybmodstats_timeperiod_tot = "WHERE dateline > $fromtime";
+                                        $cybmodstats_timeperiod_inf = "AND dateline > $fromtime";
                                  }                       
                                  $cybmodstats_exclgroups = "";
                                  if ($vbulletin->options['cybmodstats_exclgroups'])
***************
*** 114,120 ****
                                          if ($vbulletin->options['cybmodstats_enable_infractions'])
                                          {
                                                  $cybmodstats_infpoints = 0;
!                                                $cybmodstats_get_infr = $vbulletin->db->query_read("SELECT whoadded, points, dateline FROM " . TABLE_PREFIX . "infraction WHERE whoadded='".$cybmodlogstat['userid']."' $cybmodstats_timeperiod ");
                                                  $cybmodstats_infractions = $db->num_rows($cybmodstats_get_infr);
                                                  while ($cybmodinfractions = $db->fetch_array($cybmodstats_get_infr))
                                                  {
--- 116,122 ----
                                          if ($vbulletin->options['cybmodstats_enable_infractions'])
                                          {
                                                  $cybmodstats_infpoints = 0;
!                                                $cybmodstats_get_infr = $vbulletin->db->query_read("SELECT whoadded, points, dateline FROM " . TABLE_PREFIX . "infraction WHERE whoadded='".$cybmodlogstat['userid']."' $cybmodstats_timeperiod_inf ");
                                                  $cybmodstats_infractions = $db->num_rows($cybmodstats_get_infr);
                                                  while ($cybmodinfractions = $db->fetch_array($cybmodstats_get_infr))
                                                  {


besedka 10-23-2010 02:19 AM

thank you

jscieza 11-01-2010 08:11 PM

Valter can you please also fix this vB 3.8.x version as you have done with the 4.x one?

Quote:

v2.0.1 - Feb 25. 2010.
-Fixed bug with timecut in Infraction stats
Thank you,
Jonathan


All times are GMT. The time now is 11:50 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.05911 seconds
  • Memory Usage 1,758KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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