Latest News: OOTP 13 Announced with Screenshots & Feature List! Pre-Order Now! - OOTP Baseball 12 Available! - iOOTP Baseball 2011 Available! - Title Bout Championship Boxing 2.5 released! - Inside the Park Baseball Patch 1.03 released, DEMO now available

Pre-Order OOTP 13, Save & Win! | OOTP 12 Off-Season Special, just $19.99!

Go Back   OOTP Developments Forums > Out of the Park Baseball 12 > OOTP Mods > OOTP Mods - Database Tools

OOTP Mods - Database Tools Do you need to take a dump? SQL gurus welcome

Reply
 
LinkBack Thread Tools Display Modes
Old 07-15-2009, 08:36 PM   #61 (permalink)
Hall Of Famer
 
Killebrew's Avatar
 
Join Date: Dec 2001
Posts: 3,271
Thanks: 41
Thanked 15x in 11 posts
Quote:
Originally Posted by fhomess View Post
Updated the download file with some fixes and enhancements:
1. Player pictures should appear correctly
2. There's now a sql_file_load.php page where you can load SQL files individually if your load button is causing timeout errors.
3. Leaderboards page now has a bottom 100 option so you can see who was the biggest waste of roster space in your league.
4. Leaderboards page now has additional draft round and draft team options.
5. Fixed date issue with dates prior to 1969 and post 2039 (php limitation).
6. Fixed a team record issue on Team Index page related to data from certain older versions of OOTP.
7. Other miscelaneous fixes.
Just an FYI: You removed the function datediff from gen_functions.php in the updated version of this app, and as a result new users won't be able to complete the initial SQL load.
Killebrew is offline   Reply With Quote
Old 07-15-2009, 10:06 PM   #62 (permalink)
All Star Starter
 
MrWorkrate's Avatar
 
Join Date: Mar 2002
Location: Raleigh, NC
Posts: 1,239
Thanks: 9
Thanked 2x in 2 posts
Is there a way to show human managers who don't control a team in the awAdmin.php voting status page? I've allowed non-GMs to login in and therefore vote for year end awards, but I can't see whether or not they've voted or who they voted for.
__________________
I used to come here a lot. Now, not so much.
MrWorkrate is offline   Reply With Quote
Old 07-17-2009, 01:20 AM   #63 (permalink)
Hall Of Famer
 
PotatoPeeler's Avatar
 
Join Date: Aug 2002
Location: Rapid City, SD
Posts: 2,929
Thanks: 7
Thanked 17x in 15 posts
I think I've pretty much got this set up. However, I do have one question. On the Exports and Draft pages, it's displaying the server time in MST. I'd prefer to have this set to CST.

The readme PDF states the following:

Quote:
Time Zone for Time Display: If your server is utilizing PHP version 5.0 or higher, you will see this option to specify the time zone you wish to have times displayed in. The time zone setting here affects display on the Export Tracker and in the Draft Utility. All draft time slots will be based on times matching this setting. The web server that hosts your website will have a predefined time zone, typically based on the physical location of the server, so this setting can be useful if most of your GM's are located elsewhere.
I'm using a MySQL 5.0 database but I'm not seeing that option. Did I do something wrong or is this just a mistake with the readme?

Attached is what I'm seeing on the Admin page.
Attached Images
 
__________________
培傑西

I have never taken a lesson on how to talk on TV in my life.
- Tim McCarver

If you need a hand, sometimes the best place to look is at the end of your own arm.

Last edited by PotatoPeeler; 07-17-2009 at 10:30 AM.
PotatoPeeler is offline   Reply With Quote
Old 07-17-2009, 12:50 PM   #64 (permalink)
Hall Of Famer
 
PotatoPeeler's Avatar
 
Join Date: Aug 2002
Location: Rapid City, SD
Posts: 2,929
Thanks: 7
Thanked 17x in 15 posts
Here's another thing I've run into.

After I change some stuff on the draft admin screen and then click the Save button, I get this error: Fatal error: Cannot instantiate non-existent class: date in <sql util path>/save_sub_admin.php on line 92

Any ideas what's causing this?

Thanks.
__________________
培傑西

I have never taken a lesson on how to talk on TV in my life.
- Tim McCarver

If you need a hand, sometimes the best place to look is at the end of your own arm.

