Index of /gta3rockstarter/Statfink
Name Last modified Size Description
Parent Directory 14-May-2009 10:24 -
changelog.txt 16-Sep-2007 22:15 8k
chat.php 16-Sep-2007 22:15 5k
datetime.js 16-Sep-2007 22:15 3k
helm/ 16-Sep-2007 22:16 -
index.php 16-Sep-2007 22:15 2k
matchupstyles.css 16-Sep-2007 22:15 2k
w.php 16-Sep-2007 22:15 2k
********************
Statfink 1.0
********************
If something majorly is messed up, look for a quick fix release on sunday or check the sourceforge help
forums, don't just give up!
__________________________
Special Note to upgraders from version 0.9.8 or lower to this version:
An IMPORTANT STEP to upgrading is you'll need to either reinitialize your databases, or
use the database update script to update your databases. To do this, after uploading the new version,
point your browser at:
http://www.yourhost.com/statfink/helm/config/upgradedb.php
The database update script will update your databases without losing all your league settings.
If you want to reinitialize your database completely:
http://www.yourhost.com/statfink/helm/config/installdb.php
Choosing this option completely reinitializes your databases, forcing you to reconfigure all your leagues.
__________________________
Another note: Feel free to visit the Statfink project forums on sourceforge for help or to report
bugs. Address here:
http://sourceforge.net/forum/forum.php?forum_id=495324
Sometimes bugfixes are posted there before they make it out as an official version.
__________________________
0 Preface
1 Requirements
2 Installation
3 Usage
--------------------
0 Preface
--------------------
Statfink will allow you and your friends to view live stats and scores of your fantasy football
league without paying a dime.
This program currently only works out of the box with Yahoo fantasy football leagues. It would
require quite a bit of tinkering to make it work with other leagues. This should change in the
future, if you really want to make it work with your non-yahoo league, see the bottom of this
file.
Statfink was originally written for my personal use, and I've decided to release it out to the
public under the GPL. It is written using PHP/MySQL and is meant to be run on a webserver by
one member of a fantasy football league so that the rest of the members of the league can view
the output. The scripts that do all the work are in the 'helm' directory, and they output
static html pages to the directory directly above 'helm' for people to view.
--------------------
1 Requirements
--------------------
-PHP 4.1 or higher http://www.php.net/
-MySQL (or access to a server running thiss)
-cURL(usually already installed on linux sservers) http://curl.haxx.se/download.html
-A web server(Apache, IIS, etc)
--------------------
2 Installation
--------------------
1) Extract the files from the archive.
(in linux: tar -zxf statfink-x.y.tar.gz)
2) Copy the statfink folder to a directory accessible from the web.
(usually /somewhere/public_html/)
2a) It is STRONGLY suggested that you password protect the 'helm' directory with an .htpasswd
file. There is a nice tool (http://www.clockwatchers.com/htaccess_tool.html) there to
handle this if you don't know how. Many people have this functionality built into their
cPanel. Otherwise, anyone will be able to control your copy of statfink, which could
really ruin your day.
3) Make sure your permissions are set correctly, you can do this in an ftp client by going
to the file properties or file permissions(usually by right clicking the file). The permissions
to the statfink, statfink/helm/, and statfink/helm/config/ directories should all be "777" (or
all the boxes checked, read write exeecute for all). The reason for this is that the web server
will have to write some files to your directory in the next steps.
4) Fire up your favorite web browser and point it at the helm directory in the directory you
installed statfink into. (eg. http://www.your-host-here.com/statfink/helm/)
Click the link that says "Configure Statfink" to set up statfink. Fill out the form
completely, and then click the "Save Settings" button. This will bring you to a page telling
you everything was saved properly. If you're setting up Statfink for the first time, click
the first link to initialize your database using the database settings you just entered.
5) At this point you need to set up a league for Statfink to track. If you just clicked the
database initialization link, you're hopefully now at a page that says that it's done making
databases and that you need to set up at least one league. Enter a league name here (10
characters or less, letters and numbers only) and click the button. On the next page you'll
need to fill this form out COMPLETELY with every box containing something, at least a zero.
Click the save settings button. Congratulations! You're ready to start using Statfink on
the helm page, or if you have more leagues you want to set up, go back to the main config page.
--------------------
3 Usage
--------------------
Thankfully usage should be much easier than installation. Fire up your favorite web browser and
point it at the helm directory in the directory you installed statfink into.
(eg. http://www.your-host-here.com/statfink/helm/)
At this point you should have the helm screen up.
1) Click the 'Grab Fantasy Info' button to grab all the fantasy teams and players from your active
Yahoo fantasy football leagues. This should list all the leagues and their teams in the bottom
left frame.
If you see a bunch of these in a row, you've got your league data. If there are other things
in there(non team names), click the button again to try again. Sometimes when the servers are
overloaded it takes a second try to get all of the data(rare). Because rosters can be changed up
to the minute that a game starts, this step should be done a few minutes after the rosters are
locked for gametime to ensure an up to date fantasy roster.
This button also grabs game data from cbssportsline.com to detirmine if there are any games that have or
are currently being played for the current week.
You should see in the bottom right frame a list of all the game id's that it grabbed like this:
NFL games loaded:
NE@NYG
JAC@ATL
CAR@PIT
2) Once you're sure you got all the games that have been played or are currently live, click the
'Start Tracking!' button to fire up Statfink. It should start doing things in the right frame.
If things are changing every once in a while in the right frame, and your browser is continuously
loading, it should be working fine. Don't close this window or the live stat tracking will stop.
3) It auto-detects when a game ends and stops paying attention to it. If at any point your stats look
questionable, click the 'Stop Tracking!' button and repeat steps 1-2. Statfink now attempts to
automatically pick up new games as they start, you may not need to restart tracking manually
anymore when new games start.
4) A link should be provided on the helm page below the buttons pointing you to the front output
page. (eg. http://www.your-host-here.com/statfink/) This link won't work until you've run
Statfink at least once. Give this link to your leaguemates and they should be able to get
live stats from your page.