• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Gesior acc, serwer status problem

Krzkru

New Member
Joined
Jan 10, 2013
Messages
89
Reaction score
1
Location
Poland
Hello,
my server status looks like that:
Clipboard02.gif

And my question is how to make "serwer" more to left?

layout.php

PHP:
							<div id="vt_panel_module">
								<div class="header"><center>Status Serwera</center></div>
								<ul>  
                            	<?PHP
								
			                    if($config['status']['serverStatus_online'] == 1)
				                echo'<b>Serwer:<font color="green">Online</b></font>';
			                 else
				                echo '<b>Serwer: <font color="red">Offline</b></font>';
		                        ?>                      
								</td>
                                </ul> 
								</div>

And anyone knows how to add players online and uptime?
 
try this
PHP:
 <div class="online">
<div class="header"><center><h1>Status Serwera:</h1></center></div>
                                <ul><?php
                                    if($config['status']['serverStatus_online'] == 1):
                                ?>
                                <table cellpadding="3" cellspacing="0" border="0" width="100%">
                                    <tr>
                                           <td><center><h1><font color="green">Server is ONLINE!</font></h1></td>
                                    </tr>
<td><b>Players Online:</b><?PHP			
				$players = $SQL->query('SELECT * FROM players WHERE online = 1'); 
				$p_num = 0; 
				foreach($players as $player) $p_num++;
				if($config['status']['serverStatus_online'] == 1)
					echo ''.$p_num.'';
				?>              <b>Uptime:</b><?php echo $config['status']['serverStatus_uptime']; ?>
</td>
                                    </tr>
                                    <tr>
                                </table>
                                <?php
                                    else:
                                ?>
                                <p><center><h1><font color="Red">Server is OFFLINE!</font></h1></center></p></fieldset>
                                <?php
                                    endif;
                                ?>
                            </div>
 
#UP
Looks like that:
Clipboard03.gif
btw. your status online/offline doesnt work. its always online -.-

#Edit
oke, made some repairs and now it looks like that:
Clipboard02.gif
Still need to do it left :/ when i write it center it goes more to right so it means thats arleady left but i need more !!! help please
 
Last edited:
try this :)
PHP:
		  <?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>
 
Sirion_Mido
Doesnt work ;/

Ive made it like that:
Clipboard03.jpg

Still must do it to the left like number 1 on the picture up

and layout.php is like that now:
PHP:
								<div class="header"><center>Status Serwera</center></div>
                                <div class="online"> 
                                <ul><table cellpadding="3" cellspacing="0" border="0" width="100%"> <tr><td><?PHP
								
			                    if($config['status']['serverStatus_online'] == 1)
				                echo'<b>Serwer: <font color="green">Online</b></font>';
			                 else
				                echo'<b>Serwer: <font color="red">Offline</b></font>';
		                        ?>  </tr></td>
                 <tr><td><b>Graczy Online:&nbsp;</b><?PHP     
                $players = $SQL->query('SELECT * FROM players WHERE online = 1');  
                $p_num = 0;  
                foreach($players as $player) $p_num++; 
                if($config['status']['serverStatus_online'] == 1) 
                    echo '' .$p_num.' / 400'; ?></td> </tr>        
					<tr><td><b>Uptime:&nbsp;</b><?php echo $config['status']['serverStatus_uptime']; ?></td></tr>
                                    </tr> 
                                </table> 						
                            </div>
								</div>

Anyone?

- - - Updated - - -

could anyone help me?
 
Last edited:
Back
Top