Jump to content

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


tyger07

Recommended Posts

Originally Posted by ty_ger07*:

 

godaddy web hosting doesn't support AllowOverride All :-(

 

ty_ger07 thanks for your support anyway.

My demo site is GoDaddy Shared Linux Hosting. I don't remember changing anything or making any special requests to make this work. But, as mentioned, you should be able to create a support ticket requesting GoDaddy to make the necessary changes.
* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 1.7k
  • Created
  • Last Reply

Originally Posted by ty_ger07*:

 

Which function as JQuery or Ajax is loading from net and not Locally ?

When i using Proxy it works without Freeze :smile:

The javascript is saved in the project. It isn't fetching the script from the net.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Gijzijtdood*:

 

Hey Ty_ger,

 

My server stats are being reset every month. This because every month the top 10 gets VIP access to the server.

Therfore the stats should update more frequenly.

Is it possible to change this?

 

Greetz

Is it possible to change this?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

Is it possible to change this?

In functions.php, one of the last functions is "cache_top_twenty" (towards the bottom of the file). In that function you will see "$old = $now_timestamp - 43200;". 43200 is the number of seconds the data is cached. Lower that number to make it update more frequently.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Gijzijtdood*:

 

In functions.php, one of the last functions is "cache_top_twenty" (towards the bottom of the file). In that function you will see "$old = $now_timestamp - 43200;". 43200 is the number of seconds the data is cached. Lower that number to make it update more frequently.

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

Originally Posted by SharpSabre*:

 

New Suggestions :

 

 

  • Please Add Height and Width for banner for "Forum mode" as .._sid=1&h=100&w=500

  • Please Add Option to select Serverinfo in index by DB query , no Battlelog , in index.php
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by SharpSabre*:

 

I don't understand suggest #2. Can you explain? My stats code gets all of its information from the database and no information comes from Battlelog.

 

I like your loading image.

http://bf3.hyper-gn.ir/stat/common/images/loading.gif

I had a problem with freeze , and resolve it by remove all javascript address line ,except in index.php at root:

Code:

<script type="text/javascript" src="./common/javascript/jquery-1.10.2.js"></script>
<script type="text/javascript" src="./common/javascript/jquery-ui.js"></script>
And i thought that stats will get by battlelog ,but look this : http://bf3.hyper-gn.ir (server info):smile:

 

I had very changes and please in next release made a patch :smile:

And Thank you for liking "BF3 loading image" :biggrin:

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

Originally Posted by MRniceGuy*:

 

I have this error

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

 

If you are the administrator, please seek assistance here.

 

Error: Unknown MySQL server host 'HOST' (0)

i'm sure all the informations are totally correct i have no idea why it doesnt work

i put all the same stats logger database host address/name/user and pass

any idea!

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

Originally Posted by SharpSabre*:

 

All the information comes from the database. None of that server information is in the database.

As ProCon no needed to access to DB for Server Info , just use Game Query Port and auth it . it can be a new suggestion :biggrin:

I have this error

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

 

If you are the administrator, please seek assistance here.

 

Error: Unknown MySQL server host 'HOST' (0)

i'm sure all the informations are totally correct i have no idea why it doesnt work

i put all the same stats logger database host address/name/user and pass

any idea!

If "web host" and "server host" are in 2 places ? if yes , you must set privilege to access your host DB from outside it.

If no , you have mistake to set Host Address .

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

Originally Posted by MRniceGuy*:

 

As ProCon no needed to access to DB for Server Info , just use Game Query Port and auth it . it can be a new suggestion :biggrin:

 

 

If "web host" and "server host" are in 2 places ? if yes , you must set privilege to access your host DB from outside it.

If no , you have mistake to set Host Address .

yes i use my own database from my website

and my server is at i3d.net

what should i do!? how to set privilege to access my database outside!?

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

Originally Posted by ty_ger07*:

 

As ProCon no needed to access to DB for Server Info , just use Game Query Port and auth it . it can be a new suggestion :biggrin:

The stats page does not connect to procon. It does not connect to the game server. It does not connect to battlelog. It only connects to the stats database and only shows the information available in the database.

 

Maybe you can request XpKiller to have his plugin add that information in the database.

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

Originally Posted by ty_ger07*:

 

I have this error

 

i'm sure all the informations are totally correct i have no idea why it doesnt work

i put all the same stats logger database host address/name/user and pass

any idea!

What is host name did you enter? 'localhost'? An IP address? A web address?

Where is the database hosted? Where is the procon layer hosted? Where is the website hosted?

 

If the database is hosted at the same place your procon is hosted, the database host might be 'localhost' because it is local to itself. But, if the website is hosted at another server, you would need to know the database's real IP address or web address because 'localhost' would not work.

Also, if the database is at a location other than the website, the database might need your website's web address added to its firewall on port 3306 to allow the connection. This is something you would need to ask your database host about.

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

Originally Posted by MRniceGuy*:

 

The stats page does not connect to procon. It does not connect to the game server. It does not connect to battlelog. It only connects to the stats database and only shows the information available in the database.

