Celes
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by Celes
-
-
Hi rAthena.
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.
Players online in div element?
in Web Support
Posted
Thanks. Can you point me into the right direction to properly include it? I've tried adding this in header and footer php:
But still gives undefined error on all pages except module=server&action=status page (on that specific page it shows at the side). But I'd like for it to show on every page. Sorry, php newbie here.