simplynice Posted February 3, 2012 Posted February 3, 2012 (edited) I'd like to move this php code into the header under the main folder of flux: <h2><?php echo htmlspecialchars(Flux::message('ServerStatusHeading')) ?></h2> <p><?php echo htmlspecialchars(Flux::message('ServerStatusInfo')) ?></p> <?php foreach ($serverStatus as $privServerName => $gameServers): ?> <h3>Server Status for <?php echo htmlspecialchars($privServerName) ?></h3> <table id="server_status"> <tr> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusServerLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusLoginLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusCharLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusMapLabel')) ?></td> <td class="status"><?php echo htmlspecialchars(Flux::message('ServerStatusOnlineLabel')) ?></td> </tr> <?php foreach ($gameServers as $serverName => $gameServer): ?> <tr> <th class="server"><?php echo htmlspecialchars($serverName) ?></th> <td class="status"><?php echo $this->serverUpDown($gameServer['loginServerUp']) ?></td> <td class="status"><?php echo $this->serverUpDown($gameServer['charServerUp']) ?></td> <td class="status"><?php echo $this->serverUpDown($gameServer['mapServerUp']) ?></td> <td class="status"><?php echo $gameServer['playersOnline'] ?></td> </tr> <?php endforeach ?> </table> <?php endforeach ?> Yes i already added it to header.php under the main folder. I can see the server status only if i click the server status at the sidebar menu. I'd like to show it as a default header in each page. Thanks! Edited February 3, 2012 by simplynice
Hyvraine Posted February 4, 2012 Posted February 4, 2012 (edited) Lol my bad. Wait. It's around fluxcp/modules/server/status.php, copy the important parts, no... actually just create another copy of the file then include it in the header Edited February 4, 2012 by kenshn111
JayPee Posted February 4, 2012 Posted February 4, 2012 you can try this: http://rathena.org/board/topic/56268-fluxcp-easy-server-status-customization/ just reply if you dont understand it.
Question
simplynice
I'd like to move this php code into the header under the main folder of flux:
Yes i already added it to header.php under the main folder. I can see the server status only if i click the server status at the sidebar menu. I'd like to show it as a default header in each page.
Thanks!
Edited by simplynice2 answers to this question
Recommended Posts