Results 1 to 10 of 1641
-
20-11-2013, 21:54 #1
- Join Date
- Nov 2011
- Posts
- 3,054
[BF4] Stats webpage for XpKiller's Stats Logger Plugin
The full featured stats webpage!
BF4 Stats Web Page Overview
web_stats_index.jpg
web_stats_demo.jpg
web_stats_banner.jpg
Features:
- Easy setup.
- Individual server or combined server stats.
- Country stats.
- Map stats.
- Player stats.
- Weapon stats.
- Dog tag stats.
- Game server stats.
- Live scoreboard.
- Top players list / leaderboard.
- Player name search.
- Top players of the Week.
- Suspicious players search.
- Server chat log.
- Stats signature images.
- Gametracker-style server banners.
- Battlelog theme.
Demo
https://egc-la.evga.com/battlefield/index.php
Prerequisites
This webpage code requires the use of a stats database which is created by XpKiller's BF4 Chat, GUID, Stats and Mapstats Logger Plugin version 1.0.0.2 or newer. If you need help with XpKiller's stats logging plugin, you must seek assistance in XpKiller's thread.
For best compatibility with this code, use the following settings in XpKiller's PRoCon logging plugin:
"Enable Statslogging?" : Yes
"Enable Weaponstats?" : Yes
"Enable Livescoreboard in DB?" : Yes
"tableSuffix" : None (empty)
"MapStats ON?" : Yes
"Session ON?" : Yes
"Save Sessiondata to DB?" : Yes
"Log playerdata only (no playerstats)?" : No
This webpage code also requires that you have access to a web server running a modern version of PHP and that you have permission to modify files on the web server.
Additional Info
GitHub:
http://tyger07.github.io/BF4-Server-Stats
Installation Steps:
Download the following file:
https://github.com/tyger07/BF4-Serve...zipball/master
Extract the files.
You may change the appearance of the page by modifying the stats.css file in the common folder.
Fill in the required parameters before using this code. You must place the necessary data between the the following single quotation marks ('').
Note: You may not include single quotation marks (') in the following fields. For instance, you may not call your clan 'Ty_ger07's Clan' as it will create a PHP compilation error.
For example, this would not work:
// CLAN NAME
$clan_name = 'Ty_ger07's Clan'; // your gaming clan or organization name
For example, this would work:
// CLAN NAME
$clan_name = 'Ty_ger07\'s Clan'; // your gaming clan or organization name
You must fill in the following information in the config.php file found in the config folder
1) Input your stats database host, stats database user name, stats database password, and stats database name.
Code:// DATABASE INFORMATION DEFINE('HOST', ''); // database host address DEFINE('PORT', '3306'); // database port - default is 3306 DEFINE('NAME', ''); // database name DEFINE('USER', ''); // database user name - sometimes the same as the database name DEFINE('PASS', ''); // database password
// DATABASE INFORMATION
DEFINE('HOST', '100.200.300.400'); // database host address
DEFINE('PORT', '3306'); // database port - default is 3306
DEFINE('NAME', 'database'); // database name
DEFINE('USER', 'user'); // database user name - sometimes the same as the database name
DEFINE('PASS', 'pass'); // database password
2) Input your clan name as you would like it to appear in the stats pages.
Code:// CLAN NAME $clan_name = ''; // your gaming clan or organization name
// CLAN NAME
$clan_name = 'MyClan'; // your gaming clan or organization name
3) Input your desired banner image URL if you want one other than the default to be displayed.
Code:// PAGE BANNER $banner_image = './images/bf4-logo.png'; // your desired page banner
4) Enter the URL which you would like users to redirect to if they click your banner image.
Code:// BANNER LINK $banner_url = 'http://tyger07.github.io/BF4-Server-Stats/'; // where clicking the banner will take you
Enjoy!
(if you want to donate, ask me how)
Changelog:
Refer to: https://github.com/tyger07/BF4-Serve...commits/masterLast edited by ty_ger07; 25-07-2018 at 09:41.
-
20-11-2013, 22:01 #2
- Join Date
- Nov 2011
- Posts
- 3,054
Some time I will add more statistics columns such as deaths, suicides, smoke launcher kills, etc., and make the top 25 players list able to be ordered by score or kills or deaths or suicides, etc.
I might even move away from the super simple fast design to a more complex and visually appealing style with more images instead of just a bunch of text.
-
20-11-2013, 23:27 #3
Thanks a bunch, have updated.
Also added a Join Server Button to the index.
http://jw.servegame.org/bf4stats/index.php
Could you post how to get the Current Map for the index, I can't quite work it out, and I wanted to add that so we can do 4x columns and 2 rows neatly.
-
20-11-2013, 23:34 #4
- Join Date
- Nov 2011
- Posts
- 3,054
Yep, yep, yep. Good idea! I will update soon. I want to play a little BF4 though first since it has been a couple weeks since I played.
Any other suggestions?
-
20-11-2013, 23:46 #5
- Join Date
- Oct 2013
- Posts
- 102
How do I add this to my website with Enjin?? I don't have access to files
-
20-11-2013, 23:58 #6
- Join Date
- Nov 2011
- Posts
- 3,054
You need access to files. I could host it on my web space, but you would still need enough access on your website to create a page link.
Last edited by ty_ger07; 21-11-2013 at 00:48.
-
21-11-2013, 00:48 #7
- Join Date
- Nov 2011
- Posts
- 3,054
You could host your page here for instance:
http://open-web-community.com/index....table=projects
(the purpose of my website is to host PHP files for free)
-
21-11-2013, 01:56 #8
- Join Date
- Oct 2013
- Posts
- 102
Last edited by Pvtjohntowle; 21-11-2013 at 02:04.
-
21-11-2013, 02:20 #9
- Join Date
- Nov 2011
- Posts
- 3,054
Since my website uses different formatting and syntax, the code is slightly different.
Here is the code:
http://open-web-community.com/index....php&t=projects
You would just copy and paste that code into your own file which you create at this page:
http://open-web-community.com/index....e=site-content
You would want to save the file without read permission so that users can't see your database connection info.
And of course you would have to modify the database connection info.
(this stuff):
// DATABASE INFORMATION
$db_host = ''; // database host
$db_port = ''; // database port. default is 3306
$db_name = ''; // database name
$db_uname = ''; // database user name
$db_pass = ''; // database password
...
From this (in bold):
http://open-web-community.com/index.php?source=serverstats.php&table=projects
To whatever name you call your file.Last edited by ty_ger07; 21-11-2013 at 15:23.
-
21-11-2013, 08:31 #10
new Index looks great.
http://jw.servegame.org/bf4stats/index.php
Would it be possible to add an Totals Block to the Index, under the servers. As in total scores across all servers.
Our servers as setup in groups of 1 if that helps, as in Server1 is in ServerGroup1, Server 2 is in ServerGroup2 and so on.