so.. what could be problem then :/ in my situation! my stats logger works fine i just copy pasted the informations there is no wrong with host address :/
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

so.. what could be problem then :/ in my situation! my stats logger works fine i just copy pasted the informations there is no wrong with host address :/

That reply wasn't to you. You quoted something which had nothing to do with your question.

Look at my next reply to you above.

 

To help you, I need to know:

 

1) Where is your procon layer hosted?

2) Where is your database hosted?

3) Where is your website hosted?

4) What did you type for host?

 

For example:

 

1) Gameservers.com

2) Gameservers.com

3) GoDaddy.com

4) www.db.gamerservers.com

 

I cannot possibly guess what you should do if I have no idea how everything is connected.

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

Originally Posted by MRniceGuy*:

 

procon layer hosted at i3d.net

database hosted at bluehost.com

website hosted at bluehost.com

i typed my website address for example myweb.net

 

my website and database i use is hosted at bluehost.com, my procon layer hosted at i3d.net

i have mentioned that i use my personal website database with stats logger plugin and stats logger working fine and everything is fine with the database and the host address because they are correct and they are working

 

so i need to use the same database informations that stats logger plugin using it right! if yes then why does it say Unknown MySQL server host 'HOST :/

 

sorry i didnt see your answer because i was typing too

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

Originally Posted by ty_ger07*:

 

my website and database i use is hosted at bluehost.com, my procon layer hosted at i3d.net

i have mentioned that i use my personal website database with stats logger plugin and stats logger working fine and everything is fine with the database and the host address because they are correct and they are working

To help you, I need to know:

 

1) Where is your procon layer hosted?

2) Where is your database hosted?

3) Where is your website hosted?

4) What did you type for host?

This is the information I have gathered from your last reply:

 

1) Where is your procon layer hosted? i3d.net

2) Where is your database hosted? "my personal website" bluehost.com?

3) Where is your website hosted? bluehost.com

4) What did you type for host??

 

so i need to use the same database informations that stats logger plugin using it right! if yes then why does it say Unknown MySQL server host 'HOST :/

Because your procon layer and database are not at the same location, the host address will be different for each application. For instance, in the plugin on Procon, you might type 'db.bluehost.com' but for this web stats page, you might type 'localhost'.

 

Please answer #4 above.

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

Originally Posted by MRniceGuy*:

 

procon layer hosted at i3d.net

database hosted at bluehost.com

website hosted at bluehost.com

i typed my website address for example myweb.net

 

i did answered xD

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

Originally Posted by ty_ger07*:

 

procon layer hosted at i3d.net

database hosted at bluehost.com

website hosted at bluehost.com

i typed my website address for example myweb.net

 

i did answered xD

Oh, I must not have seen your edit.

 

For this stats page, since the database is at the same location as the web server, I would try 'localhost' instead of 'myweb.net'.

 

Your website won't like traveling out from its local network, out to the internet service provider, domain name registrar, back from the internet service provider, and then back to the website. That loop makes no sense and that is why 'localhost' is usually used when stuff can be routed internally within the same server.

 

The external address 'myweb.net' is only used for traffic to and from external connections through the internet. In other words, you use 'myweb.net' in Procon because your procon layer is at a different server and needs to travel through the internet.

 

If 'localhost' doesn't work, ask bluehost.com what the appropriate database address is since they may recommend a different local IP address specifically designed for routing local traffic within their web server.

 

In summary, the address of the database is different in different situations and that is why the host address in Procon works but the host address in the stats page doesn't work.

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

Originally Posted by ty_ger07*:

 

I had a problem with freeze , and resolve it by remove all javascript address line ,except in index.php at root:

Code:

<script type="text/javascript" src="./common/javascript/jquery-1.10.2.js"></script>
<script type="text/javascript" src="./common/javascript/jquery-ui.js"></script>
I don't know why you would have that problem. Which web browser are you using? Do you see the same problem with my demo site?

http://open-web-community.com/bf4sta...tats/index.php

 

I had very changes and please in next release made a patch :smile:

Like I said before, there probably will be no more updates.

 

And Thank you for liking "BF3 loading image" :biggrin:

By the way, you probably want to change the background color of the stats page.

 

This is what it looks like with a higher resolution monitor:

 

broken.jpg

 

The background color should be changed to #000000 for that background image so that it looks like this:

 

fixed.jpg

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

Originally Posted by SharpSabre*:

 

I don't know why you would have that problem. Which web browser are you using? Do you see the same problem with my demo site?

http://open-web-community.com/bf4sta...tats/index.php

 

 

 

Like I said before, there probably will be no more updates.

 

 

 

By the way, you probably want to change the background color of the stats page.

 

This is what it looks like with a higher resolution monitor:

 

broken.jpg

 

The background color should be changed to #000000 for that background image so that it looks like this:

 

fixed.jpg

Yea , I think it's overload (JQuery) also in your demo .

My Browser is Chrome v39..

 

Thanks For background , and i changed some Css now :smile:

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

Originally Posted by MRniceGuy*:

 

Thanks for the great webpage for stats logger,it works after i contacted my server provider, i really like

now i have a couple questions xD

