Jump to content

[BF3] BF3 Stats using \"BF3 Chat, GUID, Stats and Mapstats Logger\"


ImportBot

Recommended Posts

Originally Posted by 0mni*:

 

This plugin is released under GNU General Public License.

 

In order to use this plugin, you will need to have a working copy of BF3 Chat, GUID, Stats and Mapstats Logger* as well as an Apache equivalent webserver and login information to connect to MySQL.

 

Upload the files and folders to a new folder located somewhere at the root of your site. Modify config.php to suit your needs.

Code:

// Seperate all ID's with a comma ','
define('SERVER_IDS', '1,2,3,4');

// Enter the default Server ID to display when the page is first loaded.
define('DEFAULT_SERVER_ID', 1);

// Number of users to list per page.
define('LIMIT', 50);

// Number of adjacent pages to display in pagination.
define('ADJACENTS', 2);

// Minimum score to be vieable in the main list
define('LOW_SCORE', 500);

// Minimum search term length.
define('SEARCH_TERM', 3);

// You will need to enter your RCON Password here,
// for now you will need to have the same RCON password
// for all the servers.
define('RCON_PASSWORD', 'PASSWORD');

// Modify your database values as needed.
define('DB_PREFIX', 'tbl_');
define('DB_SUFFIX', '');
define('DB_ADDRESS', '127.0.0.1');
define('DB_USER', 'USERNAME');
define('DB_PASS', 'PASSWORD');
define('DB_NAME', 'DATABASE');
To display this on your Joomla website, like we have it visible on my website as seen here. You will need to add the plugin called Jumi. Create a new application and put the absolute pathname to index.php in the path field.

 

Like this:

Code:

/www/stats.website.com/public_html/index.php
Otherwise you can just access the script like this:

Code:

http://stats.website.com/index.php
Current Features:
  • Search for a Specific player
  • Easily toggle between your various servers
  • Easily Readable Code
  • Template system - You can easily modify the template files to suit your needs and for easy upgradeing
  • Optimized Code - To ensure that there is as little load on your server as possible.
  • Secure Code - To ensure that all those pesky players at the bottom of the stats don't take revenge on your server :smile:

Features to come:

  • Weaponstats for players
  • Display X last Chatlogs
  • Display Banned Users? Possible enhancement feature for the Stats Logger
  • Top X Weaponstats
  • Admin area to help look for cheaters and to view the full GUID logged in the database
  • Better ranking query from database. It is cached right now, but it is still too slow for my taste.
  • Any suggestions ?

 

Changelog:

 

[0.0.3]

- Fixed an issue where rank was not properly displayed when viewing X page.

- Added bf3conn support to display current connection details for the server.

- Fixed Reset Settings Button.

 

[0.0.2]

- Issue with the Database Suffix, has been corrected.

 

[0.0.1]

- Initial release.

- Cleaned up the code for public release and testing.

 

Attached Files:

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

Originally Posted by ty_ger07*:

 

Nice work.

 

It needs refining and some visual touches as you have noted, but it looks like it has great potential.

 

I made a ...* and included the code for my stats page. I didn't notice this topic before hand. Anyways, mine is very simple but doesn't have nearly as many features.

 

 

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

Originally Posted by 0mni*:

 

I have cleaned up the code considerably, enough that it can be easily modifed through templates. So it will be easier for people to modify the look for thier own use, without too much fear that they will have to start from scratch if I make changes.

 

I am going to be making a post in the Community Released Plugins section with a download, it works as is, but keep in mind this is still not perfect nor finished.

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

Originally Posted by 0mni*:

 

I have asked and was not allowed, only if they deem it worthy of posting will it be moved in to that area. I know they are rearranging the forums a bit, which is making it look a lot cleaner :smile: But it seems like you have to be in some kind of a private club to get any kind of respect on this board.

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

Originally Posted by Fruity*:

 

But it seems like you have to be in some kind of a private club to get any kind of respect on this board.

That's not true, but you've not actually released any code or anything here.

 

Just an FYI, but my plugin was sat waiting in the Development forum before it was moved into the released forum for a few days. It's not a private club at all, just busy people. You said yourself that you will be finishing the basics, so until you post the code here it's obviously not going to be moved into the Plugin Enhancements board...

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

Originally Posted by thauch*:

 

Apparently the continued development of Jumi is dead and it doesn't support Joomla 1.7. It has problems showing more than 20 id's in the SQL. (sorry i'm not inclined in sql/db)

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

Originally Posted by 0mni*:

 

I am currently useing it on my Joomla 2.5 website. It is a temporariy work around until I am able to familirize myself with the Joomla Component coding method. Also I would suggest going to Joomla 2.5, it is not a major upgrade from 1.7, not sure what extensions you are using, but I did use Jumi on Joomla 1.7 without any problems.

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

Originally Posted by 0mni*:

 

[0.0.3]

- Fixed an issue where rank was not properly displayed when viewing X page.

- Added bf3conn support to display current connection details for the server.

- Fixed Reset Settings Button.

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

Originally Posted by 0mni*:

 

Well I've got it running but I'm having one little problem. I'm getting some sort of error and I can't figure out how to fix it.

 

Here's the link: http://fbhw.us/fbhw/stats/index.php

 

Any ideas?

 

Thanks,

Travis

Open class/bf3stats.php

 

On Line 65

 

Change:

Code:

$this->server_ids = explode(",", SERVER_IDS);
To:

Code:

$this->server_ids = (SERVER_IDS === (int)SERVER_IDS) _ SERVER_IDS : explode(",", SERVER_IDS);
I believe its an issue when you only have 1 server listed.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by 0mni*:

 

Just to let you know, they aren't actually errors. It is just warning you that the script is asking for something, but it is not actually defined. If you want to get rid of those messages just change the way php notifies you of errors:

Code:

<_php error_reporting(E_ALL ^ E_NOTICE); _>
But if you want to fix the code, which I have no problem doing :smile:

 

Look in includes/functions.php

 

Find the function get_vars() its on line 35 Replace the entire function with this.

Code:

function get_vars(&$vars)
{
	$variables = array();

	if (!empty($_POST))
	{
		foreach ($vars as $var_name)
		{
			if (array_key_exists($var_name, $_POST))
			{
				$variables[$var_name] = isset($_POST[$var_name]) _ _strip_vars($_POST[$var_name]) : '';
			}
		}
	}
	else if (!empty($_GET))
	{
		foreach ($vars as $var_name)
		{
			if (array_key_exists($var_name, $_GET))
			{
				$variables[$var_name] = isset($_GET[$var_name]) _ _strip_vars($_GET[$var_name]) : '';
			}
		}
	}
	else
	{
		foreach ($vars as $var_name)
		{
			$variables[$var_name] = '';
		}
	}

	return $variables;
}
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by 0mni*:

 

Found another non-issue :smile:

 

Open class/bf3stats.php

On lines 151 and 155 remove the following:

Code:

$this->tpl->gotoBlock("user_error_1");
Code:
$this->tpl->gotoBlock("user_error_2");
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 years later...

Originally Posted by universy*:

 

Hello, I downloaded your page, but once configured the config.php file if i go to open the index.php gives me the error "Unable to select database: Access denied for user' htcbd '@' localhost 'to database' htcbd '", my database is hosted on db4free

 

Can u help me? Thanks

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

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.