Version dated: 05/10/2017
BF3 Server Stats Webpage Overview
This web page code requires the use of a stats database which is created by XpKiller's Procon "BF3 Chat, GUID, Stats and Mapstats Logger" Plugin. If you need help setting up and using XpKiller's Stats Logger plugin, you must seek assistance in XpKiller's plugin thread: https://forum.myrcon.com/showthread.php?6698
For best compatibility with this webstats page, use the following settings in XpKiller's Procon logging plugin:
"Enable Statslogging?" : Yes
"Enable Weaponstats?" : Yes
"Enable Livescoreboard in DB?" : Yes
"tableSuffix" : None
"MapStats ON?" : Yes
"Session ON?" : Yes
"Save Sessiondata to DB?" : Yes
"Log playerdata only (no playerstats)?" : No
This webpage code requires that you have access to an Apache web server running a modern version of php and requires that you have read and write permission to add and modify files and directories on that web server.
Help and Support
For help with this web stats page code, visit the following forum thread: https://forum.myrcon.com/showthread.php?15754
1) Download the following file: https://github.com/tyger07/BF3-Server-Stats/zipball/master
2) Extract the files. (maintain the original folder structure)
3) Fill in the required parameters in ./config/config.php. For help with properly modifying the config.php file, see additional instructions further down in this readme file.
Note: You may not include single quotation marks (') in the config.php fields without also using an appropriate php delimiter. For instance, you may not call your clan 'Ty_ger07's Clan' as it would cause a php compilation error.
Using an appropriate php delimiter, when required, would cause it to work properly. For example:
$clan_name = 'Ty_ger07\'s Clan';
4) Upload the entire contents to your php-enabled web server and enjoy!
You must fill in the following information in config.php which is in the config folder.
1) Input your stats database host, stats database user name, stats database password, and stats database name.
// 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
Note: Some web server providers use the same value for database name and database user name.
2) Input your clan name as you would like it to appear in the stats pages.
$clan_name = 'MyClan'; // your gaming clan or organization name
3) Input your desired banner image URL if you want one other than the default banner image to be displayed.
$banner_image = './images/bf3-logo.png'; // your desired page banner
4) Enter the URL which you would like users to redirect to when they click your banner image.
$banner_url = 'http://tyger07.github.io/BF3-Server-Stats/'; // where clicking the banner will take you
A .sql file is included in the ./test-database/ folder for users to set up a dummy test database to test this web page when they otherwise have not yet set up a server or have not yet got XpKiller's Stats Logger plugin and database working.
Refer to commmit history on GitHub: https://github.com/tyger07/BF3-Server-Stats/commits/master