PDA

View Full Version : [Unmodified] PHGStats ProjectvB


nitro
06-11-2006, 10:00 PM
This project was inspired by the hack here (https://vborg.vbsupport.ru/showthread.php?t=101008) but by taking the stance no modifications to any phgstats files what so ever is what makes it totally different.

This way when theres a update for either vb or phgstats unless theres some major change in either product its unlikely an update of one would affect the other.

Templates: 0 at the moment may move some stuff to templates later.
Phrases: 0 again may add some
Files: 1 to upload plus the phgststats program
Plugins: 0
File edits: 0
DB Queries: 0
Template edits: optional to add a link to the page in your header or navbar or where ever else you may want one.

Q. Does it integrate with the vbulletin style
A. Yes it works out the box with most of the styles I have tested it with. The only style that went slightly wierd was an old style that has not yet been updated to vb 3.5.4

Q. Can servers be added bia admincp
A. Not at the moment, a link is there if your an administrator (grouid 6) for the phgstats admin panel. If in the future I was to consider making a vb admincp interface it would simply do the same job the phgstats admin page does.

Q. will it ever be out of beta stage
A. maybe, maybe not.

Q. Can contributions be made to the project
A. Sure under the terms of the credits is fine. Contributions will not be accepted if they involve modifying any phgstats files.

Beta, recomended to test first and only install live if your happy with the results.

There is a vbPortal version done, a Logicians Web Templates addon almost complete, and a vbAdvanced cms 99% finished. They will all run stand alone from each other meaning you wont need to install this one for a CMS/CMPS version to work.

For those who dont know, what does this do ?

PHGStats will poll several types of gameservers and teamspeak 2 servers for data.

Currently supported game servers by PHGStats 0.68b:

- American's Army (aa)
- Armagetronad (atron)
- Battlefield 1942 (bf)
- Battlefield Vietnam (bfv)
- Battlefield 2 (bf2)
- Call of Duty (cod)
- Call of Duty 2 (cod2)
- Doom 3 (d3)
- Enemy Territory (et)
- FEAR (fear)
- HALO (halo) (new)
- Half-Life / CS OLD (hl_old)
- Half-Life / CS (hl)
- Half-Life 2 / CS:S (hl2)
- Medal of Honor (mohaa)
- Painkiller (pk)
- Red Orchestra (ro) (new)
- Return to Castle Wolfenstein (rtcw)
- Rune (rune)
- Soldier of Fortune 2 (sof2)
- SWAT4 (swat)
- Teamspeak (ts) (new)
- Unreal Tournament (ut)
- Unreal Torunament 2003 (ut2003)
- Unreal Tournament 2004 (ut2004)
- Quakeworld (qw)
- Quake 1 (q1)
- Quake 2 (q2)
- Quake 3 (q3)
- Quake 4 (q4)
- Warsow (warsow) (new)


Instructions.
Get PHGStats (http://www.woah-projekt.de/index.php?page=news&sid=1&lang=en)
Upload the phgstats directory to your forum root and run its installer. No db is required for this.
Verify its polling your server(s) and displaying out put.
Upload the attached file to your forum root and load that and you should see the same results but in a vb style page.
Add a link to the page in your prefered template/location.

I am not offering any official support as its beta but I am usually around so I may be able to answer further questions.
I dont have a demo right now as I am awaiting my host to open some ports for me. It has been tested with live servers but not in a live vbulletin install.

Update: Added an admincp nav loader, this should load the admin file for phgstats to you admincp main frame. As with using the phgstats admin direct the config.inc.php file in the phgstats/settings directory will need to be world writeable. Feedback welcome on how this pans out. It has been tested locally to work fine. Upload the cpnav_phgstatsvb.xml to your forums includes/xml directory. Refresh or logout and back into admincp.

nitro
06-12-2006, 02:08 AM
Reserved

AdminCP screen added and my host finally figured out what I needed with ports so theres a live demo of the vbPortal version here (http://www.nextgenlive.com/modules.php?s=&file=index&name=Gameservers) which is posted on vbportals forums (http://www.phpportals.com)

Phalynx
06-12-2006, 06:45 AM
Thanks for sharing.

Snake
06-12-2006, 07:15 AM
Thanks.

El-Gazaly
06-12-2006, 08:06 AM
Many thanks
Installed .

nitro
06-12-2006, 09:23 AM
Caught a typo while messing with the vba parts which is in this file aswell.

look for the closing table tag above $footer and its missing the end >

Also for the cpnav to work there needs to be a product with an id that matches. Didnt realise this was compulsory and as I didnt go down the template and phrase route yet I didnt export one, as my host just mailed me my ports are done so I went to add this live is when I found out.

In admincp->plugin manager->manage products->add product

Code box for licensed veiwing only:

productid: phgstats_vb
Title: PHGStats ProjectvB
Version: 0.1b
Description: PHGStats Game servers page vb integration


Now when you refresh your cp you should see the extra menu item. Dont see the point in updating the zip with an empty product file, but when theres an update I may add it.

twitch
06-13-2006, 03:32 PM
Thank you!

EasyTarget
06-14-2006, 05:17 PM
how difficult would it be to add other game types to the supported list?

nitro
06-14-2006, 05:34 PM
Not sure on that, check the classes files as these are the place to look.

I am sure PHGStats would welcome some of the vb.org local talent to contribute for more games. ;)

You will have to excuse the vbA mods they are done but I have had 2 c**ppy days and am to cream crackered to write out the varied instructions. I will try n get em up tomorrow. Yesterday was my rma'd router returned so I had to give that a test and changed my networks range so my dev box needed a pile of work recongfiguring stuff and today I installed vista on two boxes both of which have took most of the day, Mrs says her's is overheating :eek: although I think its just MBM n vista but the other I updated was my HTPC as vista has media center built in and it ent having any of it, most likely because of vista DRM and my 9800 AIW doesnt have HTCP but the 50" does. :(

Even worse my 10 year old has just signed up, grabbed the dvdr off me and installed it inside two hours on his just about inside the recomended specs system and the only bit it didnt do for him by the looks was the SB card.

* nitro looks for a nice big brick wall :D

Forumi Shqiptar
06-18-2006, 08:47 PM
many thanks for this installed but got some errorrs any help or ideas on this anyone?

Refresh

Warning: fsockopen() expects parameter 2 to be long, string given in /phgstats/classes/et.class.php on line 91
Error: -

Warning: fclose(): supplied argument is not a valid stream resource in /phgstats/classes/et.class.php on line 108

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: No address associated with hostname in /phgstats/classes/aa.class.php on line 86

nitro
06-20-2006, 10:54 PM
many thanks for this installed but got some errorrs any help or ideas on this anyone?
I would say its one of two possibilities at first guess.

If you know your host supports fsockopen one of those can be ruled out in which case it sounds like something bad with the game class file, perhaps it got corrupted when you uploaded the phgstats, or theres the possibility you have entered a bad host/port. If you have used a hostname have your tried the actual ip instead ?

As theres no modification to the phgstats program for integration and as you know where the phgstats resides on your server you can call the pages direct to ensure the integration isnt interfereing.

Bojangles
06-28-2006, 02:43 AM
Great job, installed :)

GrendelKhan{TSU
06-28-2006, 03:33 AM
HELLLYA!!!!!!!!!!!! :D :D great job.

looking forward to continued dev on this (fingers crossed).

GrendelKhan{TSU
08-03-2006, 05:26 PM
any know if this works with 3.6.0? I'm soooo installing if it does! :)

GrendelKhan{TSU
08-04-2006, 08:09 AM
so close yet so far.. I'm getting this error when trying to run the phgstatsvb.php file.

help!!

Warning: main(/forums/phgstats//main/phgstats.inc.php): failed to open stream: No such file or directory in /phgstatsvb.php on line 80

Fatal error: main(): Failed opening required '/forums/phgstats//main/phgstats.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/DBname/public_html/forums/phgstatsvb.php on line 80

GrendelKhan{TSU
08-04-2006, 08:38 AM
awesome! got it! http://www.clantsu.org/forums/phgstatsvb.php :)

GrendelKhan{TSU
08-04-2006, 08:57 AM
future request (if you even choose to update this):

--add ability for ORDER of server listing
--*add markup to display for SELECT server in the list... like with bold or color.* :D

btw this works with all the listings in on the verification server list stat page...
but not in the vbull output server listing page. :( how we get that to work?

GrendelKhan{TSU
08-04-2006, 09:27 AM
in any case...
could someone clue me in on how to control output look of the stats?

its so bland as is. I'd love to be able to bold or color some of the text and separate it off with tables or something.

here's our UT server listing: TSU sniper server (http://www.clantsu.org/forums/phgstatsvb.php?sh_srv=5)
the full list is even more drab:
UT Sniper serverlist (http://www.clantsu.org/forums/phgstatsvb.php)

nitro
08-23-2006, 10:29 PM
Sorry for delay in response been away on holiday.

Adding those two abilities would likely mean modifying the phgstats source.

Not sure what you mean by works on the virfication page but "not in the vbull output" ?

You should be able to change some text and backgorund colors from admin but you probably need to make settings/style.inc.php writeable or edit it manually. For further display enhancing you would be looking to modify the main/phgstats.inc.php where it echoes the outputs.

Once I am updated fully to 3.6 I will verify its working with the latest phgstats version (0.6.9 currently) I dont see why there should be any issues.

Also the phgstats project page is no more and phgstats is currently a sourceforge hosted project http://sourceforge.net/projects/phgstats/

wpeloquin
02-03-2008, 02:46 PM
<a href="https://vborg.vbsupport.ru/showthread.php?p=1435357#post1435357" target="_blank">https://vborg.vbsupport.ru/showt...57#post1435357</a>