Jump to content

[BF3] Stats webpage for XpKiller's Stats Logger Plugin 1.0.0.2 (Updated 5-10-2017)


ImportBot

Recommended Posts

Originally Posted by ty_ger07*:

 

The full featured stats webpage!

 

 

BF3 Stats Web Page Overview

 

Screenshots:

 

SS1.jpg

 

SS2.jpg

 

SS3.jpg

 

Demo:

http://www.itapevagamers.com/bf3/index.php

 

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.

 

Prerequisites

 

This webpage code requires the use of a stats database which is created by XpKiller's BF3 Chat, GUID, Stats and Mapstats Logger Plugin* version 1.0.0.2. 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/BF3-Server-Stats

 

 

Installation Steps:

 

Download the following file:

https://github.com/tyger07/BF3-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

You must use a PHP delimiter if you wish to use single quotes within the following fields.

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
For example:

// 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 (such as GoDaddy) 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.

 

Code:

// CLAN NAME
$clan_name		= ''; // your gaming clan or organization name
For example:

// 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/bf3-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/BF3-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/BF3-Serve...commits/master

* Restored post. It could be that the author is no longer active.
Link to comment
  • 3 weeks later...

Originally Posted by ty_ger07*:

 

You do not need to update config.php.

 

Copy and paste the whole thing except for config.php. No problem. It is that easy. If you use the GitHub Windows program to update your code, it automatically updates all the files except for config.php. Or at least is supposed to work that way.

 

By the way, if you use AdKats and the new style elements start appearing funny, reload the page a few times or manually flush your browser cache. The AdKats ban information player highlighting might look funny if your browser is using the cached old sylesheet instead of the new stylesheet. The new stylesheet file is the same as the old one except for adding a couple new style elements.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by BuRockK*:

 

Sure ill post here if i see something broken. By the way whats the size on background images (background picture and the basic color overlay on that picture). I dont have PS on pc to check, edit etc. so im just gonna find one on google.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

It should automatically scale to full width and the height scales in the same ratio as the width. In other words, if your image is half as wide as someone's screen, it will scale width wise by 2 and then the height will automatically scale up by 2 to match the width scale. Choose whichever image you want and try it out.

 

The background gradient in the middle is a separate image which will stay there to keep the background image from overwhelming the text.

* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...

Originally Posted by ty_ger07*:

 

Update posted.

 

Change:

- Performance optimization which wraps two queries into one for both the dog tag collected and dog tag surrendered stats when using AdKats. Performance issue labelled on GitHub as issue #2. Improves performance due to latency. If player had hundreds or thousands of dog tags collected or dog tags surrendered, hundreds or thousands of queries would fire back to back. Now it is all balled up into one query. Could improve performance in some cases by 50% or more in this regard.

* Restored post. It could be that the author is no longer active.
Link to comment
  • 5 weeks later...
  • 3 weeks later...

Originally Posted by ty_ger07*:

 

Code updated. Change:

- Unbanned bot access and made bot access restricted instead. This allows search engines to crawl the stats page and get more clan/community attention while also restricting bot database performance impact to some slower features.

* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...

Originally Posted by ty_ger07*:

 

Code updated! Changes:

- Added warning to scoreboard if a possible server connection issue was detected

- Added simple chat search suggestions which shouldn't have a huge impact on database performance

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Code updated. Changes:

- Reduced the rate at which autocomplete tries to fill in searches

- Added page request throttles. If a user tries to load pages every 1 to 2 seconds, server adds a 1 second delay. If a user tries to load pages every 1 second or less, the server denies the request and gives them an error message and redirect link.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Updated posted. Change:

- Free up the top 142px of the page when scrolling down.

 

Note: you may need to refresh the page a few times to force your browser's cache to update properly to the new stylesheet changes.

 

Example:

http://stats.synergy-clan.com/index.php_p=home&sid=2

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Update posted. Changes:

- When using AdKats and when not a bot: Add ban reason to player page

- When using AdKats and when not a bot: Add ban list page displaying all banned players and ban reasons

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Update posted. Change:

