Raised This Month: $ Target: $400
 0% 

[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-08-2017 , 12:39   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #131

Quote:
Originally Posted by charmechulo View Post
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:
Code:
http://steamcommunity.com/profiles/76561198181464163.0000000000
and it should be :
Code:
http://steamcommunity.com/profiles/76561198181464163
You know why?
charmechulo is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 10-08-2017 , 13:16   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #132

Quote:
Originally Posted by charmechulo View Post
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?
weird.
Also the 'bcscale()' value on your server is not on default.
I will push a fix for people like you later. (edit: pushed)

until then you can add this to the top of index.php
PHP Code:
<?php
bcscale
(0);
?>
__________________
coding & free software

Last edited by shanapu; 10-09-2017 at 09:38.
shanapu is offline
MAMAC
AlliedModders Donor
Join Date: Nov 2011
Location: Space
Old 10-08-2017 , 16:47   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #133

Also i propose a multi servers stats, only add more databases for every server by ip and more same pages for every database
MAMAC is offline
Send a message via MSN to MAMAC Send a message via Yahoo to MAMAC
charmechulo
Junior Member
Join Date: Aug 2017
Old 10-09-2017 , 07:09   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #134

Quote:
Originally Posted by shanapu View Post
weird.
Also the 'bcscale()' value on your server is not on default.
I will push a fix for people like you later.

until then you can add this to the top of index.php
PHP Code:
<?php
bcscale
(0);
?>
Thank you! its working fine now!
charmechulo is offline
lilpetri
Member
Join Date: Nov 2016
Location: The Netherlands
Old 10-13-2017 , 12:12   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #135

Any ideas on how to transfer stamm hours to this?
lilpetri is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 10-14-2017 , 14:33   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #136

Quote:
Originally Posted by lilpetri View Post
Any ideas on how to transfer stamm hours to this?
You can either copy-paste every user one by one manually.

Or you could create a script that could convert the database from the one format to the other.

That's pretty much the two options you have.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 10-14-2017 , 18:31   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #137

Quote:
Originally Posted by lilpetri View Post
Any ideas on how to transfer stamm hours to this?
this seems bad for me.
Stamm saves (depending on configuration) playtime & kills as one value, also a stamm happy hour could falsify the data.

MostActive distinguishes the playtime between CT, T & Spec. Stamm doesn't have this division.
So how should the stamm points transferred to CT, T & Spec?

As DarkDevil noticed, you can use a script (as a sourcemod plugin, a php site or do a SQL query) to copy the data. But I think this is seemless.
__________________
coding & free software
shanapu is offline
SilentBr
Veteran Member
Join Date: Jan 2009
Old 10-28-2017 , 15:57   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #138

I have to say that this plugin was everything that I needed to do an event in my community. We are using and it is working fine. Thank you very much.

I would like to suggest to add a game check for l4d2 and tf2 servers to rename teams. ( I do think playing as ghost counts spectate time)

This time I am using local database but December I'm planning to use web interface.

One question: is it possible use same database for multiple servers? I mean, I have 2 l4d2 servers and 4 tf2 servers, I want all l4d2 time played added between l4d2 servers etc...
SilentBr is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 11-01-2017 , 09:51   Re: [ANY] Most Active (play time rank system) with webpanel included
Reply With Quote #139

Hi shanpu the web site does not work for me
could you help me?

The data is being saved fine



but i get Couldn't find any Results

http://www.blackmarke7.com/active/index.php

config.php

PHP Code:
<?php 
// Basic Settings -----------------------------------------------------------


// Set your site title
$siteTitle "MyPanel";

// Set your site logo - "" blank for no background image
$siteLogo "img/csgo.jpg";

// Set your background image - "" blank for no background image
$background "img/background.jpg"

// Users per page
$usersPerPage "25";

// Minimum total time a players needs to get in list
$mostactive_minSec "300";


// Set bootstrap theme - remove // infront of a theme and add // to remove old

         
$stylesheet "css/bootsteam.css"// https://github.com/StrutTower/bootsteam-theme

//         $stylesheet = "css/bootstrap.css"; // http://getbootstrap.com/
//         $stylesheet = "css/superhero.css"; // https://bootswatch.com/superhero/#tables
//         $stylesheet = "css/cosmo.css"; // https://bootswatch.com/cosmo/#tables
//         $stylesheet = "css/cerulean.css"; // https://bootswatch.com/cerulean/#tables
//         $stylesheet = "css/sandstone.css"; // https://bootswatch.com/sandstone/#tables
//         $stylesheet = "css/united.css"; // https://bootswatch.com/united/#tables
//         $stylesheet = "css/cyborg.css"; // https://bootswatch.com/cyborg/#tables
//         $stylesheet = "css/darkly.css"; // https://bootswatch.com/darkly/#tables
//         $stylesheet = "css/flatly.css"; // https://bootswatch.com/flatly/#tables
//         $stylesheet = "css/slate.css"; // https://bootswatch.com/slate/#tables
//         $stylesheet = "css/solar.css"; // https://bootswatch.com/solar/#tables


//Time Format
$time_format = array('Days''Hrs''Min''Sec');


// MySQL Settings ------------------------------------------------------------------


// DB hostname
$mostactive_dbHost "localhost";

// DB username
$mostactive_dbUser "xxx";

// DB password
$mostactive_dbPass "xxx";

// DB name
$mostactive_dbName "csgo_stats";


// End Of Settings ----------------------------------------------------------------
?>
added
PHP Code:
<?php 
ini_set
('display_errors'1); 
ini_set('display_startup_errors'1); 
error_reporting(E_ALL); 
?>
to the top of index.php but no error was reported


--------------------- edit ------------------------
sorry got it to work
didn't notice the
PHP Code:
// Minimum total time a players needs to get in list
$mostactive_minSec "300"
__________________

Last edited by 8guawong; 11-01-2017 at 10:26.
8guawong is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 11-01-2017 , 23:06   Re: [ANY] Most Active (play time rank system) Finally a stable version!
Reply With Quote #140

Quote:
Originally Posted by shanapu View Post
Most Active WebPanel

Demo

Download: https://github.com/Franc1sco/MostActive

Requirement: webspace with mysql & php5.3+/php7 with php extention 'BCMath'

Install: move content of webserver/ folder to your webspace. Edit inc/config.php.
Spoiler


Credits: popoklopsi, Franc1sco, the sourcemod & bootstrap dev teams

Preinstalled bootstrap bootswatch themes:
Hello shapnu

name show as ???? if playername is in chinese

http://www.blackmarke7.com/active



------------- edit ---------------------

i fixed it

change function.php
PHP Code:
    function __construct($host$user$pass$dbName)
    {
        
// Connect to MySQL
        
$this->db mysqli_connect($host$user$pass$dbName);
        if (!
$this->db) {
            die(
"Couldn't make connection.");
        }
    } 
to
PHP Code:
    function __construct($host$user$pass$dbName)
    {
        
// Connect to MySQL
        
$this->db mysqli_connect($host$user$pass$dbName);
        if (!
$this->db) {
            die(
"Couldn't make connection.");
        }
        
mysqli_set_charset($this->db"utf8");
    } 
__________________

Last edited by 8guawong; 11-01-2017 at 23:52.
8guawong 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 04:25.


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