wpeloquin
06-19-2008, 10:00 PM
Most of the work came from the following 2 hacks:
https://vborg.vbsupport.ru/showthread.php?t=101008 (the author hasn't been online since Sep 2007 / in 3.5 section.)
https://vborg.vbsupport.ru/showthread.php?t=118347 (No longer supported / in 3.5 section)
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:
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:
table.phgrefresh{
color: #000000;
background: #acacac;
border: 1px solid #000000;
}
table.phg1{
font-weight: bold;
color: #000000;
border-spacing: 5px;
border-right: 1px solid #000000;
border-left: 1px solid #000000;
border-bottom: 1px solid #000000;
}
td.phg2{
border-spacing: 5px;
border-top: 1px solid #000000;
}
table.phg3{
color: #000000;
border-spacing: 5px;
}
table.phg4 th{
font-weight: bold;
color: #000000;
border-spacing: 5px;
border-bottom: 1px solid #000000;
}
a.phgstats:link, a.phgstats:visited, a.phgstats:active {
text-decoration: underline;
color: #222200;
}
a.phgstats:hover {
text-decoration: none;
color: #535353;
}
a.phgstats2:link, a.phgstats2:visited, a.phgstats2:active {
font-size: 8px;
text-decoration: none;
color: #222200;
}
a.phgstats2:hover {
font-size: 8px;
text-decoration: underline;
color: #535353;
}
.phgstats2 td.auth {
color: #222200;
font-size: 8px;
}
STEP 4:
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.
https://vborg.vbsupport.ru/showthread.php?t=101008 (the author hasn't been online since Sep 2007 / in 3.5 section.)
https://vborg.vbsupport.ru/showthread.php?t=118347 (No longer supported / in 3.5 section)
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:
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:
table.phgrefresh{
color: #000000;
background: #acacac;
border: 1px solid #000000;
}
table.phg1{
font-weight: bold;
color: #000000;
border-spacing: 5px;
border-right: 1px solid #000000;
border-left: 1px solid #000000;
border-bottom: 1px solid #000000;
}
td.phg2{
border-spacing: 5px;
border-top: 1px solid #000000;
}
table.phg3{
color: #000000;
border-spacing: 5px;
}
table.phg4 th{
font-weight: bold;
color: #000000;
border-spacing: 5px;
border-bottom: 1px solid #000000;
}
a.phgstats:link, a.phgstats:visited, a.phgstats:active {
text-decoration: underline;
color: #222200;
}
a.phgstats:hover {
text-decoration: none;
color: #535353;
}
a.phgstats2:link, a.phgstats2:visited, a.phgstats2:active {
font-size: 8px;
text-decoration: none;
color: #222200;
}
a.phgstats2:hover {
font-size: 8px;
text-decoration: underline;
color: #535353;
}
.phgstats2 td.auth {
color: #222200;
font-size: 8px;
}
STEP 4:
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.