- When using AdKats, the first (default) page of the leaderboard now loads slightly faster and uses less database connections

 

The numbers will be different for everyone depending on your server location and server performance, but, as a matter of comparison, in my testing, the first page of the leaderboard loaded in ~600ms instead of ~800ms. And, of course, reducing the number of queries by 19, is a good thing.

* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 months later...

Originally Posted by ty_ger07*:

 

Update released!

Changes:

- A rare server configuration was reported which chops query strings off

of .PNG extensions. Restructured file names to place the needed

information into the file name instead of using a query string. Old way

still works, but new way is now displayed and recommended.

- 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.

 

As always, the link to the most recent version is in the first post of this thread and is: https://github.com/tyger07/BF3-Serve...zipball/master

* Restored post. It could be that the author is no longer active.
Link to comment
  • 3 weeks later...

Originally Posted by ty_ger07*:

 

Update released.

 

Changes:

- tyger_stats_cache tables are now more robustly indexed to provide better performance

- many re-cache trigger periods dropped from 12 hours to 3 hours in order to display more recent data

 

To apply the new tyger_stats_cache table changes:

1) update to the latest stats webpage code

2) while no one is viewing the stats webpage, drop/delete the 5 database tables which start with "tyger_stats..."

3) view the stats web page to allow it to automatically rebuild those tables using the new table building commands

 

Otherwise, if you only update the stats webpage code and don't delete/rebuild the tyger_stats_cache tables, the stats page will continue working as is (but with the new shorter re-cache trigger period).

* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...
  • 1 year later...

Originally Posted by payver*:

 

Thank you very much ty_ger07,

i have no clue (in the past i only set up apache server, programmed in html with a little bit css) why i have some errors or pictures not loaded (map pictures, banners etc.).

I just uploaded all the contents from the zip to the webserver and i i have no clue from php.

I wanna send you a pm to my website. And i have this error if i search for a player and his playerpage is shown:

 

"Strict Standards: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /homepages/5/d343911648/htdocs/common/player/player.php on line 443

 

Strict Standards: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /homepages/5/d343911648/htdocs/common/player/player.php on line 443

 

Strict Standards: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /homepages/5/d343911648/htdocs/common/player/player.php on line 444

 

Strict Standards: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /homepages/5/d343911648/htdocs/common/player/player.php on line 444"

 

 

Greetings,

payver

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

It is really not appropriate for this stats page code to handle the solution to that error message. The source of that error message is a server configuration issue. Your server's php environment should have the time zone specified in the server's php.ini configuration file.

 

https://stackoverflow.com/questions/...ezone-settings

 

If you need further assistance, I encourage you to contact your web server host.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

I don't know why URLs to stats pages are treated as secrets, but thanks for the PM with the link.

 

Those images are returning 404 errors (file not found). Even the join button ( XXXXXXX.xx/common/images/joinbtn.png ) image returns a 404 error. Interestingly, the background image (in the same folder as joinbtn.png) is one image which loads properly. Why does it work properly but the rest doesn't? Something is wrong with the file structure or the URL translation or something. I don't know your web server nor structure. Assuming that you didn't fail to copy whole folders properly, I would ask your host.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by payver*:

 

For a little privacy for the players on the server, because the chat is also on the homepage. Would be good if i could see the SQL data on a similar way like the homepage from my desktop at home. For example: i download the playerdata table from the SQL server as excel if i have to ban/tban someone with guid.

I will look into the errors, you have done enough for the community.

 

Happy new year, health and good luck to you

* Restored post. It could be that the author is no longer active.
Link to comment

Archived

