Improved online scripts for reports
1 Attachment(s)
I improved the PHP scripts which unpack the report files to the MySQL database. They unpack it to multiple tables now and they also update only records where the report data has changed. That should help to reduce problems with huge report databases.
All you need to do is:
Obviously there will always be changes on each report page because there's a timestamp at the bottom of each page. To get rid of the timestamp, remove the [%VERSION] token from the page_bottom_line.tpl template (you'll find the template files inside the folder /templates). Please give us some feedback here. Thanks! |
I've always found this method very confusing and difficult to setup. Is it really that hard? Why can't I figure it out?
|
failure
fails to work
|
Quote:
|
Quote:
|
Does this speed up the time it takes to generate all the reports? Or does this just speed up the upload process?
|
Quote:
|
I've managed to get the new scripts installed, but removing the timestamp is causing an error in OOTP?
Can you post the page_bottom_line.tpl template file as well? |
The new scripts seem to be working as advertised.
But I am noticing something, and not sure if it was happening before, but some player pages seem to be getting cut off at the bottom. I'm seeing many players cut off and many not. You can go to this team page and select different players and you should see what I am talking about. Check the first 2 pitchers, Rivera (not cut off) and Blackburn (cut off). On pitcher Ocura only the final link to the OOTPD site is cut off. Also, there is a league date at the top of each page, in the header I guess, won't that cause all generated pages to be different even though the report may not have changed? |
Quote:
Yes, the league date will have to be removed from the header, too. Edit the templates which names start with "page_header_" and remove the line that contains the [%Date], for example: PHP Code:
|
Quote:
PHP Code:
PHP Code:
|
Quote:
|
Quote:
|
1 Attachment(s)
Still getting this error when loading a saved game or trying to view any reports in game.
Also prevents the game from simming and I have to force quit. |
Quote:
|
Quote:
|
Quote:
It looks like something went wrong when you altered the template file. |
Quote:
|
where are the reports located that need to be deleted?
|
Quote:
|
All times are GMT -4. The time now is 04:18 AM. |
Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright © 2020 Out of the Park Developments