vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Integration with vBulletin - Battlefield 2 Stats integration for VBAdvanced (https://vborg.vbsupport.ru/showthread.php?t=122423)

Oap JTRipper 07-27-2006 10:00 PM

Battlefield 2 Stats integration for VBAdvanced
 
What is it :
A stats package orginally built by Brainpecker for the Game Battlefield 2

Installation :
  1. Edit bf2_stats_config.php & fill in your database details
  2. Upload the entire package as is
  3. Upload the contents of the pics.rar to the pics directory in bf2stats
  4. Run bf2_stats_createMySqlTable.php
  5. Delete bf2_stats_createMySqlTable.php
  6. Go to vBa cmps Add Page & use the settings in the images included here
  7. Check your installation
  8. Also included a js file to fix the transparency issue on IE
  9. 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

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

Code:

$conf_awards_descr_file =
and

Code:

$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/co...?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

Quote:

Originally Posted by SMO
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

Quote:

Originally Posted by Pearl
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

Quote:

Originally Posted by Oap JTRipper
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

Code:

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

Quote:

Originally Posted by Oap JTRipper
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

Quote:

Originally Posted by Jericho2004
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

Quote:

Originally Posted by Pearl
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

Quote:

Originally Posted by Oap JTRipper
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

Quote:

Originally Posted by Jericho2004
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

Quote:

Originally Posted by FSFwebmaster
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?


All times are GMT. The time now is 06:00 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.01597 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete