bury
Active Member
- Joined
- Jul 27, 2008
- Messages
- 421
- Solutions
- 7
- Reaction score
- 25
Hey! I was testing the last thing before opening my server and realized about the online/offline system doesnt work properly.
Im with 2 active players moving them in the map, and...:
Sometimes, I see 2 players online, and if I click, I see:
Currently 2 players are online - 2 are active and 0 is AFK on Oraclum.
But it If refresh the website it says offline again and:
Currently 2 players are online - 0 is active and 2 are AFK on Oraclum.
What is wrong?
On layout.php:
bump :c
Im with 2 active players moving them in the map, and...:
Sometimes, I see 2 players online, and if I click, I see:
Currently 2 players are online - 2 are active and 0 is AFK on Oraclum.
But it If refresh the website it says offline again and:
Currently 2 players are online - 0 is active and 2 are AFK on Oraclum.
What is wrong?
On layout.php:
PHP:
<div id="RightArtwork">
<img id="Monster" src="<?PHP echo $layout_name; ?>/images/Apocalypse.gif" alt="Monster of the Week" />
<img id="PedestalAndOnline" src="<?PHP echo $layout_name; ?>/images/header/pedestal-and-online.gif" alt="Monster Pedestal and Players Online Box"/>
<?PHP
if(count($config['site']['worlds']) > 1)
$whoisonlineworld = '?subtopic=whoisonline';
else
$whoisonlineworld = '?subtopic=whoisonline&world=0';
?>
<div id="PlayersOnline" onClick="window.location='<?PHP echo $whoisonlineworld; ?>'">
<?PHP
if($config['status']['serverStatus_online'] == 1)
echo $config['status']['serverStatus_players'].'<br />Players Online';
else
echo '<font color="red"><b>Server<br />OFFLINE</b></font>';
?></div>
</div>
bump :c
Last edited by a moderator: