TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 135
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 116
  • Total: 116

Battlefield 2 stats page

Started by humanporkrind, February 19, 2007, 02:17:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Porky

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


Brainpecker's BF2 stats v2.12 -www.Brainpecker.com

mythbuster

i cant get the whole stats into an article w/ out scrolling.

any way to achieve this?

Porky

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.

mythbuster

i did but my forum is only 800 wide and the stats pages arent fitting in an article even at 100% or 800 px

Porky


mythbuster

#5
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?

BCB

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?

BCB

never mind on the above I went to brainpicker and got them from there.

mythbuster

February 26, 2007 ----------------------------------------------------------------------

Porky

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

This website is proudly hosted on Crocweb Cloud Website Hosting.