Last edited by PotatoPeeler; 07-17-2009 at 12:51 PM.
PotatoPeeler is offline   Reply With Quote
Old 07-18-2009, 07:07 PM   #65 (permalink)
All Star Starter
 
udbacker58's Avatar
 
Join Date: Apr 2007
Posts: 1,039
Thanks: 68
Thanked 64x in 46 posts
One thing I would like to see is that on the managers page, the Messenger tags be displayed, rather than it just saying AIM (Add). People not using AIM cannot add a person by clicking the link. I know that you can see the screen name in the status bar on the bottom of your browser, but not all people may know this.
__________________
USBA (Commish): New Orleans Ragin' Cajuns
BLSN: Atlanta Braves: BLB (Commish) - BLHB

Interested in a MLB league? Apply to join the BLB!....
Fictional more your taste? Send me a PM and Apply to join the USBA!
udbacker58 is offline   Reply With Quote
Old 07-19-2009, 08:29 AM   #66 (permalink)
Hall Of Famer
 
satchel's Avatar
 
Join Date: Apr 2002
Location: Ft Smith AR
Posts: 2,680
Thanks: 52
Thanked 48x in 26 posts
Frank, my Jamaica League offers you our most sincere thanks. When we were using Getch's Utilities, you de-bugged the "talent-only" errors, which enabled us to employ the utility to its fullest; and then you answered our requests for even further customization. And now you've given the community an invaluable tool for the new game version. You have done a noble service for us all. We are taking up a collection this week, and will be sending you a donation, to express our appreciation.

Quote:
Originally Posted by dangarion View Post
Talking about security, I've been forced to move our league exports to a separate UNIX user on the server, and unfortunately that makes it impossible for the script to see the folders that user has access to (the commish user is the web access account, and the export user only has access to it's own folders, unsure if there is a way to work around that with the export tracker or not, don't worry about it, just thought I would mention it.) I'm guessing there wouldn't be a way for me to resolve this unless if I did it on my own by like running a cron job or something, but even that would be a PITA.
I use the same technique to safeguard the security of my league, and am in this exact position.

Quote:
Originally Posted by PotatoPeeler View Post
After I change some stuff on the draft admin screen and then click the Save button, I get this error: Fatal error: Cannot instantiate non-existent class: date in <sql util path>/save_sub_admin.php on line 92
I'm getting a similar error, trying to configure the draft utility. When I set the draft order, and hit "Save," I'm taken to an error screen which says

Fatal error: Class 'Date' not found in /home/[path continued]/ootpsqlou/save_sub_admin.php on line 92
satchel is offline   Reply With Quote
Old 07-19-2009, 03:58 PM   #67 (permalink)
Minors (Triple A)
 
hank9481's Avatar
 
Join Date: Jun 2002
Posts: 253
Thanks: 0
Thanked 2x in 2 posts
I have Dreamhost and am having MAJOR problems with this utility, namely a 500 internal server error everytime I try to import the files. Can someone help me understand what the hell I am doing?
__________________
HH
www.mblsim.com
hank9481 is offline   Reply With Quote
Old 07-20-2009, 02:21 AM   #68 (permalink)
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 2,723
Thanks: 13
Thanked 255x in 119 posts
Apologies to all for my silence. My first daughter was born Wednesday night, so my mind has been elsewhere. I'll try to review all the posts and PM's with recent issues in the next couple of days.
__________________
StatsLab11 - PHP/MySQL based utilities for Online Leagues
Other Mods:
19th Century: Schedules, FaceGen
BBCards: 1887 Allen & Ginter, 1934 Goudey, 1988 Score, 1996 fhomess, 2005 fhomess
FaceGen: 1960-Pres MLB, 32 Colleges, Backgrounds

PEBA - Connecticut Nutmeggers
fhomess is offline   Reply With Quote
Old 07-20-2009, 07:17 AM   #69 (permalink)
Moderator
 
Join Date: Mar 2002
Location: Mass.
Posts: 1,963
Thanks: 15
Thanked 136x in 94 posts
Quote:
Originally Posted by fhomess View Post
Apologies to all for my silence. My first daughter was born Wednesday night, so my mind has been elsewhere. I'll try to review all the posts and PM's with recent issues in the next couple of days.