sorry if the questions are already been asked i did a lillte research here but the pages are just too much

so

1: how can i expand the pages a little bit more

2i6euip.jpg

 

2: i want to make the banner position smaller

24mdpp5.jpg

 

3: is it possible to make the banner go to left side and create an external tabs on the top header for example i want to add forum tab.

i want to do something like this

2mqlrp0.jpg

 

basically i want to do something like this

qqbxqs.jpg

 

would be great if i get a little help

thanks

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

Originally Posted by ty_ger07*:

 

Yea , I think it's overload (JQuery) also in your demo .

My Browser is Chrome v39..

Hmm. I will have to take a look.

 

EDIT: confirmed

 

I see why I made that mistake. In the combined server stats page, the javascript isn't loaded in index.php. That's why I loaded it in each file. But, the individual (not combined stats) server stats pages did load it in index.php which caused it to be loaded twice in any individual server stats page.

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

Originally Posted by ty_ger07*:

 

1: how can i expand the pages a little bit more

2i6euip.jpg

That's in ./common/stats.css

 

https://github.com/tyger07/BF4-Serve...mmon/stats.css

 

#pagebody{

margin-left: auto;

margin-right: auto;

text-align: left;

padding-top: 200px;

margin-bottom: 10px;

width: 992px;

}

Change the bold 992px to something wider if you want.

Note: if you make it wider, people with low resolutions may have issues viewing the whole page.

 

2: i want to make the banner position smaller

24mdpp5.jpg

That's also in ./common/stats.css

 

#topbanner{

display: table-cell;

vertical-align: middle;

height: 96px;

overflow: hidden;

}

Also, you have to change the height in ./index.php

 

BF4 Stats Page Copyright 2014 Open-Web-Community

EDIT: I just created an update. The update moves the banner image size into stats.css so that you won't have to do the index.php edit.

 

Note: if you make the banner smaller, you will also have to adjust up the position of other elements in stats.css.

 

#topmenu{

display: table;

position: fixed;

top: 104px;

margin: 0px 0px 0px 0px;

padding-bottom: 0px;

z-index: 8;

text-align: center;

width: 100%;

background: rgba(8, 13, 16, 0.98);

box-shadow: 0px 0px 20px 5px rgba(8, 13, 16, 0.8);

border: 0px solid;

}

...

 

#menucontent{

display: table;

position: fixed;

top: 142px;

margin: 0px 0px 0px 0px;

z-index: 7;

text-align: center;

width: 100%;

background: rgba(8, 13, 16, 0.9);

box-shadow: 0px 0px 20px 5px rgba(0, 5, 8, 0.9);

border: 0px solid;

border-top: 1px solid #555555;

}

...

 

#pagebody{

margin-left: auto;

margin-right: auto;

text-align: left;

padding-top: 200px;

margin-bottom: 10px;

width: 992px;

}

If you don't adjust those elements up, the banner will be smaller, but everything else will still take up the same amount of vertical space.

 

3: is it possible to make the banner go to left side and create an external tabs on the top header for example i want to add forum tab.

i want to do something like this

2mqlrp0.jpg

That's also in ./common/stats.css.

 

Add (in bold):

 

#topbanner{

display: table-cell;

vertical-align: middle;

height: 96px;

float: left;

overflow: hidden;

}

 

#topmenu{

display: table;

position: fixed;

top: 104px;

margin: 0px 0px 0px 0px;

padding-bottom: 0px;

float: left;

z-index: 8;

text-align: center;

width: 100%;

background: rgba(8, 13, 16, 0.98);

box-shadow: 0px 0px 20px 5px rgba(8, 13, 16, 0.8);

border: 0px solid;

}

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

Originally Posted by MRniceGuy*:

 

Thank you so much!

i have 2 more questions if you dont mind x haha

 

1: i'm sorry when i said the banner position i meant this place

ixbapx.jpg

because when i change topmenu /menucontent.. they go under this "dark place" sorry dont know what to name xD

 

2: is it possible making the banner fixed with the statistic pages!

11t9bnl.jpg

thank you.

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

Originally Posted by ty_ger07*:

 

Thank you so much!

i have 2 more questions if you dont mind x haha

 

1: i'm sorry when i said the banner position i meant this place

ixbapx.jpg

because when i change topmenu /menucontent.. they go under this "dark place" sorry dont know what to name xD

This "dark place" is '#topcontent' in stats.css.

 

/* top of page */

#topcontent{

display: table;

position: fixed;

top: 0;

margin: 0px 0px 0px 0px;

z-index: 9;

padding-top: 2px;

padding-bottom: 2px;

text-align: center;

width: 100%;

height: 100px;

overflow: hidden;

background: rgba(8, 13, 16, 0.98);

box-shadow: 0px 0px 20px 5px rgba(8, 13, 16, 0.8);

border: 0px solid;

}

2: is it possible making the banner fixed with the statistic pages!

11t9bnl.jpg

thank you.

Sure. You need to put it inside an HTML element which is the same width as '#pagebody' and have it float left inside of that element.

 

You are going to have to learn a little HTML and CSS at some point because I am not going to guide you through every step.

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