TinyPortal

Development => Block Codes => Topic started by: Porky on February 19, 2007, 02:17:20 AM

Title: Battlefield 2 stats page
Post by: Porky on February 19, 2007, 02:17:20 AM
Ok I found a good script for all those Battlefield 2 groups. Just Download the following files and follow the readme in the zip.

First DB setup
open bf2_stats_config.php
look for
and add your info
// database config
$db_hostname = "localhost";
$db_name = "";
$db_login = "";
$db_pw = ""


To make it view live stats
look for
// main config
$conf_cache_time = 64*64*12; // in seconds; how long shall the data be cached in the database,

Make it all 0's like this 0*0*0

Stled off of CSS so completely adjustable to match your site
add to a php article
  echo '<IFRAME src="http://wwwYOURSITE.com/bf2_stats/" width="100%" height="5000" marginwidth=0 marginheight=0 frameborder=0 scrolling=no></IFRAME>';

Make the height and width as needed for your site.

DEMO (http://www.porkrindstudios.com/forum/index.php?page=10)


Brainpecker's BF2 stats v2.12 -www.Brainpecker.com (http://www.brainpecker.com)
Title: Re: Battlefield 2 stats page
Post by: mythbuster on February 25, 2007, 08:53:46 AM
i cant get the whole stats into an article w/ out scrolling.

any way to achieve this?
Title: Re: Battlefield 2 stats page
Post by: Porky on February 25, 2007, 02:43:34 PM
mess with the height and width from  this code

Quote from: humanporkrind on February 19, 2007, 02:17:20 AM

  echo '<IFRAME src="http://wwwYOURSITE.com/bf2_stats/" width="100%" height="5000" marginwidth=0 marginheight=0 frameborder=0 scrolling=no></IFRAME>';

Make the height and width as needed for your site.
Title: Re: Battlefield 2 stats page
Post by: mythbuster on February 25, 2007, 03:55:00 PM
i did but my forum is only 800 wide and the stats pages arent fitting in an article even at 100% or 800 px
Title: Re: Battlefield 2 stats page
Post by: Porky on February 25, 2007, 03:57:57 PM
got a link
Title: Re: Battlefield 2 stats page
Post by: mythbuster on February 26, 2007, 06:01:02 AM
how do i get the images to show on this page?

/stats/bf2_stats_award_descr.htm

the properties of 1 of the images is -

http://upload.wikimedia.org/wikipedia/en/c/c2/BF2_Ribbon_Air_Defense.png

so im guessing that image/article no longer exists?

all that shows is a red X

right now i have links to  http://ubar.bf2s.com/  from my site showing awards/etc but it would be awesome to have a custom page showing everything like ubar does but a page i can add to my site such as the ones u have for player stats..

any way to edit bf2_stats_award_descr.htm to achieve this?
Title: Re: Battlefield 2 stats page
Post by: BCB on March 08, 2007, 04:02:05 PM
i tried to download the  bf2_stats_pictures.zip (822.27 KB - downloaded 2 times.) but it comes across as a 0 file and nothing in it. anyone else having that problem with it?
Title: Re: Battlefield 2 stats page
Post by: BCB on March 08, 2007, 04:14:50 PM
never mind on the above I went to brainpicker and got them from there.
Title: Re: Battlefield 2 stats page
Post by: mythbuster on March 08, 2007, 06:22:02 PM
February 26, 2007 ----------------------------------------------------------------------
Title: Re: Battlefield 2 stats page
Post by: Porky on March 10, 2007, 01:54:35 AM
Quote from: mythbuster on February 26, 2007, 06:01:02 AM
how do i get the images to show on this page?

/stats/bf2_stats_award_descr.htm

the properties of 1 of the images is -

http://upload.wikimedia.org/wikipedia/en/c/c2/BF2_Ribbon_Air_Defense.png

so im guessing that image/article no longer exists?

all that shows is a red X

right now i have links to  http://ubar.bf2s.com/  from my site showing awards/etc but it would be awesome to have a custom page showing everything like ubar does but a page i can add to my site such as the ones u have for player stats..

any way to edit bf2_stats_award_descr.htm to achieve this?
Yes if you have a html editor you can set that page up anyway you want
Title: Re: Battlefield 2 stats page
Post by: Porky on March 10, 2007, 01:56:50 AM
Quote from: BCB on March 08, 2007, 04:02:05 PM
i tried to download the  bf2_stats_pictures.zip (822.27 KB - downloaded 2 times.) but it comes across as a 0 file and nothing in it. anyone else having that problem with it?

Had no issue with it..... downloaded just fine. Might need to clear your cache
Title: Re: Battlefield 2 stats page
Post by: mythbuster on March 10, 2007, 02:27:08 AM
well ..yea.. i guess.. if i get all the images and upload them to my webhost and edit the source of EACH image in the page html..but i dont have the images..
Title: Re: Battlefield 2 stats page
Post by: Porky on March 10, 2007, 02:41:28 AM
let me upload to my server real quick and I will send you a link
Title: Re: Battlefield 2 stats page
Post by: mythbuster on March 10, 2007, 11:38:13 AM
i just realized i had the images on my site all the time...duhhhh... but after trying to edit the page in dreamweaver its just too much trouble to edit every single image..
Title: Re: Battlefield 2 stats page
Post by: Porky on March 10, 2007, 04:51:50 PM
why don't you just start a new page and call in what you need.