Display your server stats with ease

Something else for Armagetron? Goody!
Post Reply
Swampy
Core Dumper
Posts: 165
Joined: Wed Dec 08, 2004 1:33 am
Location: Southern New Jersey

Display your server stats with ease

Post by Swampy »

Invader put together a php script that reads the stat files that are produced by the server and puts them into tables that are easy to read.

Here's the easy steps to follow if you have a PHP BB running:

-->Copy the stat.php file to the folder the PHP BB server is in
-->Copy the tpl file into the templates folder.

You'll also need to create symbolic links (in Linux) to your stats into the same folder so that the stats script can read them.

You may need to customize it for your own needs.

A screen shot is attached so you can see what it will look like.

Thanks for putting this together for our use, Invader!
Attachments
stats.PNG
stats.zip
(1.55 KiB) Downloaded 530 times

User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

Nice, but I like my one more :)

I can post the sources if anyone wants them, but my PHP scripts are usually not written in a very good programming style...
There's no place like ::1

User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6709
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

To be honest, I'm yet more a fan of mine 'cause it's got graphs! (And it's W3C :lol:)
Image

User avatar
belenus
Round Winner
Posts: 269
Joined: Wed Nov 30, 2005 6:22 pm
Location: Cologne
Contact:

Post by belenus »

Prefer my one too and it also got W3C.. :D

http://avalon.mlbel.com/armagetronad/
- bel

User avatar
microbus
Core Dumper
Posts: 128
Joined: Wed Apr 27, 2005 7:35 am
Contact:

Post by microbus »

I like all of 'em 8)

User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

Heh, not that mine wasn't valid XHTML :P I'm just too lazy to write a stylesheet for it.

Graphs... once I find a practical use for them I might include a little mySQL and gd to make them :)
There's no place like ::1

Invader
Average Program
Posts: 78
Joined: Sat Apr 17, 2004 3:52 am
Location: Newfoundland, Canada

Post by Invader »

I couldent make mine up to XHTML standards or w/e, phpBB kinda screws that up as it is.

Anyways, this new version fixes some HTML mistackes & as well it allows you to grab stats from other servers, and also search for players in the other server's stats :D

Move stats.php to phpbb_root/stats.php
Move stats.tpl to phpbb_root/templates/{CURRENT TEMPLATE}/stats.tpl
Move stats_socket.tpl to phpbb_root/templates/{CURRENT TEMPLATE}/stats_socket.tpl

CHMOD stats.php to 777 and phpBB root dir to 777. To get other stats from other servers. Type the url in the Grab form. Example: http://www.site.com/server_stats/highscores.txt, click submit and boom :D

Enjoy
Attachments
stats.zip
:)
(2.87 KiB) Downloaded 491 times
Invader

dylan
Average Program
Posts: 75
Joined: Tue Jan 24, 2006 2:41 am

Re: Display your server stats with ease

Post by dylan »

Swampy wrote:Invader put together a php script that reads the stat files that are produced by the server and puts them into tables that are easy to read.

Here's the easy steps to follow if you have a PHP BB running:

-->Copy the stat.php file to the folder the PHP BB server is in
-->Copy the tpl file into the templates folder.

You'll also need to create symbolic links (in Linux) to your stats into the same folder so that the stats script can read them.

You may need to customize it for your own needs.

A screen shot is attached so you can see what it will look like.

Thanks for putting this together for our use, Invader!
yes yes, this is a little late.BUt ive been trying to figure out how to put stats from my server onto my phpbb site.Its's great that i stumbled across this.But the problem is I dont really get how or what to do. :oops:
I have a windows, i dont know where the phpbb folder woul dbe located either?
Wondering, if someone help explain to me clearer? :wink:
thanks in advance

User avatar
wallpaper
On Lightcycle Grid
Posts: 18
Joined: Sun May 01, 2005 5:26 pm

i like mine

Post by wallpaper »

my stats page sucks. it uses bash scripts and the layout sucks and the navigation is confusing and it stinks. if you don't enter anything in the search link the stupid script yells at you and if your query (player you are searching) hasn't made the stats the script outputs an insult. it's live stats, too; but you have to reload yourself. i stink.

you can see the crappy page here >>> http://basementunderground.net/tron/
Last edited by wallpaper on Fri May 12, 2006 5:16 pm, edited 1 time in total.

User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6709
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

Doesn't look so bad.
Image

User avatar
ed
Match Winner
Posts: 613
Joined: Mon Feb 13, 2006 12:34 pm
Location: UK

Post by ed »

We've finally finished the the CT Wild Fortress Stats page (for now).
You'll find it here:

http://forums.crazy-tronners.com/ladders.php?serv=wild

It only has data starting from a 2/3 weeks ago.
Man, some folk play a lot of tron.
Last edited by ed on Tue Oct 31, 2006 10:56 pm, edited 1 time in total.

User avatar
joda.bot
Match Winner
Posts: 421
Joined: Sun Jun 20, 2004 11:00 am
Location: Germany
Contact:

Post by joda.bot »

Nixda's Ladder script ... currently uses file based cache to presort ladder text

Based on PHP and Perl.
http://www.armagetron.nixda.net/ladder/ ... tat.tar.gz

RodiX
Posts: 1
Joined: Sun Nov 26, 2006 4:17 pm

Post by RodiX »

Hi,

Maybe I'll set up a dedicated server soon, and I think a stat script is a really nice feature.

And I really love Tank Program's one ! Is it possible to have the sources ?
Last edited by RodiX on Mon Nov 27, 2006 7:38 am, edited 1 time in total.
RodiX

User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6709
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

RodiX wrote:Hi,

Maybe I'll set up a dedicated server soon, and I think a stat script is a really nice feature.

And I really love Tank Program's one ! Is it possible to have the sources ?
Thanks for expressing an interest. Someday I'll release all the sources :D. As soon as I figure out how to create a "private" thingy-majigger in SVN :D. (And yes I've not been paying near enough attention to the whole source management system debate.)
Image

Post Reply