arturhaddad
Member
- Joined
- Aug 14, 2010
- Messages
- 217
- Reaction score
- 8
The pedestal that tells how many players are online isn't working sometimes:
Sometimes it works, telling the number of players online.
The script:
Thanks++
////////////////
solution by Cykotitan and Dankoo
chmod 777 /var/www/config/serverstatus
![2vv4a53.png](/proxy.php?image=http%3A%2F%2Fi52.tinypic.com%2F2vv4a53.png&hash=259f688ef658021a727b2d1572a81875)
Sometimes it works, telling the number of players online.
The script:
PHP:
<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>
Thanks++
////////////////
solution by Cykotitan and Dankoo
chmod 777 /var/www/config/serverstatus
Last edited: