• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Dynamic status by Paxton.

Paxton, mógłbyś mi przerobić ten skrypt na dynamiczny?:)

Code:
echo '<div class="mng"><font color="green"><b> Serwer </b></font></div><font size="1" color="white">&nbsp;&nbsp;&nbsp;Graczy Online: <div id="players" style="display: inline;">Loading...</div> / '.$config['status']['serverStatus_playersMax'].'<br />&nbsp;&nbsp;&nbsp;Potworów: '.$config['status']['serverStatus_monsters'].'<br />&nbsp;&nbsp;&nbsp;Uptime: '.$config['status']['serverStatus_uptime'].'</font>';
 
Still on my acc maker, writes this:
Code:
Players Online: Loading ... / 1000
?:|
 
Yes, this file is in the main directory.

jquery.js should be in your template folder, and this template should be named tibiacom, also the script line which includes jquery.js should be at the top of layout.php
 
Okay thanks, works!
Paste into template folder and the main players.php to ajax/players.php

Thanks
 
Paste this somewhere in your layout.php :)

PHP:
<?PHP
			if(!$config['status']['serverStatus_online'] == 1)
				echo '<div id="players" style="display: inline;">Loading...</div><br>Players Online';
			else
				echo '<font color="red"><b>Server<br />OFFLINE</b></font>';
			?>
 
Didn't work :/
Just shows: Players Online

PHP:
   <?PHP
            if(!$config['status']['serverStatus_online'] == 1)
                echo '<div id="players" style="display: inline;">Loading...</div><br>Players Online';
            else
                echo '<font color="red"><b>Server<br />OFFLINE</b></font>';
            ?>
 
It is problem with Gesior ACC, not dynamic status.

You should look around the forums, there were tons of topics about this problem.
 
Back
Top