simplynice Posted February 3, 2012 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 128 Reputation: 4 Joined: 11/14/11 Last Seen: April 13, 2016 Share 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 Link to comment Share on other sites More sharing options...
Hyvraine Posted February 4, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 133 Reputation: 15 Joined: 12/23/11 Last Seen: December 20, 2023 Share 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 Link to comment Share on other sites More sharing options...
JayPee Posted February 4, 2012 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 633 Reputation: 78 Joined: 11/14/11 Last Seen: September 20, 2017 Share 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. Link to comment Share on other sites More sharing options...
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 simplyniceLink to comment
Share on other sites
2 answers to this question
Recommended Posts