Jump to content

[BF4] Stats webpage for XpKiller's Stats Logger Plugin


tyger07

Recommended Posts

  • 4 weeks later...
  • Replies 1.7k
  • Created
  • Last Reply

Originally Posted by Armymech*:

 

Thanks for the help ty_ger07,

 

I had an issue that was giving me an error. I had placed my web address into the host spot. Seeing as how my database and website are together Ty_ger instructed me to remove the website as the host and replace it with localhost. I did as instructed and all works well now. thanks a ton Ty_ger.

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

Originally Posted by ty_ger07*:

 

I am working on creating more optimizations, speed improvements, bug fixes, and adding some more features to the BF3 and BF4 stats webpages. One of the things I am working on is adding AdKats player ban status highlighting to all places where a player name is listed.

 

Optimizing and consolidating is getting out of control. Lol.

Code:

// is adkats information available_
if($adkats_available)
{
	$Messages_q = @mysqli_query($BF3stats,"
		SELECT cl.`logDate`, cl.`logSoldierName`, TRIM(cl.`logMessage`) AS Message, cl.`logSubset`, sub.`PlayerID`, sub.`ban_status`
		FROM `tbl_chatlog` cl
		LEFT JOIN
		(
			SELECT tpd.`PlayerID`, adk.`ban_status`, tpd.`SoldierName`
			FROM `tbl_playerdata` tpd
			INNER JOIN `tbl_server_player` tsp ON tsp.`PlayerID` = tpd.`PlayerID`
			INNER JOIN `tbl_playerstats` tps ON tps.`StatsID` = tsp.`StatsID`
			LEFT JOIN `adkats_bans` adk ON adk.`player_id` = tpd.`PlayerID`
			WHERE tpd.`GameID` = {$GameID}
			AND tsp.`ServerID` = {$ServerID}
		) sub ON sub.`SoldierName` = cl.`logSoldierName`
		WHERE cl.`ServerID` = {$ServerID}
		AND (cl.`logMessage` LIKE '%{$query}%'
		OR cl.`logSoldierName` LIKE '%{$query}%')
		ORDER BY {$rank} {$order}, `logDate` DESC
		LIMIT {$offset}, {$rowsperpage}
	");
}
else
{
	$Messages_q = @mysqli_query($BF3stats,"
		SELECT cl.`logDate`, cl.`logSoldierName`, TRIM(cl.`logMessage`) AS Message, cl.`logSubset`, sub.`PlayerID`
		FROM `tbl_chatlog` cl
		LEFT JOIN
		(
			SELECT tpd.`PlayerID`, tpd.`SoldierName`
			FROM `tbl_playerdata` tpd
			INNER JOIN `tbl_server_player` tsp ON tsp.`PlayerID` = tpd.`PlayerID`
			INNER JOIN `tbl_playerstats` tps ON tps.`StatsID` = tsp.`StatsID`
			WHERE tpd.`GameID` = {$GameID}
			AND tsp.`ServerID` = {$ServerID}
		) sub ON sub.`SoldierName` = cl.`logSoldierName`
		WHERE cl.`ServerID` = {$ServerID}
		AND (cl.`logMessage` LIKE '%{$query}%'
		OR cl.`logSoldierName` LIKE '%{$query}%')
		ORDER BY {$rank} {$order}, `logDate` DESC
		LIMIT {$offset}, {$rowsperpage}
	");
}
A query with a LEFT JOINed sub-query which contains two INNER JOINs and an additional LEFT JOIN. Lol. Tickles me. What would that Venn diagram look like?
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...

Originally Posted by )RAG()N*:

 

looks interesting ty_ger07.

 

I have ran into a problem with my site, a few days ago my site was website suspended for a couple days and now it buck up and running when I go to the stats page all I get is the background pic, no stats or any writing at all the the page.

The plugin for the server is running find I have double checked the config file and it all looks find.

 

I also tried uploading a fresh copy of the site and it still done the same thing. any ideas ?

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

Originally Posted by ty_ger07*:

 

Sorry, I have no idea. I have to assume that there must be a web server issue with your PHP configuration. Are other php webpages working fine? Did the PHP version get downgraded or updated during the process?

If PHP was functioning properly and if there were a problem encountered with my stats page, it should always at least display some sort of error message.

 

If you create a PHP file on your webserver called test.php and type this in the file, what do you see when you open it in your browser?

Code:

<_php
phpinfo();
_>
A bunch of php information? A blank page? An error message?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

For information only....

 

I am working on creating more optimizations, speed improvements, bug fixes, and adding some more features to the BF3 and BF4 stats webpages. One of the things I am working on is adding AdKats player ban status highlighting to all places where a player name is listed.

 

...

On 11-26-2016, I posted this update to the BF3 stats page code:

Updated posted.

 

Changes:

- Added basic AdKats integration to highlight a player if they are banned or warned.

- Optimizations and improvements.

Sorry, but those above optimizations, improvements, and added features are not yet rolled over into this BF4 stats page. The BF3 and BF4 stats pages are essentially identical in many ways, but different in other ways and I don't want to accidentally break stuff by being in a hurry and merely copying and pasting code between the two. It will take me some time (when I have time) to carefully bring the above changes into this BF4 stats page.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by )RAG()N*:

 

Sorry, I have no idea. I have to assume that there must be a web server issue with your PHP configuration. Are other php webpages working fine? Did the PHP version get downgraded or updated during the process?

If PHP was functioning properly and if there were a problem encountered with my stats page, it should always at least display some sort of error message.

 

If you create a PHP file on your webserver called test.php and type this in the file, what do you see when you open it in your browser?

Code:

<_php
phpinfo();
_>
A bunch of php information? A blank page? An error message?
I'm getting a bunch of info starting with "PHP Version 5.6.24"
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by GR101*:

 

Currently using version: 8-29-2016

 

Getting the following error message on main page:-

 

Warning: Missing argument 5 for session_count(), called in /home/content/13/8915213/html/.com/bf4stats/index.php on line 307 and defined in /home/content/13/8915213/html/.com/bf4stats/common/functions.php on line 1450

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

Originally Posted by ty_ger07*:

 

Currently using version: 8-29-2016

 

Getting the following error message on main page:-

 

Warning: Missing argument 5 for session_count(), called in /home/content/13/8915213/html/.com/bf4stats/index.php on line 307 and defined in /home/content/13/8915213/html/.com/bf4stats/common/functions.php on line 1450

Ok?

Code:

$ses = session_count($userip,$ServerID,$valid_ids,$GameID,$BF4stats);
Code:
function session_count($userip, $ServerID, $valid_ids, $GameID, $BF4stats)
They both have the same 5 arguments. I don't see one missing. I don't understand.

 

It looks like you are using index.php version 8-29-16 but using ./common/functions.php version 8-28-16 or older.

 

Make sure that all your files are updated to the same version.

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

Originally Posted by ty_ger07*:

 

I think I might of found the problem but have no idea on how to fix it.

 

For some reason my host does not have mysqli enabled.

That is possible.

 

The mysqli extension is the improved and preferred version of the mysql extension. The mysqli extension became completely standard by php version 5.3.0. I would ask your server host why they aren't staying up to date. Yiu have php version 5.6.24; why would they disable or not include the mysqli extension?

 

You could edit the code to use the mysql extension instead of the mysqli extension.

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

Originally Posted by thunderje*:

 

hi guys

can anyone help with this error I'm getting

 

Unable to access stats database. Please notify this website's administrator.

If you are the administrator, please seek assistance here.

Error: php_network_getaddresses: getaddrinfo failed: Name or service not known

 

Attached Files:

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

Originally Posted by ty_ger07*:

 

I believe that error means that you provided the wrong URL as your database host in config.php.

 

What did you enter as "host" in the following area?

Code:

DEFINE('HOST', '');
It should be something like:

Code:

DEFINE('HOST', 'localhost');
or

 

Code:

DEFINE('HOST', '192.168.1.1');
It should NOT be something like:

 

Code:

DEFINE('HOST', 'my gaming provider');
or

 

Code:

DEFINE('i3d', 'my gaming provider');
or anything like that.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by GR101*:

 

Ok?

Code:

$ses = session_count($userip,$ServerID,$valid_ids,$GameID,$BF4stats);
Code:
function session_count($userip, $ServerID, $valid_ids, $GameID, $BF4stats)
They both have the same 5 arguments. I don't see one missing. I don't understand.

 

It looks like you are using index.php version 8-29-16 but using ./common/functions.php version 8-28-16 or older.

 

Make sure that all your files are updated to the same version.

Season's Greetings.

 

I fixed it by deleting destination files and uploading latest files. Thanks for the support.

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

Originally Posted by ty_ger07*:

 

hi TY

i entered ogv.site.nfoservers.com for host

That is definitely not correct.

 

I entered ogv.site.nfoservers.com into my browser and that is your stats website address. You are creating a network loop from the web server, out to the world wide web, to the DNS agent, and back to itself? Try 'localhost' instead, or ask nfo servers what your database address is, or figure out the database address based on the database address displayed in phpmyadmin.

 

The below attachment is an example of how to figure out the database address by using phpmyadmin.

 

db.jpg

 

In example above, the correct host address to enter would be '50.63.226.53'; entered as:

Code:

DEFINE('HOST', '50.63.226.53');
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

all is good now ty_ger07

one other question, how can I change the background on the main page, thank you for the help

The image is located at:

http://ogv.site.nfoservers.com/commo...es/BF4back.jpg

 

Replace that image with whichever image you desire.

 

Additionally, you have more control over the appearance by modifying the stylesheet.

http://ogv.site.nfoservers.com/common/stats.css

 

For example, this section:

Code:

/* body and background */
body{
	margin: 0px 0px 0px 0px;
	padding: 0;
	text-align: left;
	height: 100%;
	width: 100%;
	background: #4d5d5d;
	background-image: url("./images/BF4back.jpg");
	background-position: center 142px;
	background-repeat: no-repeat;
	background-attachment: fixed;
	font-family: Arial, Arial, Arial, sans-serif;
	font-size: 14px;
	font-weight: normal;
	color: #BBBBBB;
}
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

all is good now ty_ger07

one other question, how can I change the background on the main page, thank you for the help

Umm.... down towards the bottom of your webpage:

 

[ ] [ ]

Ok? Is there a reason why you like to use people's hours or years of work for free and not give them the credit they deserve?

 

Get lost!

 

Your site is unusable due to your poor editing and poor choices. It is unreadable and has a 404 error.

 

Compare:

useless.jpgopacity.jpg

 

Maybe you would rather force your clan members' names in your visitors' faces instead of giving your visitors a webpage they can actually read and use.

 

Have a good day. Don't bother posting or responding here any more. You can try; in such a case, maybe someone else will help.

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

Originally Posted by Wurmfutter*:

 

Hello Tyger,

 

thanks for publishing this ready-to-go stats webpage! We are using it here:

http://alte-knochen.de/index.php_p=home&sid=1

 

Now my question - could you add an extra section in future versions where we can add custom text, like server rules or -announcements?

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

Originally Posted by ty_ger07*:

 

Hello Tyger,

 

thanks for publishing this ready-to-go stats webpage! We are using it here:

http://alte-knochen.de/index.php_p=home&sid=1

 

Now my question - could you add an extra section in future versions where we can add custom text, like server rules or -announcements?

My stats page is not a CMS (content management system). It has no administrative login or configuration control panel. Yes, those types of features could be added, but I have little interest in adding those types of features at the moment for something which is a hobby and creates virtually no income.

 

I would recommend editing the HTML content to suite your needs.

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

Originally Posted by ty_ger07*:

 

Is there anyone who thinks that displaying the server IP address in the server banner image is a security issue? I figured that it may be a security issue enabling script kiddies to do low-life DoS attacks against the server. But I also figured that it makes no difference since any real cracker with any real network knowledge can easily figure out the server's IP address simply by playing in the server for a couple seconds.

 

Thoughts? Should the server IP address information be removed from the stats page? Or does it make no difference?

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

Originally Posted by GR101*:

 

Is there anyone who thinks that displaying the server IP address in the server banner image is a security issue? I figured that it may be a security issue enabling script kiddies to do low-life DoS attacks against the server. But I also figured that it makes no difference since any real cracker with any real network knowledge can easily figure out the server's IP address simply by playing in the server for a couple seconds.

 

Thoughts? Should the server IP address information be removed from the stats page? Or does it make no difference?

Could you remove IP address as this has been removed from Battlelog after a lot of complaints?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Could you remove IP address as this has been removed from Battlelog after a lot of complaints?

It is a valid fear even though a person could figure out the game server's IP address within seconds of connecting to the game server; and there is no way to prevent that from happening?

 

Like Battlelog did, I will probably remove the IP addresses just to make people happy. Even though I know that it makes zero difference.

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