Raised This Month: $32 Target: $400
 8% 

[ANY] adminWatch (v1.2.2)


Post New Thread Reply   
 
Thread Tools Display Modes
peter27
Junior Member
Join Date: Dec 2018
Old 12-27-2018 , 18:37   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #151

L 12/28/2018 - 00:06:11: [SM] [1] Line 171, C:\Users\Pat\Documents\Work\aMity\PawnStudio\ adminwatch.sp::OnPluginStart
L 12/28/2018 - 004:41: [adminwatch.smx] Unable to connect to the database. Error: Configuration "adminwatch" not found
L 12/28/2018 - 004:41: [SM] Exception reported: Invalid database Handle 0 (error: 4)
L 12/28/2018 - 004:41: [SM] Blaming: adminwatch.smx
L 12/28/2018 - 004:41: [SM] Call stack trace:
L 12/28/2018 - 004:41: [SM] [0] SQL_TQuery
L 12/28/2018 - 004:41: [SM] [1] Line 171, C:\Users\Pat\Documents\Work\aMity\PawnStudio\ adminwatch.sp::OnPluginStart


and yes i have installed it right with adminwatch in the database

Last edited by peter27; 12-27-2018 at 18:38.
peter27 is offline
Sarin
Senior Member
Join Date: Nov 2014
Location: Sydney, Australia
Old 12-28-2018 , 23:08   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #152

does it list each admin? There are 2 in database so far..... but.


EDIT: does it show the stats of each admin?

Last edited by Sarin; 12-28-2018 at 23:12.
Sarin is offline
Sarin
Senior Member
Join Date: Nov 2014
Location: Sydney, Australia
Old 01-08-2019 , 01:56   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #153

Also,

Get this error

[06-Jan-2019 19:05:29 Australia/Sydney] PHP Notice: Undefined variable: PRECISION in /home/*****/public_html/adminwatch/index.php on line 21

in index.php
if ($PRECISION == 0)
Sarin is offline
Sarin
Senior Member
Join Date: Nov 2014
Location: Sydney, Australia
Old 01-19-2019 , 16:55   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #154

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

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
YES!!!! That has fixed the issue where it was only showing 1 admin and no time spent. GREAT WORK. THANK YOU!!!!
Sarin is offline
Sarin
Senior Member
Join Date: Nov 2014
Location: Sydney, Australia
Old 02-12-2019 , 02:24   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #155

L 02/12/2019 - 06:480: [SM] Exception reported: Data too long for column 'hostname' at row 1
L 02/12/2019 - 06:480: [SM] Blaming: adminwatch.smx
L 02/12/2019 - 06:480: [SM] Call stack trace:
L 02/12/2019 - 06:480: [SM] [0] SetFailState
L 02/12/2019 - 06:480: [SM] [1] Line 422, C:\Users\Pat\Documents\Work\aMity\PawnStudio\ adminwatch.sp:BNoAction
L 02/12/2019 - 06:482: Error log file session closed.
Sarin is offline
deadflush
Member
Join Date: Mar 2013
Old 04-07-2019 , 22:59   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #156

Quote:
Originally Posted by Sarin View Post
L 02/12/2019 - 06:480: [SM] Exception reported: Data too long for column 'hostname' at row 1
L 02/12/2019 - 06:480: [SM] Blaming: adminwatch.smx
L 02/12/2019 - 06:480: [SM] Call stack trace:
L 02/12/2019 - 06:480: [SM] [0] SetFailState
L 02/12/2019 - 06:480: [SM] [1] Line 422, C:\Users\Pat\Documents\Work\aMity\PawnStudio\ adminwatch.sp:BNoAction
L 02/12/2019 - 06:482: Error log file session closed.

Its telling you your host name is to long for the database fix below


Go to
phpmyadmin

then
adminwatch database

then
Click Structure under adminwatch_logs

then change hostname char here
2 hostname varchar(50) latin1_swedish_ci No None

up it to 80

2 hostname varchar(80) latin1_swedish_ci No None


Hope you understand

Last edited by deadflush; 04-07-2019 at 23:00.
deadflush is offline
Sarin
Senior Member
Join Date: Nov 2014
Location: Sydney, Australia
Old 04-08-2019 , 02:20   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #157

Quote:
Originally Posted by deadflush View Post
Its telling you your host name is to long for the database fix below


Go to
phpmyadmin

then
adminwatch database

then
Click Structure under adminwatch_logs

then change hostname char here
2 hostname varchar(50) latin1_swedish_ci No None

up it to 80

2 hostname varchar(80) latin1_swedish_ci No None


Hope you understand
you are a legend!!!!!!!!!!

Thanks heaps. got it. Great instructions!
Sarin is offline
TrappaTroopa
Senior Member
Join Date: Feb 2016
Old 04-25-2019 , 00:42   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #158

Can someone help me fix the connect function?

Code:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/html/forum/adminwatch/includes/database.include.php:25 
Stack trace: #0 /var/www/html/forum/adminwatch/includes/database.include.php(37): Database->connect() #1 /var/www/html/forum/adminwatch/index.php(28): 
Database->query('SELECT * FROM `...') #2 {main} thrown in /var/www/html/forum/adminwatch/includes/database.include.php on line 25
__________________
My CSGO Community! Come Say Hi! We keep things chill and toxicity is not welcome and dealt with:

http://csgosurfing.com

Last edited by TrappaTroopa; 04-25-2019 at 00:42.
TrappaTroopa is offline
deadflush
Member
Join Date: Mar 2013
Old 04-26-2019 , 17:18   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #159

Quote:
Originally Posted by TrappaTroopa View Post
Can someone help me fix the connect function?

Code:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/html/forum/adminwatch/includes/database.include.php:25 
Stack trace: #0 /var/www/html/forum/adminwatch/includes/database.include.php(37): Database->connect() #1 /var/www/html/forum/adminwatch/index.php(28): 
Database->query('SELECT * FROM `...') #2 {main} thrown in /var/www/html/forum/adminwatch/includes/database.include.php on line 25
Seems you may not have your database login info correct?

Mine works just fine and i don't get this error.

Check these are right.

Code:
	var $Host     = "";        // Hostname of our MySQL server.
	var $Database = "";         		// Logical database name on that server.
	var $User     = "";             	// User and Password for login.
	var $Password = "";
deadflush is offline
alphaearth
Senior Member
Join Date: Feb 2018
Location: Turkey
Old 05-25-2019 , 10:56   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #160

L 05/25/2019 - 14:51:54: SourceMod error session started
L 05/25/2019 - 14:51:54: Info (map "de_dust2") (file "errors_20190525.log")
L 05/25/2019 - 14:51:54: [adminwatch.smx] Unable to connect to the database. Error: [2013]: Lost connection to MySQL server at 'reading initial communication packet', system error: 113
L 05/25/2019 - 14:51:54: [SM] Exception reported: Invalid database Handle 0 (error: 4)
L 05/25/2019 - 14:51:54: [SM] Blaming: adminwatch.smx
L 05/25/2019 - 14:51:54: [SM] Call stack trace:
L 05/25/2019 - 14:51:54: [SM] [0] SQL_TQuery
L 05/25/2019 - 14:51:54: [SM] [1] Line 162, /home/forums/content/files/4/0/1/7/5/145346.attach::OnPluginStart
L 05/25/2019 - 14:51:54: [SM] Unable to load plugin "adminwatch.smx": Error detected in plugin startup (see error logs)
__________________
alphaearth is offline
Reply


Thread Tools
Display Modes

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 01:36.


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