Congratulations!
__________________
- Front Office Offseason League. (Fast Paced OOTP-X and OOTP11 leagues, sims one season every week)
Alan T is offline   Reply With Quote
Old 07-20-2009, 07:50 AM   #70 (permalink)
All Star Starter
 
Recte44's Avatar
 
Join Date: Dec 2001
Location: Greendale, WI
Posts: 1,921
Thanks: 24
Thanked 29x in 8 posts
Changes won't save in Draft Admin.
Recte44 is offline   Reply With Quote
Old 07-20-2009, 05:38 PM   #71 (permalink)
Hall Of Famer
 
Raidergoo's Avatar
 
Join Date: Mar 2003
Location: 39.84 N -84.12 W
Posts: 8,327
Thanks: 76
Thanked 53x in 36 posts
Babies are cool!
Raidergoo is offline   Reply With Quote
Old 07-20-2009, 09:08 PM   #72 (permalink)
All Star Starter
 
Recte44's Avatar
 
Join Date: Dec 2001
Location: Greendale, WI
Posts: 1,921
Thanks: 24
Thanked 29x in 8 posts
Quote:
Originally Posted by Recte44 View Post
Changes won't save in Draft Admin.
At this point my league is on hold trying to figure out why I can't save any changes in draft order.
Recte44 is offline   Reply With Quote
Old 07-21-2009, 12:18 PM   #73 (permalink)
Hall Of Famer
 
PotatoPeeler's Avatar
 
Join Date: Aug 2002
Location: Rapid City, SD
Posts: 2,929
Thanks: 7
Thanked 17x in 15 posts
Here's one more minor issue I've noticed. When I click on the leagues logo in the upper left hand corner of the utility page, it links to http://<league html address>/leagues/league__home.html when it should be linking to http://<league html address>/leagues/league_100_home.html. It seems to be forgetting the 100 part of the address, even though I have that set properly on the admin screen.

Thanks for the cool utility, fhomess and congrats on the new addition!
__________________
培傑西

I have never taken a lesson on how to talk on TV in my life.
- Tim McCarver

If you need a hand, sometimes the best place to look is at the end of your own arm.
PotatoPeeler is offline   Reply With Quote
Old 07-22-2009, 06:58 PM   #74 (permalink)
Hall Of Famer
 
Killebrew's Avatar
 
Join Date: Dec 2001
Posts: 3,271
Thanks: 41
Thanked 15x in 11 posts
Quote:
Originally Posted by fhomess View Post
Apologies to all for my silence. My first daughter was born Wednesday night, so my mind has been elsewhere. I'll try to review all the posts and PM's with recent issues in the next couple of days.
Grats!!
Killebrew is offline   Reply With Quote
Old 07-24-2009, 01:51 PM   #75 (permalink)
All Star Reserve
 
jdettbarn's Avatar
 
Join Date: Mar 2002
Location: Buffalo, NY
Posts: 632
Thanks: 19
Thanked 3x in 2 posts
Quote:
Originally Posted by hank9481 View Post
I have Dreamhost and am having MAJOR problems with this utility, namely a 500 internal server error everytime I try to import the files. Can someone help me understand what the hell I am doing?
Try this...

On the Admin tab, click on the SQL Files link and try importing each file individually. Try the smaller file sizes first, in order to make sure things are functioning properly.
__________________
Federal Baseball League San Diego GM and Commish
NPBL Idaho Spuds GM
jdettbarn is offline   Reply With Quote
Old 07-29-2009, 03:54 PM   #76 (permalink)
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 2,723
Thanks: 13
Thanked 255x in 119 posts
Quote:
Originally Posted by hank9481 View Post
I have Dreamhost and am having MAJOR problems with this utility, namely a 500 internal server error everytime I try to import the files. Can someone help me understand what the hell I am doing?
Quote:
Originally Posted by jdettbarn View Post
Try this...

On the Admin tab, click on the SQL Files link and try importing each file individually. Try the smaller file sizes first, in order to make sure things are functioning properly.
I actually use Dreamhost, too, so it definitely can work with Dreamhost. Jason's suggestion will help you determine if it's a timeout issue with the full load of some of the larger files or if the load itself simply isn't working. If you do load the files individually, I recommend loading human_managers.mysql.sql last - as this will create the util's user table and require you to login to the util. If you're having any SQL issues, it's better to find and fix those before being required to login.

