Raised This Month: $51 Target: $400
 12% 

[ANY] adminWatch (v1.2.2)


Post New Thread Reply   
 
Thread Tools Display Modes
MaloModo
Veteran Member
Join Date: Aug 2008
Old 05-26-2015 , 12:57   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #111

Any chance this does/could work for local database (i.e. sqlite)?
MaloModo is offline
DoPe^
Veteran Member
Join Date: Jul 2008
Location: Denmark / Copenhagen
Old 05-28-2015 , 18:22   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #112

alright as promised here is the fixed version.
I made a few changes in it.

It also saves the time on round end now and not only when a admin disconnects.
I have changed so the played timer dosnt stop on round end since you are still "playing".

I have also made some changes to the web part.
The real idle(spec) time is shown now, played time is shown as before and I have added a total time which is idle + played.
I have also made so you can sort your admins by name, total time played, played time, idle time and last played.

You can see what the page looks like here http://www.clanroyal.dk/adminwatch/index.php

For setup, just follow the first post in this topic

__________________________________________

Web Settings
I have added a few settings in the top of the index.php to make it alittle easier for you guys
PHP Code:
$backgroundurl ""// Change the background image
$backgroundcolor "white"// Change the background color, using color name (yellow), hex (#00ff00) or rbg (rgb(255,0,255))
$adjusttimedate "+2 hours"// Adjust the time/date for Last Played and Commands logs -1 hours, +2 hours, +6 hours, +1 day, +2 days, and so on
$steamprofile "2"// If 1 steam profile is linked in the name if 2 steam profile is linked under the name as (View Steam Profile) 
___________________________

Updates
Code:
6th July 2016:
Web version 1.2
  • Added clickable link to the admins steam profile in the name
  • Fixed possible issue with Last played date not sorting correctly
  • Added so you can set a custom background (see line 2 and 3 in index.php)
  • Changed so the whole site layout is more "solid" if using a custom background
  • Added a settings section in the index.php
Attached Files
File Type: sp Get Plugin or Get Source (adminwatch.sp - 1083 views - 17.9 KB)
File Type: zip adminwatch_web_v1.2.zip (36.6 KB, 561 views)
__________________

Last edited by DoPe^; 07-05-2016 at 22:26. Reason: Updated web to 1.2
DoPe^ is offline
mlov420
Senior Member
Join Date: May 2013
Old 06-04-2015 , 18:59   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #113

I don't know if maybe I missed something, but the webpage is not showing any time at all. Just 00:00:00 for everything. It's logging all the admins just fine. It's logging all the commands they use just fine. But no time at all, not for anyone.

This is on all CS:GO servers. There are no errors in the logs. And all my servers are running bare minimum plugins with no errors on them either. Any ideas why this is happening?
mlov420 is offline
DoPe^
Veteran Member
Join Date: Jul 2008
Location: Denmark / Copenhagen
Old 06-06-2015 , 09:13   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #114

Quote:
Originally Posted by mlov420 View Post
I don't know if maybe I missed something, but the webpage is not showing any time at all. Just 00:00:00 for everything. It's logging all the admins just fine. It's logging all the commands they use just fine. But no time at all, not for anyone.

This is on all CS:GO servers. There are no errors in the logs. And all my servers are running bare minimum plugins with no errors on them either. Any ideas why this is happening?
Did you try the version I posted?
__________________
DoPe^ is offline
mlov420
Senior Member
Join Date: May 2013
Old 06-17-2015 , 08:19   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #115

Sorry for the late response, just got to update this. I tried your newly posted version and it works. Thank you sir
mlov420 is offline
ltgenkd
AlliedModders Donor
Join Date: Sep 2008
Old 06-28-2015 , 10:53   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #116

I have this installed on multiple servers (5). Admins are pretty active and the command logs get cut off after 2 days. Can pagination be added to view ALL command logs?
__________________
ltgenkd is offline
TUSK3N1337
SourceMod Donor
Join Date: Dec 2013
Location: Sweden
Old 07-05-2015 , 20:39   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #117

Quote:
Originally Posted by DoPe^ View Post
alright as promised here is the fixed version.
I made a few changes in it.

It also saves the time on round end now and not only when a admin disconnects.
I have changed so the played timer dosnt stop on round end since you are still "playing".

I have also made some changes to the web part.
The real idle(spec) time is shown now, played time is shown as before and I have added a total time which is idle + played.
I have also made so you can sort your admins by name, total time played, played time, idle time and last played.

You can see what the page looks like here http://www.clanroyal.dk/adminwatch/index.php
If the last played time is off by a few hours or the command logs go to line 30 and 152 in index.php where it says
PHP Code:
$date->modify("+2 hours"); 
and change +2 hours to what you need.

etc.
PHP Code:
$date->modify("+6 hours");

$date->modify("+1 day");

$date->modify("+2 days"); 
and so on

For setup, just follow the first ppst in this topic

I got this error in my web part what did I do wrong?


Notice: Undefined index: sort in E:\xampp\htdocs\adminstatus\index.php on line 46

Notice: Undefined index: sort in E:\xampp\htdocs\adminstatus\index.php on line 46
__________________
TUSK3N1337 is offline
Send a message via Skype™ to TUSK3N1337
mazdarx8
Veteran Member
Join Date: Aug 2014
Old 08-05-2015 , 08:29   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #118

Database error: Invalid SQL: SELECT * FROM `adminwatch_logs` ORDER BY `id` DESC LIMIT 25MySQL Error: 1146 (Table 'dball.adminwatch_logs' doesn't exist)Session halted.
mazdarx8 is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 08-05-2015 , 13:44   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #119

Quote:
Originally Posted by mazdarx8 View Post
Database error: Invalid SQL: SELECT * FROM `adminwatch_logs` ORDER BY `id` DESC LIMIT 25MySQL Error: 1146 (Table 'dball.adminwatch_logs' doesn't exist)Session halted.
That should have pointed you to the solution already
__________________
micazoid is offline
eLEMONate
New Member
Join Date: Jun 2015
Old 08-13-2015 , 10:31   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #120

Is there any way for me to set this up so all users in the server get timed? I am doing an event where whoever has the most hour on our server (non-idle) they win a knife skin at the end of the month.

So how would I be able to set this for more than just admins?

Thank you
eLEMONate is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode