This is more-or-less a combination of the 2 non-working hacks into a single working version.
STEP 1:
download phgstats, and upload the phgstats folder to your forum directory.
the version i have tested is 0.6.9b. i have also included the zip file as an attachment. a newer version may be available online at sourceforge.net
STEP 2:
Code:
download servers.php
Open servers.php
FIND:
$phgstatsadmin = "path_to_phgdirectory/admin/index.php";
EDIT:
replace path_to_phgdirectory with the proper folder relative to your forum root.
Example:
$phgstatsadmin = "phgstats/admin/index.php";
FIND:
define ('PHGDIR', 'phgstats/');
EDIT:
replace phgstats with the proper folder, relative to your forum root.
Save and close servers.php
Upload servers.php to your forums root directory
STEP 3:
Go to AdminCP -> Styles & Templates -> Style Manager
For each style, choose Main CSS and scroll to the very bottom. In the bottom Additional CSS Definitions box, add the following code:
download phgstats.inc.php
upload phgstats.inc.php into the phgstats/main/ directory.
NOTE: you can compare the original file that is in that directory with the custom file i have included. the ONLY edits that i made in that file was the addition of the classes. [<table class="customclass">, etc.]
STEP 5:
Add your servers. Open phgstats/settings/config.inc.php and follow the examples.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
er..it messed up my portal page so I tried to uninstall it. but now I get a fatal error on my home/portal page.
Code:
Warning: require([path]/modules/VBAGameServerModule.php) [function.require]: failed to open stream: No such file or directory in [path]/includes/vba_cmps_include_top.php on line 297Fatal error: require() [function.require]: Failed opening required '/home/clantsu/public_html/forums/modules/VBAGameServerModule.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/**********/public_html/forums/includes/vba_cmps_include_top.php on line 297
Very nice mod, but there is one more edit needed to be done.
In servers.php:
Find:
Code:
define ('PHGDIR', 'phg__stats/');
Replace "phg__stats/" with the name of your folder. By default: "phgstats/".
yes, that needs to be changed as well, thank you for catching that.
Quote:
Originally Posted by GrendelKhan{TSU
I assume that relative to one's forums root folder (ie: the folder that you upload phgstats to)?
correct
Quote:
Originally Posted by GrendelKhan{TSU
er..it messed up my portal page so I tried to uninstall it. but now I get a fatal error on my home/portal page.
Code:
Warning: require([path]/modules/VBAGameServerModule.php) [function.require]: failed to open stream: No such file or directory in [path]/includes/vba_cmps_include_top.php on line 297Fatal error: require() [function.require]: Failed opening required '/home/clantsu/public_html/forums/modules/VBAGameServerModule.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/**********/public_html/forums/includes/vba_cmps_include_top.php on line 297
HELPP!!!!
there is no VBAGameServerModule.php file, unless you downloaded a file from one of the other threads i linked to. i'm curious to why it would even affect your CMPS, it has nothing to do with CMPS. could you detail what you did a bit more?