PDA

View Full Version : Battlefield 2 Stats integration for VBAdvanced


Oap JTRipper
23 Dec 2005, 19:40
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 (http://www.oapsquad.com/forums)


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

Oap JTRipper
23 Dec 2005, 20:11
You can also edit this mod (http://www.vbulletin.org/forum/showthread.php?t=103296) to link to your stats from this add-on

CHANGE



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



to this



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



if your homepage isnt index then change that too

rb290
23 Dec 2005, 20:47
whats battlefield 2 ?

GoNz00
23 Dec 2005, 21:56
an online game ;)

Rhoads
23 Dec 2005, 22:54
Thanks for the hack, but I get a white page with player (My PID Number) not found!

SMO
24 Dec 2005, 02:32
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

SgtTechHead
24 Dec 2005, 03:01
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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


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*

SMO
24 Dec 2005, 03:31
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

SgtTechHead
24 Dec 2005, 03:56
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.

SMO
24 Dec 2005, 04:40
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?

Oap JTRipper
24 Dec 2005, 11:50
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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


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*


strange thing is I tested it using 3 installs with the cmps page called different

eg
index.php
home.php
main.php

& it worked everytime

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?

in the bf2_stats folder there is your bf2_stats_config.php page



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



that is the bit you need to change

SMO
24 Dec 2005, 16:42
cool..thx, that fixed the issue with the top graphics but I am having some issues with the "awards"...i check the url on the red x but all it is is my home page. check my site if you wish to know what i am trying to say..

Rhoads
24 Dec 2005, 16:51
I get this error above my stats page:

Warning: Division by zero in /bf2_stats/bf2_stats_class.php on line 321

:ermm:

Oap JTRipper
24 Dec 2005, 19:36
cool..thx, that fixed the issue with the top graphics but I am having some issues with the "awards"...i check the url on the red x but all it is is my home page. check my site if you wish to know what i am trying to say..

just had a look at the bare bf2_stats page on your site

this is what the script is trying to find



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



notice the double folders


I get this error above my stats page:

Warning: Division by zero in /bf2_stats/bf2_stats_class.php on line 321



you got a link cos I cant see it on your site

also with what page request are you getting it

Rhoads
24 Dec 2005, 23:58
you got a link cos I cant see it on your site

also with what page request are you getting it

It's fixed when I was playing on a server, it was my first time (holiday now) that I play on a ranked server. I have asked on brainpecker.com to, and they said that it is a bug when you have not played, they fixed in nex release.

I also have customed my vBadvanced module, you can now compare with other players.

Oap JTRipper
25 Dec 2005, 02:01
yeh i also did a search

something to do with dividing by 0

Zachery
26 Dec 2005, 08:40
Oap,

Thjen I suggest making it smaller, the rules of the forum inssit on the files being attached here, You have 24 hours to attach the files here.

Oap JTRipper
26 Dec 2005, 13:09
Oap,

Thjen I suggest making it smaller, the rules of the forum inssit on the files being attached here, You have 24 hours to attach the files here.

k done

taken the images out of the package :tired:

Zachariah
26 Dec 2005, 14:19
k done

taken the images out of the package :tired:

Attach to 2nd post :D

Zachariah
27 Dec 2005, 13:42
Is it me or or gamespy?

- I do not get any data from: bf2web.gamespy.com, did they kill the subdomain?
- I can not even call up the subdomain in the browser.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Think this is a DNS / site outage ?

Oap JTRipper
27 Dec 2005, 14:14
you cant pull data direct from that page

you need to do it through the script

you got a url

ive just tested on 2 other sites & working fine

Zachariah
28 Dec 2005, 05:19
I got it to work on the linux system.
It errors on WinNT box. - Ill play w/ it again and let ya know.

Jellymech
28 Mar 2006, 22:24
hi guys , i know am diggin this up but i need some help :)

i installed it all but am havin probs witht the images not showing , i have changed the path in the config but still no joy :(

can anyone help me out ??


by the way its a nice addon ;)

Heldenverband
19 May 2006, 12:57
Dear all,

i have a problem with this integration. If i use the stand alone version all works fine. But if i use the integratet version all data displayed but without pictures. The path is correctly.

Any idea ?

CEOPcGamingGuru
07 Jun 2006, 20:20
Does this work with vb 3.5.4?

jr1001
27 Jun 2006, 23:58
Nice Mod! Where can we get the pictures? I see you removed them from the download...

Oap JTRipper
29 Jul 2006, 19:17
updated for vB 3.6 with the new stats package

http://www.vbulletin.org/forum/showthread.php?t=122423

it will also work on vB 3.5

Shazz
29 Jul 2006, 19:18
Hasen't this already been posted once..
________
Suzuki Splash (http://www.suzuki-tech.com/wiki/Suzuki_Splash)

blindreap3r
12 Aug 2006, 19:49
What is wrong with this??
www.bf2extreme.com/modules/bf2.php

blindreap3r
14 Aug 2006, 19:49
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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


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*

nice fix. I tried to make our stats page its own page instead of haveing the players stats in a column. but i kept getting the $bburl error when you use the form on the custom page content.