• 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!

Says offline while it's online

Nanashi

New Member
Joined
May 2, 2010
Messages
241
Reaction score
2
Location
Sweden
PHP:
			<div id="status">
				 {if $serverOnline[$id]}
				<font color='green'><b>ONLINE!</b></font><br />
				<b>Players: </b> {$serverPlayers[$id]}/{$serverMax[$id]}<br /><br />
				<b>Uptime: </b> {$serverUptime[$id]} <br />
				{else}
				<font color='red'><b>OFFLINE!</b></font><br />
				{/if}

			</div>
The website says it's offline but the server is online.
This is the code I'm using.
Anyone got an idea of why?
Dimeria.net if you wanna see for yourself
 
Search in config-and-functions.php not config.php
This line i think you should to searching:
PHP:
	$sock = @fsockopen("127.0.0.1", $config['server']['statusPort'], $errno, $errstr, 1);
127.0.0.1 and change it to you'r dedi ip.
 
Search in config-and-functions.php not config.php
This line i think you should to searching:
PHP:
	$sock = @fsockopen("127.0.0.1", $config['server']['statusPort'], $errno, $errstr, 1);

Thanks.
But, I'm using modern AAC, are you sure that's for modern? Because I can't find the file.
 
0.o I don't know that you are using modern. I think that you using Gesior Layout.
Anyway I don't know in where you can change it :(
 
I dont know how it is on modern acc but in layouts/layout.php
then search for online untill you finde a row like this:
Code:
if($config['status']['serverStatus_online'] == 1){
replace that with this
 
Back
Top