Page 1 of 159 1231151101 ... LastLast
Results 1 to 10 of 1590
  1. #1
    Community Contributor
    Join Date
    Nov 2011
    Posts
    2,980

    Cool [BF4] Stats webpage for XpKiller's Stats Logger Plugin (Updated 11-6-2017)

    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

    http://64.94.101.150/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
    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/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/master
    Last edited by ty_ger07; 07-11-2017 at 00:21.

  2. #2
    Community Contributor
    Join Date
    Nov 2011
    Posts
    2,980
    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.

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

  4. #4
    Community Contributor
    Join Date
    Nov 2011
    Posts
    2,980
    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?

  5. #5
    How do I add this to my website with Enjin?? I don't have access to files

  6. #6
    Community Contributor
    Join Date
    Nov 2011
    Posts
    2,980
    Quote Originally Posted by Pvtjohntowle View Post
    How do I add this to my website with Enjin?? I don't have access to files
    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.

  7. #7
    Community Contributor
    Join Date
    Nov 2011
    Posts
    2,980
    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)

  8. #8
    Quote Originally Posted by ty_ger07 View Post
    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.
    I can create links on my website OK

    Can you help me with this ?

    What do I need to give you?

    That would be fantastic !!!

    OK I have created an account there on that community website , now what do I need to do?

    I am on TS bf4banditos.enjinvoice.com
    Last edited by Pvtjohntowle; 21-11-2013 at 02:04.

  9. #9
    Community Contributor
    Join Date
    Nov 2011
    Posts
    2,980
    Quote Originally Posted by Pvtjohntowle View Post
    I can create links on my website OK

    Can you help me with this ?

    What do I need to give you?

    That would be fantastic !!!

    OK I have created an account there on that community website , now what do I need to do?

    I am on TS bf4banditos.enjinvoice.com
    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
    ...
    Lastly, you would have to edit all the links in the code

    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.

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

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •