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

[ANY] Most Active (play time rank system) webpanel included [Updated 3-Jan-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
charmechulo
Junior Member
Join Date: Aug 2017
Old 10-07-2017 , 17:15   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #121

Hi! Thank you for the work!

Can i have some help please?

I have put the files in the game...they are saving data to database, ok!

I have put the files in the webserver, and the connection to dabatase was ok, i think...!

The problem is that is not showing the players!
like in the print: https://image.prntscr.com/image/T8ME...3p4ecqp93w.png

The site is reading how many players are in database but not listing it!

EDIT: PHP version is 7

Can you help me?
Thank you

Last edited by charmechulo; 10-07-2017 at 17:17. Reason: PHP version
charmechulo is offline
Notifications
AlliedModders Donor
Join Date: Oct 2015
Old 10-08-2017 , 00:41   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #122

Quote:
Originally Posted by charmechulo View Post
Hi! Thank you for the work!

Can i have some help please?

I have put the files in the game...they are saving data to database, ok!

I have put the files in the webserver, and the connection to dabatase was ok, i think...!

The problem is that is not showing the players!
like in the print: https://image.prntscr.com/image/T8ME...3p4ecqp93w.png

The site is reading how many players are in database but not listing it!

EDIT: PHP version is 7

Can you help me?
Thank you
Check your errorlog in game and it will let you know if it's having issues with the DB. Also, in your logs there should be a file named something along the lines of mostactive_0.log, check it has user info like:
Code:
L 10/08/2017 - 05:01:34: Query CREATE TABLE IF NOT EXISTS `mostactive` (`playername` varchar(128) NOT NULL, `steamid` varchar(32) PRIMARY KEY NOT NULL,`last_accountuse` int(64) NOT NULL, `timeCT` INT( 16 ), `timeTT` INT( 16 ),`timeSPE` INT( 16 ), `total` INT( 16 ))
L 10/08/2017 - 05:01:34: Query DELETE FROM `mostactive` WHERE `last_accountuse`<'1505188894' AND `last_accountuse`>'0';
L 10/08/2017 - 05:01:39: Query SELECT timeCT, timeTT, timeSPE FROM mostactive WHERE steamid = 'STEAM_1:0:119623883'
L 10/08/2017 - 05:01:39: Query INSERT INTO mostactive(playername, steamid, last_accountuse, timeCT, timeTT, timeSPE, total) VALUES('rush ^', 'STEAM_1:0:119623883', '1507435299', '0', '0', '0', '0');

Last edited by Notifications; 10-08-2017 at 00:45.
Notifications is offline
charmechulo
Junior Member
Join Date: Aug 2017
Old 10-08-2017 , 06:27   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #123

Hi!

yes it has:
Code:
10/07/2017 - 20:48:39: Query CREATE TABLE IF NOT EXISTS `mostactive` (`playername` varchar(128) NOT NULL, `steamid` varchar(32) PRIMARY KEY NOT NULL,`last_accountuse` int(64) NOT NULL, `timeCT` INT( 16 ), `timeTT` INT( 16 ),`timeSPE` INT( 16 ), `total` INT( 16 ))
L 10/07/2017 - 20:48:39: Query DELETE FROM `mostactive` WHERE `last_accountuse`<'1505177319' AND `last_accountuse`>'0';
L 10/07/2017 - 20:50:31: Query SELECT timeCT, timeTT, timeSPE FROM mostactive WHERE steamid = 'STEAM_1:1:110599217'
L 10/07/2017 - 20:50:44: Query UPDATE mostactive SET last_accountuse = 1507423844, playername = 'Chul0^ @AzoresMadeira.pt',timeCT = '2626',timeTT = '652', timeSPE = '737',total = '4015' WHERE steamid = 'STEAM_1:1:110599217';
The connection to database is ok! and data being saved in database from the game

As we can see in the image, the players are being save in the database with no problem!


But when listing in the website they just dont show!


TEST: With a empty database the footer shows up! with a database the footer desapears!
https://image.prntscr.com/image/BfkF...IZk3i0Sz0A.png

Last edited by charmechulo; 10-08-2017 at 08:57.
charmechulo is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 10-08-2017 , 10:05   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #124

Quote:
Originally Posted by charmechulo View Post
...
The problem is that is not showing the players!
like in the print: https://image.prntscr.com/image/T8ME...3p4ecqp93w.png

...
This screenshot looks like an php error.

Please post your php error log from webspace.

Or put this snipped to the top of index.php, reload site and report back the error message.
PHP Code:
<?php
ini_set
('display_errors'1);
ini_set('display_startup_errors'1);
error_reporting(E_ALL);
?>
__________________
coding & free software
shanapu is offline
charmechulo
Junior Member
Join Date: Aug 2017
Old 10-08-2017 , 11:10   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #125

hi shanapu,
this is what i get

charmechulo is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 10-08-2017 , 11:54   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #126

Quote:
Originally Posted by charmechulo View Post
hi shanapu,
this is what i get

nope

PHP Code:
<?php 
ini_set
('display_errors'1); 
ini_set('display_startup_errors'1); 
error_reporting(E_ALL); 
?>

<?php
// *************************************************************************
//  This file is part of MostActive sourcemod plugin.
//
//  Copyright (C) 2017 MostActive Dev Team 
//  https://github.com/Franc1sco/MostActive/graphs/contributors
//

...
https://gist.github.com/shanapu/2743...02b32d94ca818f
__________________
coding & free software

Last edited by shanapu; 10-08-2017 at 11:56.
shanapu is offline
charmechulo
Junior Member
Join Date: Aug 2017
Old 10-08-2017 , 11:58   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #127

oh sorry...
here it is:
charmechulo is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 10-08-2017 , 12:12   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #128

The php extention 'BC Math' is not enabled/installed on your webserver.

Please search a tutorial for yourself according to your operating system.
__________________
coding & free software
shanapu is offline
charmechulo
Junior Member
Join Date: Aug 2017
Old 10-08-2017 , 12:18   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #129

OMGG!! Thank you!!!!!

2 easy steps!


charmechulo is offline
charmechulo
Junior Member
Join Date: Aug 2017
Old 10-08-2017 , 12:39   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #130

There is still one minor bug....


When i click the player name to go the steam page, it is adding .0000000000 in from of the link like this:
http://steamcommunity.com/profiles/7...163.0000000000
and it should be : http://steamcommunity.com/profiles/76561198181464163

You know why?

Last edited by charmechulo; 10-08-2017 at 12:39.
charmechulo 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 02:21.


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