I've been messing around with customizing a web-template and things went pretty flawless at first but now I've come to a point were I'm stuck. The thing is I've made a player online and peak player section on the right side of the template including a div and css element belonging to it, but I'm unable to actually make the online count (from status.php) display in the part of my custom code. Here is the image:
And here my div element:
<div class="onlineplayers"> </div>
<div class="onlinepeak"> </div>
I've tried to put <?php echo $gameServer['playersOnline'] ?> and <?php echo $gameServer['playersPeak'] ?> but it returns an error that $gameServer isn't being defined, however when I go to the original '/?module=server&action=status' link it works fine. Could anyone be so kind to help? I'm sure I'm missing some very important step.
Thanks a lot.