Post by eleclerc on Jul 18, 2016 21:34:22 GMT
Table Sim Page 1.01 for FHLSim
Page1_01.zip (159.89 KB)
TEST LINK
What Do You Need?
FHLsim 1.5.445 or FHLsim 1.5.468 with original html pages
Some skills with FTP
Server with PHP 5.4 support and + (PHP 8.2.11)
notepad++ or another text editor support UTF8 with w/o BOM
How It Works?
It's simple, the addon takes your FHLsim html file and change them into table.
Page1_01.zip (159.89 KB)
TEST LINK
What Do You Need?
FHLsim 1.5.445 or FHLsim 1.5.468 with original html pages
Some skills with FTP
Server with PHP 5.4 support and + (PHP 8.2.11)
notepad++ or another text editor support UTF8 with w/o BOM
How It Works?
It's simple, the addon takes your FHLsim html file and change them into table.
Installation
1. Download Files
2. Unzip the files
3. Change folder name by a name you wanted
4. Go in the folder and open config.php
5. Edit your league infos, folder and theme and save it
6. Open your FTP and send the addon folder on your server
7. Test if it well setupped by opening YourLeague.com/yourAdddonFolder/
8. To install links, just copy/paste links from the addon main page to your main league page.
9. To install inline table, juste copy/paste in your html code, the code over the inline table
1. Download Files
2. Unzip the files
3. Change folder name by a name you wanted
4. Go in the folder and open config.php
5. Edit your league infos, folder and theme and save it
6. Open your FTP and send the addon folder on your server
7. Test if it well setupped by opening YourLeague.com/yourAdddonFolder/
8. To install links, just copy/paste links from the addon main page to your main league page.
9. To install inline table, juste copy/paste in your html code, the code over the inline table
config.php help
The config.php is mandatory to edit. Use notepad++ or another text editor with UTF8 w/o BOM compatibility.
$leagueLang (Default: EN)
Enter FR for French and EN for English.
$folder (Default: ../TRANSFER/)
You need to enter where are your files from the addon.
If your addon is located to yourLeague.com/Page/ and your HTML file from FHLsim are located to yourLeague.com/TRANSFER/, then you need to enter ../TRANSFER/.
$folderGames (Default: Empty)
If you stock your game files from FHLsim in a subforder, just enter here the subfolder.
If your addon is located to yourLeague.com/Page/ and your games HTML file from FHLsim are located to yourLeague.com/TRANSFER/games/, then you need to enter games/
$leagueSalaryIncFarm (Default: 0 [off])
This is the way the Salary Cop page calculate the salary cap. 0, just the Pro Payroll and 1, Pro + Farm Playroll
$leagueSalaryCap (Default: 58000000)
If you are using Salary Cop page, edit your salary cap here.
$leagueSalaryClose (Default: 57000000)
If you are using Salary Cop page, it's when the value is near the salary cap and displayed in orange
$leagueSalaryCapFloor (Default: 0 [off])
If you are using Salary Cop page, edit your floor salary cap here.
$leagueOvertimePoint (Default: 0 [off])
If your league is not giving one point in overtime lost:0
If your league is giving one point in overtime lost:1
$folderCarrerStats (Default: ../Backup/Season#/)
Like the other CareerStats, you need to keep the numbering starting with 1. Here, you need to enter the folder of your previous seasons.
If your addon is located to yourLeague.com/Page/ and your previous seasons HTML file from FHLsim are located to yourLeague.com/Backup/Season1/, yourLeague.com/Backup/Season2/, etc... then you need to enter ../Backup/Season#/. The # act as the number.
$folderTeamLogos (Default: logos/)
Logo optimal specs: width:60px, height:30px (The images will be resized if it's to big in either direction).
Supported Formats: JPEG, GIF, PNG, BMP, ICO (PNG Recommanded).
Logo names: the same as the name in your FHLsim but ALL the characters in lowercase Ex: RED WINGS = red wings.
If your addon is located to yourLeague.com/Page/ and your team logo files are located to yourLeague.com/logos/, then you need to enter ../logos/.
$leagueChatBox (Default: 0 [off])
You can enable or disable the chat box. Enabled: 1 | Disabled: 0
$leagueTimeZone (Default: America/Toronto)
Chat Box regional settings, you need to change this in order to show the right datetime in the chat box.
For more information about available timezones : php.net/manual/en/timezones.php
$leagueBackButton (Default: 0 [off])
You can enable or disable the Back button. Enabled: 1 | Disabled: 0
$leagueHomeButton (Default: 0 [off])
You can enable or disable the Home button. Enabled: 1 | Disabled: 0
$leagueFuturesLink (Default: 1 [hockeyDB])
You can choose between HockeyDB or EliteProspects. HockeyDB: 1 | EliteProspects: 2
The config.php is mandatory to edit. Use notepad++ or another text editor with UTF8 w/o BOM compatibility.
$leagueLang (Default: EN)
Enter FR for French and EN for English.
$folder (Default: ../TRANSFER/)
You need to enter where are your files from the addon.
If your addon is located to yourLeague.com/Page/ and your HTML file from FHLsim are located to yourLeague.com/TRANSFER/, then you need to enter ../TRANSFER/.
$folderGames (Default: Empty)
If you stock your game files from FHLsim in a subforder, just enter here the subfolder.
If your addon is located to yourLeague.com/Page/ and your games HTML file from FHLsim are located to yourLeague.com/TRANSFER/games/, then you need to enter games/
$leagueSalaryIncFarm (Default: 0 [off])
This is the way the Salary Cop page calculate the salary cap. 0, just the Pro Payroll and 1, Pro + Farm Playroll
$leagueSalaryCap (Default: 58000000)
If you are using Salary Cop page, edit your salary cap here.
$leagueSalaryClose (Default: 57000000)
If you are using Salary Cop page, it's when the value is near the salary cap and displayed in orange
$leagueSalaryCapFloor (Default: 0 [off])
If you are using Salary Cop page, edit your floor salary cap here.
$leagueOvertimePoint (Default: 0 [off])
If your league is not giving one point in overtime lost:0
If your league is giving one point in overtime lost:1
$folderCarrerStats (Default: ../Backup/Season#/)
Like the other CareerStats, you need to keep the numbering starting with 1. Here, you need to enter the folder of your previous seasons.
If your addon is located to yourLeague.com/Page/ and your previous seasons HTML file from FHLsim are located to yourLeague.com/Backup/Season1/, yourLeague.com/Backup/Season2/, etc... then you need to enter ../Backup/Season#/. The # act as the number.
$folderTeamLogos (Default: logos/)
Logo optimal specs: width:60px, height:30px (The images will be resized if it's to big in either direction).
Supported Formats: JPEG, GIF, PNG, BMP, ICO (PNG Recommanded).
Logo names: the same as the name in your FHLsim but ALL the characters in lowercase Ex: RED WINGS = red wings.
If your addon is located to yourLeague.com/Page/ and your team logo files are located to yourLeague.com/logos/, then you need to enter ../logos/.
$leagueChatBox (Default: 0 [off])
You can enable or disable the chat box. Enabled: 1 | Disabled: 0
$leagueTimeZone (Default: America/Toronto)
Chat Box regional settings, you need to change this in order to show the right datetime in the chat box.
For more information about available timezones : php.net/manual/en/timezones.php
$leagueBackButton (Default: 0 [off])
You can enable or disable the Back button. Enabled: 1 | Disabled: 0
$leagueHomeButton (Default: 0 [off])
You can enable or disable the Home button. Enabled: 1 | Disabled: 0
$leagueFuturesLink (Default: 1 [hockeyDB])
You can choose between HockeyDB or EliteProspects. HockeyDB: 1 | EliteProspects: 2
Done
2024-03-03: Bug with ticket price at $0.00 in "Finance" and "Overview".
2023-11-04: PHP compatibility up to 8.2.11.
2023-08-30: "LinkedRosterFull.php": isset problem. "Top5Mini": Bug in French.
2022-03-06: PHP8 bug, removed mb_http_output('UTF-8'); and mb_http_input('UTF-8');
2021-03-25: "CarrerStatsPlayer.php" and "index.php", Fixed issues with PHP 7.4 (ini_get('allow_url_fopen')).
2021-03-06: "Rosters.php", "LinkedRosters.php", "LinkedRostersFull.php", and "ComparePlayers.php", Fixed issues with first or last name as C, LW, RW, D and G. Also, fixed name issues with special characters.
2020-11-28: "CareerStatsPlayer.php": Game Log now showing correctly with leagues with filenames ending with number.
2020-11-21: "MiniTop5.php", Reel Top5 Points.
2020-11-21: "games.php", "TodayGames.php", "TodayGamesTSN.php", Fixed missing scorers.(Team with special characters.)
2020-11-08: "TodayGamesTSN.php", Fixed the empty score per period. (Team with special characters.)
2020-10-27: "ComparePlayers.php", A league without farm can now use the page.
2020-10-06: "CareerLeaders.php", Corrected Goalie Stats.
2020-08-19: "CareerStatsPlayer.php", Display the ice time average in the game log.
2020-05-17: "CareerStatsPlayer.php", added more way to display player image.
2020-01-03: Search Players page uses url in order to sort players.
2019-12-13: Sportnet change the way the player pictures is loaded. TSN is the only way to display player pictures in "CarrerStatsPlayer.php" page.
2019-11-21: Test page (test.php) to verify if .html page exist.
2019-08-11: All Mini Pages can be launched outside the Table Page environment. GM Editor button detection is changed (can have multiple league on the same server). Can set the Home button the number of directory you want to fall.
2019-08-01: Corrected an error with GM Editor detection (Windows/Linus).
2019-03-09: Corrected a major issue with the Hits count. Mutiple pages are corrected.
2018-11-06: Added the page LinkedRostersFull.php and Added in SearchPlayers.php Forwards in position.
2018-10-04: Corrected a bug in games.php when using PHP 7.2.0
2018-09-10: The function "each()" has been DEPRECATED as of PHP 7.2.0. All pages are now fixed.
2018-07-29: Fixed CareerLeaders page.
2017-11-30: Fixed Leaders, TodayGames & TodayGamesTSN Pages, Online GM Editor button fixed.
2024-03-03: Bug with ticket price at $0.00 in "Finance" and "Overview".
2023-11-04: PHP compatibility up to 8.2.11.
2023-08-30: "LinkedRosterFull.php": isset problem. "Top5Mini": Bug in French.
2022-03-06: PHP8 bug, removed mb_http_output('UTF-8'); and mb_http_input('UTF-8');
2021-03-25: "CarrerStatsPlayer.php" and "index.php", Fixed issues with PHP 7.4 (ini_get('allow_url_fopen')).
2021-03-06: "Rosters.php", "LinkedRosters.php", "LinkedRostersFull.php", and "ComparePlayers.php", Fixed issues with first or last name as C, LW, RW, D and G. Also, fixed name issues with special characters.
2020-11-28: "CareerStatsPlayer.php": Game Log now showing correctly with leagues with filenames ending with number.
2020-11-21: "MiniTop5.php", Reel Top5 Points.
2020-11-21: "games.php", "TodayGames.php", "TodayGamesTSN.php", Fixed missing scorers.(Team with special characters.)
2020-11-08: "TodayGamesTSN.php", Fixed the empty score per period. (Team with special characters.)
2020-10-27: "ComparePlayers.php", A league without farm can now use the page.
2020-10-06: "CareerLeaders.php", Corrected Goalie Stats.
2020-08-19: "CareerStatsPlayer.php", Display the ice time average in the game log.
2020-05-17: "CareerStatsPlayer.php", added more way to display player image.
2020-01-03: Search Players page uses url in order to sort players.
2019-12-13: Sportnet change the way the player pictures is loaded. TSN is the only way to display player pictures in "CarrerStatsPlayer.php" page.
2019-11-21: Test page (test.php) to verify if .html page exist.
2019-08-11: All Mini Pages can be launched outside the Table Page environment. GM Editor button detection is changed (can have multiple league on the same server). Can set the Home button the number of directory you want to fall.
2019-08-01: Corrected an error with GM Editor detection (Windows/Linus).
2019-03-09: Corrected a major issue with the Hits count. Mutiple pages are corrected.
2018-11-06: Added the page LinkedRostersFull.php and Added in SearchPlayers.php Forwards in position.
2018-10-04: Corrected a bug in games.php when using PHP 7.2.0
2018-09-10: The function "each()" has been DEPRECATED as of PHP 7.2.0. All pages are now fixed.
2018-07-29: Fixed CareerLeaders page.
2017-11-30: Fixed Leaders, TodayGames & TodayGamesTSN Pages, Online GM Editor button fixed.
2017-04-02: Added TSN TodayGames!
2016-11-23: v1.01, Added buttons Home and Back on each page and can turned them off/on, You can disabled chat box, New Salary Cop Daily page.
2016-10-29: v1.00, GameLogs bugs corrected, Added in SearchPlayer Page Pro/Farm Selection, Corrected Leaders Page goalies stats
2016-10-12: Add two new parameters in config.php, $leagueOvertimePoint to repair a bug in Team Card and $leagueTimeZone to config the new Chat Box, v0.83b
2016-10-09: Corrected some bugs in Career Leaders Page
2016-10-07: Corrected some bugs, New Unassigned Players Page, v0.82b
2016-10-04: New Career Standings Page, added Team Record in Team Card Page, v0.81b
2016-10-02: Bugs when starting a new season corrected, v0.80b
2016-09-29: Corrected some bugs in French, added CareerLeaders sort by team, Best 10 seasons players added in Team Card, v0.79b
2016-09-28: Corrected some bugs in French, v0.78b
2016-09-27: Corrected some bugs in CareerLeaders, added new update notifier, v0.77b
2016-09-20: Corrected some bugs, v0.76b
2016-09-16: Corrected some bugs,
2016-09-15: Corrected some bugs, v0.75b
2016-09-14: Corrected some bugs, v0.74b
2016-09-13: Career Leaders done, v0.73b released
2016-09-08: GM Editor Online is now linked with the Table Page Sim in the Team Card Page and Lines Page. Table Sim Page completed. v0.72b, add Promote to Roster in Transaction Page.
2016-09-05: Bugs corrected (Teams dropdown show only the season page, Transactions now show Coach fire/hire, CarrerStats not display season/playoff stats if there is no file in the main folder.)
2016-09-04: BoxScore for Season/Playoff is completed, v0.70b, TeamStats Page with four new stats
2016-09-02: Colors ajustment in Compare Players Page
2016-08-31: File not found tells witch page is missing, Corrected bugs in Mini Pages, Mini TodayGames (BoxScore), Playoff Mode Setting removed
2016-08-30: Futures Page (change hockeyfutures links by hockeyDB links), Compare Players (Trade Page)
2016-08-25: Salary Cop (Floor), v0.68b, Corrected bugs in Transact Page
2016-08-20: Advanced Schedule Page
2016-08-18: New page Player Search, v0.67b released
2016-08-13: Added in GMs page Email All link
2016-08-12: Corrected bugs in Financial, in Waivers, in Transactions and others. v0.66b
2016-08-11: Auto-Detect the last file in your folder (if multiple seasons in one folder), v0.65b released
2016-08-05: No need to give your league prefix! CareerStats setup in one parameter! v0.63b released, CareerStats PlayerVitals, v0.64b released
2016-08-04: CareerStats (Picture / TeamStats)
2016-08-03: v0.62b released with Game Log
2016-08-02: CareerStats, v0.61a released
2016-07-30: new playoff tree, color themes, playoff page, v0.6a released
2016-07-29: v0.53a minor bugs
2016-07-28: Sort Schedule by Team!, HockeyFutures direct link in Futures page, v0.52a released
2016-07-27: LinkedRosters with Player Stats, v0.4a Corrected some bugs from FHLsim 1.5.445, Transact (Full/Mini), Top5 Mini, TodayGames Mini, v0.5a New pages + Corrected standings bugs, Waivers (Full/Mini), v0.51a
2016-07-25: Linked Rosters w/o linkedrosters.html page!, Team Card, v0.3a released, Remember the last team selected (Cookie), SalaryCop w/o salarycop add-on!
2016-07-24: Remember the last team selected (Session), Team Scoring, Team Statistics
2016-07-23: Rosters
2016-07-22: Team Lines, Overall Standings w/o OverallStandings.html page!, Player Vitals, v0.2a released
2016-07-21: Prospects, Individual Stats, Injury and Suspension, v0.1a released
2016-07-20: Leaders Pro/Farm, Pro/Farm Standings, Financial Report
2016-07-19: GM List, Coaches List
2016-07-18: Schedule, Games(In schedule link)
2016-11-23: v1.01, Added buttons Home and Back on each page and can turned them off/on, You can disabled chat box, New Salary Cop Daily page.
2016-10-29: v1.00, GameLogs bugs corrected, Added in SearchPlayer Page Pro/Farm Selection, Corrected Leaders Page goalies stats
2016-10-12: Add two new parameters in config.php, $leagueOvertimePoint to repair a bug in Team Card and $leagueTimeZone to config the new Chat Box, v0.83b
2016-10-09: Corrected some bugs in Career Leaders Page
2016-10-07: Corrected some bugs, New Unassigned Players Page, v0.82b
2016-10-04: New Career Standings Page, added Team Record in Team Card Page, v0.81b
2016-10-02: Bugs when starting a new season corrected, v0.80b
2016-09-29: Corrected some bugs in French, added CareerLeaders sort by team, Best 10 seasons players added in Team Card, v0.79b
2016-09-28: Corrected some bugs in French, v0.78b
2016-09-27: Corrected some bugs in CareerLeaders, added new update notifier, v0.77b
2016-09-20: Corrected some bugs, v0.76b
2016-09-16: Corrected some bugs,
2016-09-15: Corrected some bugs, v0.75b
2016-09-14: Corrected some bugs, v0.74b
2016-09-13: Career Leaders done, v0.73b released
2016-09-08: GM Editor Online is now linked with the Table Page Sim in the Team Card Page and Lines Page. Table Sim Page completed. v0.72b, add Promote to Roster in Transaction Page.
2016-09-05: Bugs corrected (Teams dropdown show only the season page, Transactions now show Coach fire/hire, CarrerStats not display season/playoff stats if there is no file in the main folder.)
2016-09-04: BoxScore for Season/Playoff is completed, v0.70b, TeamStats Page with four new stats
2016-09-02: Colors ajustment in Compare Players Page
2016-08-31: File not found tells witch page is missing, Corrected bugs in Mini Pages, Mini TodayGames (BoxScore), Playoff Mode Setting removed
2016-08-30: Futures Page (change hockeyfutures links by hockeyDB links), Compare Players (Trade Page)
2016-08-25: Salary Cop (Floor), v0.68b, Corrected bugs in Transact Page
2016-08-20: Advanced Schedule Page
2016-08-18: New page Player Search, v0.67b released
2016-08-13: Added in GMs page Email All link
2016-08-12: Corrected bugs in Financial, in Waivers, in Transactions and others. v0.66b
2016-08-11: Auto-Detect the last file in your folder (if multiple seasons in one folder), v0.65b released
2016-08-05: No need to give your league prefix! CareerStats setup in one parameter! v0.63b released, CareerStats PlayerVitals, v0.64b released
2016-08-04: CareerStats (Picture / TeamStats)
2016-08-03: v0.62b released with Game Log
2016-08-02: CareerStats, v0.61a released
2016-07-30: new playoff tree, color themes, playoff page, v0.6a released
2016-07-29: v0.53a minor bugs
2016-07-28: Sort Schedule by Team!, HockeyFutures direct link in Futures page, v0.52a released
2016-07-27: LinkedRosters with Player Stats, v0.4a Corrected some bugs from FHLsim 1.5.445, Transact (Full/Mini), Top5 Mini, TodayGames Mini, v0.5a New pages + Corrected standings bugs, Waivers (Full/Mini), v0.51a
2016-07-25: Linked Rosters w/o linkedrosters.html page!, Team Card, v0.3a released, Remember the last team selected (Cookie), SalaryCop w/o salarycop add-on!
2016-07-24: Remember the last team selected (Session), Team Scoring, Team Statistics
2016-07-23: Rosters
2016-07-22: Team Lines, Overall Standings w/o OverallStandings.html page!, Player Vitals, v0.2a released
2016-07-21: Prospects, Individual Stats, Injury and Suspension, v0.1a released
2016-07-20: Leaders Pro/Farm, Pro/Farm Standings, Financial Report
2016-07-19: GM List, Coaches List
2016-07-18: Schedule, Games(In schedule link)