PDA

View Full Version : Integration with vBulletin - Battlefield 2 Stats integration for VBAdvanced


Oap JTRipper
07-27-2006, 10:00 PM
What is it :
A stats package orginally built by Brainpecker (http://www.brainpecker.com) for the Game Battlefield 2

Installation :

Edit bf2_stats_config.php & fill in your database details

Upload the entire package as is

Upload the contents of the pics.rar to the pics directory in bf2stats

Run bf2_stats_createMySqlTable.php

Delete bf2_stats_createMySqlTable.php

Go to vBa cmps Add Page & use the settings in the images included here

Check your installation

Also included a js file to fix the transparency issue on IE

If your cmps file is called anything else than index.php you can change this setting in bf2_stats_config.php ( line 51-) $conf_embed_in_page = "index.php"


Extras

Improved the images by using transparent png's & different weapon images form the origianl script

Improved layout especially for vBa

You can mess with the settings in bf2_stats_config.php to give different output

Thanks to Brainpecker for the original script

Demo
Oapsquad (http://www.oapsquad.com/forums/index.php?page=bf2stats)

TCooper
08-07-2006, 07:27 AM
i checked my settings and seems to be ok but I dont seem to have some of my images appear maybe due to my advanced index page is located http://fraggersforever.com/index.php and the forums are in http://fraggersforever.com/forums/
Would that be the problem?

Oap JTRipper
08-07-2006, 07:55 AM
yeh have a loof in the config & play around with the settings for

$conf_awards_descr_file =

and

$conf_picsPath =

you may need to add forums in front

TCooper
08-11-2006, 10:55 AM
I basically copied my index.php from vbadvanced into directory forums but renamed it to content.php and edit the script where it called index.php to content.php... for example http://fraggersforever.com/forums/content.php?page=bf2stats

SMO
08-18-2006, 03:19 AM
is it possible to add the officer ranks?

Oap JTRipper
08-19-2006, 09:25 AM
is it possible to add the officer ranks?

ill have a look

blindreap3r
08-20-2006, 10:02 PM
awesome.

Pearl
08-28-2006, 12:42 PM
Does it have to be uploaded in teh forum dir??
I tried in the public_html but then i had an error on the index.php
I had to remove "bf2stats/ to make it work.

then it was loading but it couldent find all of the db modules until i removed again soem code in classes.php ,and then after all that it couldent find pictures os again iedited it until itshowed the pics but then it did not show the popups over the pics.

and then i got tired of all the editing and i just came to ask questions:p

Pearl
08-28-2006, 12:49 PM
<a href="http://www.clanlife.eu/index.php?page=bf2stats&input1" target="_blank">http://www.clanlife.eu/index.php?page=bf2stats&input1</a>
this is a clean install in forums dir
no edits whatsoever to make it work but no pics

changing the pic variable in config will not work.

small piece of code from stats_unlock

[QUOTE] echo "<td class='alt1' valign='top'>";
echo "<table class='tborder' cellspacing='$conf_awards_cellspacing' cellpadding='$conf_awards_cellpadding'><tr class='alt1'><tdimg src='bf2stats/pics/$fn'width='128' height='34'></td></tr>";
echo "<tr class='alt1'><td class='alt1' QUOTE]

its not even looking to config.php?

<tdimg src='bf2stats/pics/$fn'

Oap JTRipper
08-28-2006, 04:52 PM
http://www.clanlife.eu/index.php?page=bf2stats&input1
this is a clean install in forums dir
no edits whatsoever to make it work but no pics

changing the pic variable in config will not work.

small piece of code from stats_unlock


echo "<td class='alt1' valign='top'>";
echo "<table class='tborder' cellspacing='$conf_awards_cellspacing' cellpadding='$conf_awards_cellpadding'><tr class='alt1'><tdimg src='bf2stats/pics/$fn'width='128' height='34'></td></tr>";
echo "<tr class='alt1'><td class='alt1' QUOTE]

its not even looking to config.php?

<tdimg src='bf2stats/pics/$fn'


all the pics are there

Jericho2004
08-30-2006, 03:28 AM
When I check the installation after it creates the db table, it goes to a white page. After I add the page in vba and try to go to it, I get alot of errors on a white page that refer to the /bf2stats/bf2_stats_main.php. I followed the instructions completely and my vba is set to index.php. Any ideas?

Thanks.

Oap JTRipper
08-30-2006, 01:10 PM
where did u upload the files to?
have you got a link i can check?

Jericho2004
08-30-2006, 03:04 PM
Thanks for the reply. I uploaded the bf2stats folder to root of my site. I set up the vba page like in the instructions. The database installed fine, I just can't get into the page. Here you go:

http://www.gamingregime.com/bf2stats/index.php

http://www.gamingregime.com/index.php?page=bf2stats&

Oap JTRipper
08-30-2006, 04:20 PM
the errors you are getting is a setting on your server

try & contact your host

Jericho2004
08-30-2006, 05:12 PM
the errors you are getting is a setting on your server

try & contact your host
I have a dedicated server with my webhost. Do you know what needs to be adjusted? I can probably do it myself.

Oap JTRipper
08-30-2006, 07:02 PM
im not sure as I dont use windows for my hosting but think its something to do with open_basedir

Jericho2004
08-30-2006, 07:21 PM
I'm using Linux, not windows. :)

Oap JTRipper
08-30-2006, 09:24 PM
lol ok try this in bf2stats_main.php find


include("bf2_stats_config.php");
include("bf2_stats_class.php");
include("bf2_stats_tables.php");
include("bf2_stats_medals.php");
include("bf2_stats_unlocks.php");
include("bf2_stats_award_req.php");
include_once("bf2_stats_more_functions.php");


& put in the full path to these files

Jericho2004
08-31-2006, 01:24 PM
Maybe this has something to do with the fact that I'm using php 5. I tried putting my full path in. I had to edit most php files and I got the page to look right, but I cannot do any search without getting more errors on the php files.

Pearl
09-01-2006, 03:44 PM
all the pics are there

I know i created 2 folders one in the forum root and one in public_html.
I also had to edit the location of fixpgn.js, i had to edit like 9 files but anyway it works

now i have another problem lol i also used your teamstats i entered 10 bf2 id's but there only showing 7?

any ideas?

cheers
Lynn

Oap JTRipper
09-01-2006, 09:00 PM
Maybe this has something to do with the fact that I'm using php 5. I tried putting my full path in. I had to edit most php files and I got the page to look right, but I cannot do any search without getting more errors on the php files.
hmm im using php5 too

Oap JTRipper
09-01-2006, 09:03 PM
I know i created 2 folders one in the forum root and one in public_html.
I also had to edit the location of fixpgn.js, i had to edit like 9 files but anyway it works

now i have another problem lol i also used your teamstats i entered 10 bf2 id's but there only showing 7?

any ideas?

cheers
Lynn

its got something to do with activity if they havent played for a while they drop off

Pearl
09-02-2006, 01:28 PM
its got something to do with activity if they havent played for a while they drop off

I assumed that, but its always good to ask :)

thanks.

Jericho2004
09-03-2006, 07:57 PM
Very strange. The stand alone version works fine for me, but this release doesn't work at all.

Pearl
09-21-2006, 03:06 PM
Very strange. The stand alone version works fine for me, but this release doesn't work at all.
I had the same problem but with some edits u can make it work, please describe your problem maybe i can help.

PcGamer
10-01-2006, 11:53 AM
Need some help...

I got some pictures to show by adjusting the path in the unlocks.php file, but I still can't get the Stars, Ribbons, Badges, and medal pics to show up.

Link: http://www.pc-gamers.net/index.php?page=bf2stats

When I select properties on the broken image, no path is listed. This seems like it would be easy to fix... but I just can't find the problem.

Thanks

Pearl
10-01-2006, 01:29 PM
same problem as i had.
your forums and portal have 2 different maps and changing the link in cfg of bf2stats will not work.
duplicate the image folder of bf2stats and put it in your CMPS_index.php diectory that will work.

FSFwebmaster
10-02-2006, 07:05 AM
does this work with other game stats? like CS:S & jo

Pearl
10-02-2006, 02:29 PM
does this work with other game stats? like CS:S & jo
for css use hlstatsx, both web and server based.

Foxtrotelite
04-04-2007, 04:34 PM
Well, I cant get this mod working worth anything. I have changed paths, edited files etc, the only thing i can get is it to display the "Nick or PID 1" search, I do a search and takes me to a "Invalid Page Specified"

Where is it trying to get this info from?

SuperTaz
05-28-2007, 07:34 PM
Oap JTRipper,
Is there a way that you can also make a stats tracker hack for Battlefield 2142? I found a site that has a stats tracker here: http://www.bf2142stats.nl/ and I would like to have that one as well. You did a great job making the hack for BF2. Let me know.

Thanks,

Warden-B-

SuperTaz
06-02-2007, 08:01 PM
Did you get the officer ranks yet?

Whitey193
06-10-2007, 11:52 PM
Got this working eventually as I'm still a bit new at all this but some of the pics are missing. Like the rank_15 (major) (13 and above) and air combat medal.

Any help on this?

Thx,

Whitey.. :D

SuperTaz
06-30-2007, 08:31 AM
Can you remake it to use http://www.bf2s.com/player/ ? This one is missing a few features like what server a player is in and the new higway tampa map along with a few others.

SuperTaz
08-18-2007, 08:51 PM
I can't get the navbar links to work right when looking at someone's stats. Is there a coding error. It only happens with IE and not firefox

SpeedyHire
08-22-2007, 07:35 AM
does nothing here can get the page to show the search box, when you enter pid r name and hit go it goes abck to main portal page again. ho well.thanx anyway

lane
09-09-2007, 01:38 AM
Hi Guys,

I have some issues here. I have it installed and setup, but can't get the links to work properly. I have the page up: http://www.servercommand.org/portal.php?pageid=bf2stats

Soon as you click the link to search it goes to the forums, index.php. I have my cmps set to portal.php and made the setting needed in the bf2_stats_config.php for the portal, but when you try to search it goes to the incorrect page.

Does anyone have any idea?

SuperTaz
09-11-2007, 05:39 AM
Is this compatible with version 3.6.8?

ShawneyJ
09-18-2007, 11:12 PM
nice :)

