|
||||
|
04-18-2013, 04:25 PM | #81 |
All Star Reserve
Join Date: Aug 2004
Posts: 656
|
|
04-18-2013, 08:19 PM | #82 |
All Star Reserve
Join Date: Aug 2004
Posts: 656
|
Fixed it. For some reason I had to enable draft timer
|
04-18-2013, 11:24 PM | #83 |
Hall Of Famer
Join Date: Nov 2002
Posts: 3,585
|
Ah, thanks for letting me know. I do recommend upgrading to 3.0.9. There are some draft fixes in between what you've got and what's posted there, although nothing related to what you described here.
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues Baseball Cards - Full list of known templates and documentation on card development. |
04-19-2013, 06:22 PM | #84 |
Minors (Rookie Ball)
Join Date: Aug 2012
Posts: 48
|
When trying to install StatsLab, no matter what I put in the config.txt file, I get the following error:
ERROR: dbopen.php file not found in SQL upload directory. Please create this file based on dbopen.php.sample. After doing so, return to this page. I am certain the I have the dbopen.php file in there. Any ideas what I could be missing? |
04-19-2013, 06:50 PM | #85 |
Hall Of Famer
Join Date: Nov 2002
Posts: 3,585
|
If you the contents of config.txt are correct and the file is there, the only other possible problem is permissions to access dbopen.php.
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues Baseball Cards - Full list of known templates and documentation on card development. |
04-22-2013, 01:38 AM | #86 |
Minors (Rookie Ball)
Join Date: Aug 2012
Posts: 48
|
I am DEFINITELY missing somethings here. What should the two files (config and dbopen) look like? I am 99.9% sure that the dbopen file is not my issue... I must have the config.txt file wrong, but it says to give the path to the installation directory. How does anything know where the db folder is?
|
04-22-2013, 02:01 AM | #87 | |
Minors (Rookie Ball)
Join Date: Aug 2012
Posts: 48
|
Quote:
|
|
04-22-2013, 02:43 AM | #88 | |
Minors (Rookie Ball)
Join Date: Aug 2012
Posts: 48
|
Quote:
|
|
04-25-2013, 12:45 AM | #89 |
Minors (Rookie Ball)
Join Date: Aug 2012
Posts: 48
|
I, for the life of me, cannot figure out how to create a widget for something as simple as standings. Can anyone offer any hints on this?
|
04-25-2013, 12:09 PM | #90 |
All Star Reserve
Join Date: Feb 2003
Location: Orange, CA
Posts: 569
|
I'm not sure what happened but our Statslab stopped updating stats, even though imports seem to go fine...
I'm assuming the problem now is that the run_development.php action is taking too much time on Dreamhost. [Thu Apr 25 09:11:08 2013] [error] [client 75.85.84.98] Premature end of script headers: run_development.php, referer: Peanuts and Cracker Jack Baseball League
__________________
DanGarion GM - Los Angeles Dodgers The Peanuts and Cracker Jack Baseball League PCJBL! Last edited by dangarion; 04-25-2013 at 12:16 PM. |
04-25-2013, 05:00 PM | #91 | ||
Hall Of Famer
Join Date: Nov 2002
Posts: 3,585
|
Quote:
Code:
/widget.php?show=standings&league_id=100&sub_league=0&division=1 Quote:
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues Baseball Cards - Full list of known templates and documentation on card development. |
||
04-25-2013, 05:35 PM | #92 | |
All Star Reserve
Join Date: Feb 2003
Location: Orange, CA
Posts: 569
|
Quote:
I went ahead and repaired and optimized the database and ran the development report again. It is still showing out of date and not working. Should I just delete all the data in player_developement?
__________________
DanGarion GM - Los Angeles Dodgers The Peanuts and Cracker Jack Baseball League PCJBL! Last edited by dangarion; 04-25-2013 at 06:28 PM. |
|
04-26-2013, 12:05 AM | #93 |
Hall Of Famer
Join Date: Nov 2002
Posts: 3,585
|
I'd be happy to take a look at it before you try that if you like.
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues Baseball Cards - Full list of known templates and documentation on card development. |
04-26-2013, 01:10 AM | #94 |
Minors (Rookie Ball)
Join Date: Aug 2012
Posts: 48
|
That works and seems so simple... Yet, if I take out "&division=1" I thought it would show the whole sub league, but no such luck. Where is the flaw in my logic? Sorry for taking up so much time with my rookie questions, just trying to understand!
|
04-26-2013, 01:07 PM | #95 |
Hall Of Famer
Join Date: Nov 2002
Posts: 3,585
|
Nope, it just doesn't work that way... specifying a division is required.
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues Baseball Cards - Full list of known templates and documentation on card development. |
04-27-2013, 03:19 AM | #96 |
Minors (Rookie Ball)
Join Date: Aug 2012
Posts: 48
|
|
04-27-2013, 05:32 AM | #97 |
Minors (Rookie Ball)
Join Date: May 2008
Posts: 43
|
Hello, does statlab function for offline game, or quickstart game? Is there a stats software to analyze the stats of our game when you just play quickstart game and non online game? Thank you for answer
|
04-29-2013, 02:09 PM | #98 | ||
Hall Of Famer
Join Date: Nov 2002
Posts: 3,585
|
Quote:
As for top performers, there's always a question of exactly what you mean by that. Here's a sample of a stat leaderboard: Code:
widget.php?league_id=100&sub_league=0&stat=vorp&topX=5 Quote:
As for running StatsLab for a non-online league, yes this is possible, however it needs to run in the context of a PHP website with MySQL. For example, it's possible to set up an Apache server on your PC and run PHP in there. You can then run StatsLab locally for any of your leagues. This is one of the ways in which I test StatsLab, and there are tutorials online on how to set up Apache with PHP and MySQL for either PC or Mac. As for tools other than StatsLab to analyze your league, there is OOTP:OU, which also requires a website context, and there was a tool a few versions ago that would read the dat files directly. However, I don't recall seeing a recent update to it.
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues Baseball Cards - Full list of known templates and documentation on card development. |
||
05-01-2013, 12:48 PM | #99 | |
Minors (Rookie Ball)
Join Date: Aug 2012
Posts: 48
|
Quote:
As for the stats, I like being able to list guys by VORP. Is there any way to get it to show the stats too or am I out of luck? One final question that may limit firther questions: Is there a list of usable functions for the widgets.php page so I can tinker some on my own. I have no idea what does or doesnt work other than what you have showed me so far |
|
05-01-2013, 01:50 PM | #100 |
Hall Of Famer
Join Date: Nov 2002
Posts: 3,585
|
Widgets are intended to be a quick, modular way to get some information about your league to your home page. The modularity allows for flexibility, such as putting it behind a jQuery tabs, jQuery accordion, or something similar.
There isn't a way to specify additional stats to display with a player leaderboard widget. Anyway, here is some documenation that should help: OnDemand Widgets On‐demand widgets allow you to call some code to display snippets of data on your website outside of StatsLab. The script that creates them is widget.php, and by including a link to the widget.php file with the appropriate parameters defined, you can get a widget to display on your website that will automatically display the most recent stats after every SQL upload. The following parameters can be applied to widgets.php to generate a widget:
The following stats are available for player stats widgets (note that this list is more extensive than for static widgets): Batting Stats: AB, H, 2B, 3B, HR, RBI, R, SB, CS, BB, K, SF, SH, IBB, HP, GDP, PA, AVG, OBP, SLG, OPS, wOBA, VORP Pitching Stats: W, L, SV, IP, K, BB, R, ER, G, GS, HP, HA, BF, GB, FB, HRA, BK, GF, QS, CG, SHO, HLD, ERA, WHIP, VORP To include any of the above stats, set the stat parameter equal to the lowercase version of the stat (e.g. avg=batting average), with the following exceptions: K, BB, R, G, GS, HP, and VORP for pitchers should be preceded with a “p” to differentiate them from the batter stat version (e.g.: k=batting K’s, pk=pitching K’s). Use “s” for SV. Examples:
Widget CSS wdgT – Applied to <table> tags wdgH – Applied to <tr> tags contained inside <thead> tags. wdgH_l – Applied to <td> tags inside <thead> tags that might require different alignment. wdg1, wdg2 – Applied to alternating <tr> tags wdg1_l, wdg2_l – Applied to alternating rows <td> tags that might require different alignment wdgUL – Applied to <ul> tag in division leaders widget wdgLI – Applied to <li> tags in division leaders widget
__________________
StatsLab- PHP/MySQL based utilities for Online Leagues Baseball Cards - Full list of known templates and documentation on card development. Last edited by fhomess; 05-01-2013 at 01:52 PM. |
Bookmarks |
Thread Tools | |
|
|