This topic is now archived and is closed to further replies.



  • Our picks

    • Game Server Hosting:

      We're happy to announce that EZRCON will branch out into the game server provider scene. This is a big step for us so please having patience if something doesn't go right in this area. Now, what makes us different compared to other providers? Well, we're going with the idea of having a scaleable server hosting and providing more control in how you set up your server. For example, in Minecraft, you have the ability to control how many CPU cores you wish your server to have access to, how much RAM you want to use, how much disk space you want to use. This type of control can't be offered in a single service package so you're able to configure a custom package the way you want it.

      You can see all the available games here. Currently, we have the following games available.

      Valheim (From $1.50 USD)


      Rust (From $3.20 USD)


      Minecraft (Basic) (From $4.00 USD)


      Call of Duty 4X (From $7.00 USD)


      OpenTTD (From $4.00 USD)


      Squad (From $9.00 USD)


      Insurgency: Sandstorm (From $6.40 USD)


      Changes to US-East:

      Starting in January 2022, we will be moving to a different provider that has better support, better infrastructure, and better connectivity. We've noticed that the connection/routes to this location are not ideal and it's been hard getting support to correct this. Our contract for our two servers ends in March/April respectively. If you currently have servers in this location you will be migrated over to the new provider. We'll have more details when the time comes closer to January. The new location for this change will be based out of Atlanta, GA. If you have any questions/concerns please open a ticket and we'll do our best to answer them.
      • 5 replies
    • Hello All,

      I wanted to give an update to how EZRCON is doing. As of today we have 56 active customers using the services offered. I'm glad its doing so well and it hasn't been 1 year yet. To those that have services with EZRCON, I hope the service is doing well and if not please let us know so that we can improve it where possible. We've done quite a few changes behind the scenes to improve the performance hopefully. 

      We'll be launching a new location for hosting procon layers in either Los Angeles, USA or Chicago, IL. Still being decided on where the placement should be but these two locations are not set in stone yet. We would like to get feedback on where we should have a new location for hosting the Procon Layers, which you can do by replying to this topic. A poll will be created where people can vote on which location they would like to see.

      We're also looking for some suggestions on what else you would like to see for hosting provider options. So please let us know your thoughts on this matter.
      • 4 replies
    • Added ability to disable the new API check for player country info


      Updated GeoIP database file


      Removed usage sending stats


      Added EZRCON ad banner



      If you are upgrading then you may need to add these two lines to your existing installation in the file procon.cfg. To enable these options just change False to True.

      procon.private.options.UseGeoIpFileOnly False
      procon.private.options.BlockRssFeedNews False



       
      • 2 replies
    • I wanted I let you know that I am starting to build out the foundation for the hosting services that I talked about here. The pricing model I was originally going for wasn't going to be suitable for how I want to build it. So instead I decided to offer each service as it's own product instead of a package deal. In the future, hopefully, I will be able to do this and offer discounts to those that choose it.

      Here is how the pricing is laid out for each service as well as information about each. This is as of 7/12/2020.

      Single MySQL database (up to 30 GB) is $10 USD per month.



      If you go over the 30 GB usage for the database then each additional gigabyte is charged at $0.10 USD each billing cycle. If you're under 30GB you don't need to worry about this.


      Databases are replicated across 3 zones (regions) for redundancy. One (1) on the east coast of the USA, One (1) in Frankfurt, and One (1) in Singapore. Depending on the demand, this would grow to more regions.


      Databases will also be backed up daily and retained for 7 days.




      Procon Layer will be $2 USD per month.


      Each layer will only allow one (1) game server connection. The reason behind this is for performance.


      Each layer will also come with all available plugins installed by default. This is to help facilitate faster deployments and get you up and running quickly.


      Each layer will automatically restart if Procon crashes. 


      Each layer will also automatically restart daily at midnight to make sure it stays in tip-top shape.


      Custom plugins can be installed by submitting a support ticket.




      Battlefield Admin Control Panel (BFACP) will be $5 USD per month


      As I am still working on building version 3 of the software, I will be installing the last version I did. Once I complete version 3 it will automatically be upgraded for you.





      All these services will be managed by me so you don't have to worry about the technical side of things to get up and going.

      If you would like to see how much it would cost for the services, I made a calculator that you can use. It can be found here https://ezrcon.com/calculator.html

       
      • 11 replies
    • I have pushed out a new minor release which updates the geodata pull (flags in the playerlisting). This should be way more accurate now. As always, please let me know if any problems show up.

       
      • 9 replies
×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.