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

Homepage status

perri

New Member
Joined
Jul 29, 2009
Messages
17
Reaction score
0
I need help with my status on homepage. I want a

Uptime in my homepage. Like

Players: 10/20
Uptime; 4h 30minuters

Like that, if any1 helps me i will rep+!
 
Exactly so for: Galaxia - Latest News

Code:
<?PHP
if($config['status']['serverStatus_online'] == 1) {
$stat_str = "";
$stat_str .= $config['status']['serverStatus_players']." / ".$config['status']['serverStatus_playersMax']."<br/>";
$stat_str .= "Uptime: ".$config['status']['serverStatus_uptime'];
$stat_str .= ""; 
echo $stat_str;
}
else
echo '<font color="red"><b>Server<br />OFFLINE</b></font>';
?>
</div>
  </div>


Was it about it?
 
In your layout find the ruler
Code:
  		  <?PHP
			if($config['status']['serverStatus_online'] == 1)

turn it:

Code:
		  <?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>

on:

Code:
<?PHP
if($config['status']['serverStatus_online'] == 1) {
$stat_str = "";
$stat_str .= $config['status']['serverStatus_players']." / ".$config['status']['serverStatus_playersMax']."<br/>";
$stat_str .= "Uptime: ".$config['status']['serverStatus_uptime'];
$stat_str .= ""; 
echo $stat_str;
}
else
echo '<font color="red"><b>Server<br />OFFLINE</b></font>';
?>
</div>
  </div>
 
In your layou '.css', search for the online players text div, and change the margin-top pixels to a lower value.
 
Alot of choises in layo css =(

#PedestalAndOnline {
position: absolute;
top: -105px;
width: 132px;
height: 111px;
}

#RightArtwork #PlayersOnline {
font-family : Verdana, Arial, Times New Roman, sans-serif;
font-size: 7pt;
line-height: 8pt;
text-align: center;
position: absolute;
width: 92px;
bottom: 11px;
left: 21px;
color: #cfa600;
border-bottom: 1px solid #010101;
cursor: pointer;
 
Alot of choises in layo css =(

#PedestalAndOnline {
position: absolute;
top: -105px;
width: 132px;
height: 111px;
}

#RightArtwork #PlayersOnline {
font-family : Verdana, Arial, Times New Roman, sans-serif;
font-size: 7pt;
line-height: 8pt;
text-align: center;
position: absolute;
width: 92px;
bottom: 11px;
left: 21px;
color: #cfa600;
border-bottom: 1px solid #010101;
cursor: pointer;

I have the same as you and at me he walks and at you not? - check one more time whether well you did everything.

Code:
#RightArtwork #PlayersOnline {
  font-family : Verdana, Arial, Times New Roman, sans-serif;
  font-size: 7pt;
  line-height: 8pt;
  text-align: center;
  position: absolute;
  width: 92px;
  bottom: 11px;
  left: 21px;
  color: #cfa600;
  border-bottom: 1px solid #010101;
  cursor: pointer;
 
Back
Top