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

Reply
 
Thread Tools
Battlefield 2 Stats integration for VBAdvanced Details »»
Battlefield 2 Stats integration for VBAdvanced
Version: 1.00, by Oap JTRipper Oap JTRipper is offline
Developer Last Online: Aug 2011 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 12-22-2005 Last Update: 12-25-2005 Installs: 12
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

This is a module for Battlefield 2 stats - it integrates the new stats package from http://www.brainpecker.com with full authority to use it

Installation

Included is the module & a product xml file, also included is the full script for the stats. There is also a readme-installation file

Demo


Screenshot 1 is of the stats block on the homepage
Screenshot 2 is of the main stats page

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-23-2005, 06:11 PM
Oap JTRipper Oap JTRipper is offline
 
Join Date: Oct 2004
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can also edit this mod to link to your stats from this add-on

CHANGE

Code:
<if condition="$post['fieldX']">
<a href="http://bf2tracker.com/bf2_userprofile.php?bf2id=$post[fieldX]" target="_blank"><img src="$stylevar[imgdir_misc]/bf2.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[view_bf2_stats]</phrase>" border="0" /></a>
</if>
to this

Code:
<if condition="$post['fieldX']">
<a href="index.php?page=bf2stats&input1=$post[fieldX]" target="_blank"><img src="$stylevar[imgdir_misc]/bf2.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[view_bf2_stats]</phrase>" border="0" /></a>
</if>
if your homepage isnt index then change that too
Reply With Quote
  #3  
Old 12-23-2005, 06:47 PM
rb290's Avatar
rb290 rb290 is offline
 
Join Date: Oct 2005
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

whats battlefield 2 ?
Reply With Quote
  #4  
Old 12-23-2005, 07:56 PM
GoNz00 GoNz00 is offline
 
Join Date: Jan 2005
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

an online game
Reply With Quote
  #5  
Old 12-23-2005, 08:54 PM
Rhoads Rhoads is offline
 
Join Date: Dec 2004
Location: Holland
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the hack, but I get a white page with player (My PID Number) not found!
Reply With Quote
  #6  
Old 12-24-2005, 12:32 AM
SMO's Avatar
SMO SMO is offline
 
Join Date: Sep 2005
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

holy cow...exactly what i needed..however..

..i get an invalid page...like it was looking for something else...

any thoughts?

heres the edit...

main(/modules/bf2.php): failed to open stream: No such file or directory in /includes/vba_cmps_include_bottom.php on line 348
Reply With Quote
  #7  
Old 12-24-2005, 01:01 AM
SgtTechHead SgtTechHead is offline
 
Join Date: Apr 2005
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SMO
holy cow...exactly what i needed..however..

..i get an invalid page...like it was looking for something else...

any thoughts?
I had the same thing happen when I first installed. After a bit of investigation, I found that the "Invalid Page" error was being caused because of an invalid or undeclared variable for my VBA_CMPS portal path.

I found this line in the "bf2_stats/bf2_stats_tables.php" (under the uploads folder of the de-compressed hack package) file:
Code:
 
<form name="form1" method="post" action="$bburl?page=bf2stats&">
In that line, I changed the instance of "$bburl" to the actual name of my VBA_CMPS page, in my case "portal.php". Worked like a champ after that. Also found this to be the case in the template that gets installed with the product. The template, vba_portal_bf2stats, had the same line in it. I changed it there also and the optional portal block started working as well.

Nice work Oap JTRipper! Clicks *INSTALL*
Reply With Quote
  #8  
Old 12-24-2005, 01:31 AM
SMO's Avatar
SMO SMO is offline
 
Join Date: Sep 2005
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so this is what worked for you in exact form?

<form name="form1" method="post" action="portal.php?page=bf2stats&">

so mine..in my case should be

<form name="form1" method="post" action="index.php?page=bf2stats&">

bc that isnt doing anything for me..still same error
Reply With Quote
  #9  
Old 12-24-2005, 01:56 AM
SgtTechHead SgtTechHead is offline
 
Join Date: Apr 2005
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SMO
so this is what worked for you in exact form?

<form name="form1" method="post" action="portal.php?page=bf2stats&">

so mine..in my case should be

<form name="form1" method="post" action="index.php?page=bf2stats&">

bc that isnt doing anything for me..still same error
That's what worked for me. However, when I installed VBA_CMPS, I installed it in the same directory as my forum. I visited your site, and I see that yours is setup in the root directory, and your forum is under the forum directory. Not sure that my workaround will actually work for you since the paths will not be the same. Most likely, there will be other areas you will have to change in the bf2stats page in your VBA_CMPS. I notice the authors setup is the same as mine, that's probably why it works for me as I stated above.

Sorry if I got your hopes up, but that's what worked for me at least... The way to find out exactly what path it is using, is type in your PID, then click the submit. When you get the blank or invalid page, study the address that is in your "Address" bar of your browser. That will tell you exactly where the submit button is trying to take you.
Reply With Quote
  #10  
Old 12-24-2005, 02:40 AM
SMO's Avatar
SMO SMO is offline
 
Join Date: Sep 2005
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well, thanks for looking into it..i will study it a bit..see what comes up...thx again

heh..i messed around like ya said and got it working.. the only thing i have to fix its the image paths.

know here i can "correctly" edit that?
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 04:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04548 seconds
  • Memory Usage 2,298KB
  • Queries Executed 24 (?)
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
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete