Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
phgstats Integration Details »»
phgstats Integration
Version: 1.00, by wpeloquin wpeloquin is offline
Developer Last Online: Oct 2021 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.7.1 Rating:
Released: 06-19-2008 Last Update: 06-25-2008 Installs: 13
Re-useable Code Additional Files Translations  
No support by the author.

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:
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:
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:
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.

Comments
  #2  
Old 06-20-2008, 08:39 PM
wpeloquin wpeloquin is offline
 
Join Date: May 2006
Location: Behind you...
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If this is against some sort of copyright rule, feel free to delete this. i left all credits intact.
Reply With Quote
  #3  
Old 06-22-2008, 05:52 AM
Firecracker Firecracker is offline
 
Join Date: Jun 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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/".
Reply With Quote
  #4  
Old 06-23-2008, 03:10 PM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

omg.. thank you! been waiting for this. will try to install now

edit:

Quote:
EDIT:
replace path_to_phgdirectory with the proper folder.
Example: phgstats/admin/index.php
I assume that relative to one's forums root folder (ie: the folder that you upload phgstats to)?
Reply With Quote
  #5  
Old 06-23-2008, 04:08 PM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 297
 
Fatal 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!!!!
Reply With Quote
  #6  
Old 06-26-2008, 02:41 AM
wpeloquin wpeloquin is offline
 
Join Date: May 2006
Location: Behind you...
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Firecracker View Post
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 View Post
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 View Post
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 297
 
Fatal 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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:35 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04371 seconds
  • Memory Usage 2,266KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete