Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release] Real-Time Statistics

Newbie Spellweaver
Joined
Jul 16, 2009
Messages
89
Reaction score
21
INFORMATION

The function of this script is to show the statistics of the server in real time, this means that if people are connected, the amount of connected will rise automatically without having to reload the page.

INSTALLATION

Inside the .rar file you will find 3 files: "index.php", "stats_config.php" and "stats_functions.php"
* Copy the files "stats_config.php" and "stats_functions.php" to the main root of the site (htdocs or public_html)
* Open the stats_config.php file with a notepad or your favorite editor and edit the connection data to your database.
* Open the index.php file and copy its contents and paste it under the template styles. For example

PHP:
<link rel="stylesheet" href="template/<?=$core['config']['template'] ?>/css/coreStyle.css">
HERE PASTE THE CODE

We will look for the area in which our site says the online, for example:
PHP:
<td>Usuarios en Linea</td><td style="color:#00ff00;"><? echo $usersOnline; ?> </td>

****IMPORTANT***
IF YOU USE HOSTING CPANEL DO NOT OPEN THE WEBSITE UNTIL YOU HAVE MADE ALL THE STEPS, BUT THE RISKS HAVE BEEN BLOCKED BY THE SERVER.

The result to be derived is not obtained from any php, it can be extracted from a <span>, <div>, etc.


* Using the example below we must delete the php code and add the following code: id = "online"
We will stay as follows:
PHP:
<td>Usuarios en Linea</td><td style="color:#00ff00;" id="online"></td>

If for these coincidences does not have a similar code, simply put

PHP:
<span id="online">

DEMO


DOWNLOADS




Credits:
inax123


Please, NO MIRRORS.
Only the statistics of online users, if you want customs apart send an email to inax123@gmail.com or send private message.
 
Last edited by a moderator:
Junior Spellweaver
Joined
Oct 28, 2009
Messages
131
Reaction score
63
INFORMATION

The function of this script is to show the statistics of the server in real time, this means that if people are connected, the amount of connected will rise automatically without having to reload the page.

INSTALLATION

Inside the .rar file you will find 3 files: "index.php", "stats_config.php" and "stats_functions.php"
* Copy the files "stats_config.php" and "stats_functions.php" to the main root of the site (htdocs or public_html)
* Open the stats_config.php file with a notepad or your favorite editor and edit the connection data to your database.
* Open the index.php file and copy its contents and paste it under the template styles. For example

PHP:
<link rel="stylesheet" href="http://forum.ragezone.com/template/<?=$core['config']['template'] ?>/css/coreStyle.css">
HERE PASTE THE CODE

We will look for the area in which our site says the online, for example:
PHP:
<td>Usuarios en Linea</td><td style="color:#00ff00;"><? echo $usersOnline; ?> </td>

****IMPORTANT***
IF YOU USE HOSTING CPANEL DO NOT OPEN THE WEBSITE UNTIL YOU HAVE MADE ALL THE STEPS, BUT THE RISKS HAVE BEEN BLOCKED BY THE SERVER.

The result to be derived is not obtained from any php, it can be extracted from a <span>, <div>, etc.


* Using the example below we must delete the php code and add the following code: id = "online"
We will stay as follows:
PHP:
<td>Usuarios en Linea</td><td style="color:#00ff00;" id="online"></td>

If for these coincidences does not have a similar code, simply put

PHP:
<span id="online">

DEMO


DOWNLOADS




Credits:
inax123


Please, NO MIRRORS.
Only the statistics of online users, if you want customs apart send an email to inax123@gmail.com or send private message.


Eng : Used to setinterval ?, in different web hosting calculate to 500 miliseconds is considered as a attack to web, and would cause down web, i advise used to metodology Comet or more avanced Node JS.

Esp : Usas setinterval ?, en diferentes webhosting calculas 500 milisegundos es consideredo como un ataque na laweb, y eso ocasionar que tu web caiga, te aconsejo usar la metodologia Comet o mas avanzado Node JS.
 
Newbie Spellweaver
Joined
Jul 16, 2009
Messages
89
Reaction score
21
If you have error 404 is "attack"

Por eso aclaro no ejecutar la web Hasta haber hecho todos lps pasos. Porque al tirar tantos errores 404 te bloquean.como si fuera um ataque. Sino anda todp bien
Comprobado
 
Back
Top