Quote:
Originally Posted by udbacker58 View Post
One thing I would like to see is that on the managers page, the Messenger tags be displayed, rather than it just saying AIM (Add). People not using AIM cannot add a person by clicking the link. I know that you can see the screen name in the status bar on the bottom of your browser, but not all people may know this.
In beta testing, this was explicitly removed because the managers page can get very cluttered if the variuos IM links are all included. Some IM handles are rather long.

I've re-uploaded the util code with some fixes to issues found in this thread and PM's recieved since I've been gone. Please let me know if there are new issues or these don't fix what they're supposed to:
1. Users without a team should now show voting stats in the awards voting admin page
2. date issue in save_sub_admin.php should now be fixed
3. Sim length issue with datediff function in dbUpdate.php should now be fixed
4. Link to league HTML page from league logo in header should now include the league ID
__________________
StatsLab11 - PHP/MySQL based utilities for Online Leagues
Other Mods:
19th Century: Schedules, FaceGen
BBCards: 1887 Allen & Ginter, 1934 Goudey, 1988 Score, 1996 fhomess, 2005 fhomess
FaceGen: 1960-Pres MLB, 32 Colleges, Backgrounds

PEBA - Connecticut Nutmeggers
fhomess is offline   Reply With Quote
Old 07-29-2009, 05:31 PM   #77 (permalink)
Hall Of Famer
 
satchel's Avatar
 
Join Date: Apr 2002
Location: Ft Smith AR
Posts: 2,680
Thanks: 52
Thanked 48x in 26 posts
Quote:
Originally Posted by fhomess View Post
I actually use Dreamhost, too, so it definitely can work with Dreamhost.
I can second (third?) this—StatsLab works fine on our Jamaica League's Dreamhost account.

Quote:
Originally Posted by fhomess View Post
I've re-uploaded the util code with some fixes to issues found in this thread and PM's recieved since I've been gone...
2. date issue in save_sub_admin.php should now be fixed
Thank you!
satchel is offline   Reply With Quote
Old 07-30-2009, 12:43 PM   #78 (permalink)
All Star Reserve
 
dangarion's Avatar
 
Join Date: Feb 2003
Location: Orange, CA
Posts: 500
Thanks: 5
Thanked 1x in 1 post
Quote:
Originally Posted by hank9481 View Post
I have Dreamhost and am having MAJOR problems with this utility, namely a 500 internal server error everytime I try to import the files. Can someone help me understand what the hell I am doing?
I'm using Dreamhost and have no such problems.
__________________
DanGarion
GM - Los Angeles Dodgers RWBL
As Real As It Gets!
dangarion is offline   Reply With Quote
Old 08-02-2009, 05:32 AM   #79 (permalink)
Hall Of Famer
 
satchel's Avatar
 
Join Date: Apr 2002
Location: Ft Smith AR
Posts: 2,680
Thanks: 52
Thanked 48x in 26 posts
I suppose that our Hall of Fame needs to have some members, to establish a baseine, before Black Ink and Gray Ink scores can show up on the "Career Metrics" reports?
satchel is offline   Reply With Quote
Old 08-03-2009, 02:29 PM   #80 (permalink)
Hall Of Famer
 
fhomess's Avatar
 
Join Date: Nov 2002
Posts: 2,723
Thanks: 13
Thanked 255x in 119 posts
Quote:
Originally Posted by satchel View Post
I suppose that our Hall of Fame needs to have some members, to establish a baseine, before Black Ink and Gray Ink scores can show up on the "Career Metrics" reports?
No, in the utility, they have nothing to do with who's in the HOF. It's merely a calculation based on leaderboard appearances. That said, you do need to run the code to calculate them from the career metrics admin page. They'll also only show up on the pages of players who have appeared on the appropriate leaderboards. If you've run them and aren't seeing them, please shoot me a PM with details and I'll help you investigate.
__________________
StatsLab11 - PHP/MySQL based utilities for Online Leagues
Other Mods:
19th Century: Schedules, FaceGen
BBCards: 1887 Allen & Ginter, 1934 Goudey, 1988 Score, 1996 fhomess, 2005 fhomess
FaceGen: 1960-Pres MLB, 32 Colleges, Backgrounds

PEBA - Connecticut Nutmeggers

Last edited by fhomess; 08-03-2009 at 02:31 PM.
fhomess is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 04:13 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0
Copyright © 2009 Out of the Park Developments