![]() |
Quote:
|
Am i the only one who sees no infractions when limiting the time of the reports, instead of all time.?
|
Is there any support for this mod at all?
|
Quote:
|
Cyb, like this mod alot.
Hoping at your convenience, that it could be fixed where admins, smods, and mods, are all included by the selector to show stats. I have played with the settings, but am unable to get the mods, currently appointed, and their stats, to show up yet. Thanks in advance. |
Quote:
Glancing at the code, I'd think it's a problem with the query not specifying the dateline properly, but I haven't tried tweaking the query to see if I can fix it yet. Code:
$cybmodstats_get_infr = $vbulletin->db->query_read("SELECT whoadded, points, dateline FROM " . TABLE_PREFIX . "infraction WHERE whoadded='".$cybmodlogstat['userid']."' $cybmodstats_timeperiod "); |
So no one has any input on why limiting the number of days shown breaks the infraction totals?
EDIT: Nevermind, I fixed the bad query myself. |
Quote:
Can you share how you fixed it? I really dont know where to start. |
Under "Cyb - Moderating Stats - MN" in the Plugin Manager, I changed this:
Code:
$cybmodstats_get_infr = $vbulletin->db->query_read("SELECT whoadded, points, dateline FROM " . TABLE_PREFIX . "infraction WHERE whoadded='".$cybmodlogstat['userid']."' $cybmodstats_timeperiod "); Code:
$cybmodstats_get_infr = $vbulletin->db->query_read("SELECT whoadded, points, dateline FROM " . TABLE_PREFIX . "infraction WHERE whoadded='".$cybmodlogstat['userid']."' AND dateline > $fromtime"); This will probably break the option to disable the time limitation on the logs, but I don't need that so it was the quickest fix for me. What I'm currently trying to work out is why all of a sudden the "moderator posts in their own forums" fields are gone. Those were useful. |
Quote:
Here is original query: Code:
$cybmodstats_get_infr = $vbulletin->db->query_read("SELECT whoadded, points, dateline FROM " . TABLE_PREFIX . "infraction WHERE whoadded='".$cybmodlogstat['userid']."' $cybmodstats_timeperiod "); |
All times are GMT. The time now is 11:04 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|