GDeduaro
10-03-2007, 09:05 PM
im getting this errors: http://czmklan.com/bf2stats/index.php

Warning: include(bf2stats/bf2_stats_main.php) [function.include]: failed to open stream: No such file or directory in /home/mundozun/public_html/czmklan.com/bf2stats/index.php on line 9

Warning: include() [function.include]: Failed opening 'bf2stats/bf2_stats_main.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mundozun/public_html/czmklan.com/bf2stats/index.php on line 9

can someone please help me?

SirShaw
10-05-2007, 10:03 PM
does not work correctly in vb 3.6.7 or 3.6.8. Dont waste your time trying to install it.

UPDATE: does work with 3.6.7 and 3.6.8 needs some editing for the medals to display correctly

goto line 182 in bf2_stats_medals.php and find:

if(file_exists("$path/".$id."_$level".$ia.".png")) {
$ret = "$path/".$id."_$level".$ia.".png";
} else {

and change to
if(file_exists(" <<PUT YOUR PATH TO YOUR BF2STATS DIRECTORY HERE>> ".$path."/".$id."_".$level.$ia.".png")) {
$ret = $path."/".$id."_".$level.$ia.".png";
} else {


save, upload and images should work again for the awards.

butch3r
11-19-2007, 11:29 PM
Is there any support on this mod?

butch3r
11-28-2007, 07:28 AM
Can anybody help me with this mod? I receive an error:
Fatal error: Call to a member function highLow() on a non-object in /..link to bf2_stats_tables.php/ on line 546

gdavis480
01-31-2008, 06:17 PM
Hi I think I got it to work partially with Vbulletin 3.7.0 Beta 4, but when enter my Nick or PID 1 into it. It goes back to the same page of where I enter my Nick or PID 1.

http://www.onebigcommunity.net/index.php?page=bf2stats

Tim_GPN
02-07-2008, 12:51 AM
This mod would be perfect for my clan, however i dont use vBAdvanced.

Is there a way i am able to use this mod without Advance, or do you know if there is a BF2 Stats mod which can be used for just vB forum board installations - just like another page such as Squad Rules?

Any info would be greatly appreciated.

butch3r
02-09-2008, 11:44 AM
Hi I think I got it to work partially with Vbulletin 3.7.0 Beta 4, but when enter my Nick or PID 1 into it. It goes back to the same page of where I enter my Nick or PID 1.

http://www.onebigcommunity.net/index.php?page=bf2stats

It works fine for me on localhost with vB 3.7.0 b4 and vBa 3.0.0

check $conf_add_to_url = "?page=bf2stats&"; in bf2_stats_config.php

gdavis480
02-10-2008, 04:17 AM
It still doesn't work, cause this is where it goes after i enter my PID and click go. http://www.onebigcommunity.net/index.php?input1=47957996&input2=&go=go
when I enter this "?page=bf2stats&" into the bf2_stats_config.php.

butch3r
02-10-2008, 01:27 PM
Hey - one more thing: looks like you uploaded mod to root dir, but you should do in bf2stats folder

EDIT: or maybe not?? but try this link: http://www.onebigcommunity.net/index.php?page=bf2stats&input1=69383080 it works
and looks like i can help you with that//

gdavis480
02-10-2008, 11:15 PM
it is in the bf2stats folder lol. but it reads the files as if it wasnt. its wierd

butch3r
02-10-2008, 11:37 PM
My link works fine, so the problem is: in config.php and (or) maybe in form (tables.php)

gdavis480
02-11-2008, 03:31 AM
ok i got rid of all the errors except 1 but how do I get go button to go to the right link instead of going back to home page?

butch3r
02-11-2008, 07:10 AM
Try to re-upload all .php files.. after that change setting for mysql in bf2_stats_config.php
and on line #31 in bf2_stats_class.php:

$this->picsPath = "bf2stats/pics";

that's all. Please do not change any other setting

Stryker412
02-12-2008, 04:09 PM
If we already had the stats program installed, should we start at adding as a module in VBA?

butch3r
02-12-2008, 11:04 PM
Only as page

Stryker412
02-13-2008, 01:05 AM
Hi Guys,

I have some issues here. I have it installed and setup, but can't get the links to work properly. I have the page up: http://www.servercommand.org/portal.php?pageid=bf2stats

Soon as you click the link to search it goes to the forums, index.php. I have my cmps set to portal.php and made the setting needed in the bf2_stats_config.php for the portal, but when you try to search it goes to the incorrect page.

Does anyone have any idea?

I am getting the same thing, were you able to fix this?

butch3r
02-13-2008, 06:03 AM
Change in config.php
$conf_add_to_url = "?page=bf2stats&";
to
$conf_add_to_url = "?pageid=bf2stats&";
or in vBa settings change pageid to page

Stryker412
02-13-2008, 10:25 AM
Change in config.php
$conf_add_to_url = "?page=bf2stats&";
to
$conf_add_to_url = "?pageid=bf2stats&";
or in vBa settings change pageid to page

Yep I already did that.

http://www.shatteredplanet.org/index.php?pageid=bf2stats

uaiteam
02-13-2008, 02:45 PM
Please I need some help, I have vba cmps 3.0.0 and vbulletin 3.6.8, the installation works fine but when I imput the nick or id, it redirect me to my homepage and nothing happens. Whats wrong?

My site:www.uaiteam.com

butch3r
02-13-2008, 05:15 PM
Yep I already did that.

http://www.shatteredplanet.org/index.php?pageid=bf2stats

Please I need some help, I have vba cmps 3.0.0 and vbulletin 3.6.8, the installation works fine but when I imput the nick or id, it redirect me to my homepage and nothing happens. Whats wrong?

My site:www.uaiteam.com

You both need to change vBa setting "Page Variable" from "pageid" to "page"

Looks like i'm developer of this mod :D

Offtop:
You can check my modification of subject at http://alcocrew.com/bf2/index.php
its not yet integrated cause of too many custom css parameters, but a lot of other work done

uaiteam
02-14-2008, 11:13 AM
Thx, it's working now.
One more thing, the images are not apearing, how can I fix these???????
Help

Stryker412
02-14-2008, 12:02 PM
You both need to change vBa setting "Page Variable" from "pageid" to "page"

Looks like i'm developer of this mod :D

Offtop:
You can check my modification of subject at http://alcocrew.com/bf2/index.php
its not yet integrated cause of too many custom css parameters, but a lot of other work done

The problem is, if I do that my other pages will stop working.

Seems like no matter what you put in the line: $conf_add_to_url = it does nothing. There has to be a line of code somewhere that's not reading it correctly.

Stryker412
02-14-2008, 02:58 PM
You both need to change vBa setting "Page Variable" from "pageid" to "page"

Looks like i'm developer of this mod :D

Offtop:
You can check my modification of subject at http://alcocrew.com/bf2/index.php
its not yet integrated cause of too many custom css parameters, but a lot of other work done

You going to release your version? I like it better. :D

butch3r
02-14-2008, 05:07 PM
Thx, it's working now.
One more thing, the images are not apearing, how can I fix these???????
Help

line #31 in bf2_stats_class.php:

$this->picsPath = "bf2stats/pics";

butch3r
02-14-2008, 05:12 PM
The problem is, if I do that my other pages will stop working.

Seems like no matter what you put in the line: $conf_add_to_url = it does nothing. There has to be a line of code somewhere that's not reading it correctly.

you can also check line #492 in bf2stats_tables.php
?><form name="form1" method="post" action="index.php?page=bf2stats&input1">
change "page" to "pageid"

You going to release your version? I like it better. :D
not sure, cause it needs a lot of work on reverse translation (russian -> english)

gdavis480
02-14-2008, 09:13 PM
Hey I got the bf2stats to work right finally but I got some images missing even though I uploaded them all.

http://www.onebigcommunity.net/index.php?page=bf2stats&input1=69383080

butch3r
02-14-2008, 10:30 PM
You can look at source of generated page and find paths to missing images

SuperTaz
02-14-2008, 10:51 PM
If you have CMPS, make sure you have all the variables entered as well or you will not get all the images shown. I have this mod on my site and it is awesome.

gdavis480
02-15-2008, 12:24 AM
I got the variables set right , but the images that are missing aren't in the pics.zip, pics1.zip or the pics2.zip I looked up the image names and there not in those zip files.

this is what I get for the path of the missing image http://www.onebigcommunity.net/

all the other images show. It's just one image that I need lol

SuperTaz
02-15-2008, 04:58 AM
go to www.oapsquad.com and talk to the author in the forums. He helped me out a lot. He has a new zip file there. Just look for the thread BF2 stats tracker or BF2142 stats tracker.

gdavis480
02-15-2008, 07:28 AM
I couldn't find it

butch3r
02-15-2008, 10:22 AM
<a href="http://www.brainpecker.com/download.php?fn=bf2_stats_pictures.zip" target="_blank">http://www.brainpecker.com/download....s_pictures.zip</a>

this are Brainpeckers pics, try em

Stryker412
02-15-2008, 12:58 PM
go to www.oapsquad.com and talk to the author in the forums. He helped me out a lot. He has a new zip file there. Just look for the thread BF2 stats tracker or BF2142 stats tracker.

I didn't see any new zip file, where is it?

Matais
02-17-2008, 07:26 PM
hello :D i succesfully installed the tables it said but when i go on my

http://www.ready2rumble.org/bf2stats/index.php?pageid=bf2stats

its says that lol ^^

doesnt looks like variables are working :Z i created config file right because it made the tables in vbulletin, i checked XD in phpmyadmin

or http://www.ready2rumble.org/index.php?pageid=bf2stats

tehtide
02-29-2008, 01:56 AM
Ok... help me out guys.

I can get the stats but I'm only seeing the rank image and the map image. All others are not showing up.

I'm using VB 3.7 and vBa 3.0.0.0 (Gold). Any help is appreciated.

Wacky
05-05-2008, 02:53 AM
I didn't see any new zip file, where is it?

You have to be logged in to the forums in the general chat area:

http://www.oapsquad.com/forums/findex.php

wobbly
06-02-2008, 11:17 AM
Ive just logged on and cannot find the zip file in general chat area of the forums.

SuperTaz
01-02-2011, 03:41 PM
Can you make this mod work for v4.1.0PL2? :)

SuperTaz
05-17-2011, 01:54 AM
This would be great for vB 4.1.3

SirShaw
05-17-2011, 05:02 AM
Ive gotten the brainpecker bf2 script (which this mod uses) to work on vB 4+ using a combination of hacks here. I used the webtemplates mod and added the toplist as a widget to my vB cms. Took a bit of doing but it works!

my site is here: http://www.knightsofkarbala.com

SuperTaz
05-22-2011, 12:33 AM
I got it to work for my site as well.