Post by omnicronx on Oct 17, 2021 17:19:07 GMT
Table Sim Page 2.1 for FHLSim
Page2.1.zip - Github 1.61MB
Projet link
TEST LINK EN
TEST LINK FR
Relative path helper
What Do You Need?
FHLsim 1.5.445 or FHLsim 1.5.468 with original html pages
Some skills with FTP
Server with PHP 7 to 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.
Page2.1.zip - Github 1.61MB
Projet link
TEST LINK EN
TEST LINK FR
Relative path helper
What Do You Need?
FHLsim 1.5.445 or FHLsim 1.5.468 with original html pages
Some skills with FTP
Server with PHP 7 to 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 (Do not use / overwrite the same folder as the v1.01)
4. Go in the folder and open config.php
5. Edit your league infos, folder and theme and save it. (To update from v1.01, you need to open both file, old and new config.php, at the same time, to copy existing values.)
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 "demoPage.php" to your main league page.
9. To install inline table, just copy/paste in your html code, the code over the inline table. (your html needs to be a php file [.php] in order to work)
1. Download Files
2. Unzip the files
3. Change folder name by a name you wanted (Do not use / overwrite the same folder as the v1.01)
4. Go in the folder and open config.php
5. Edit your league infos, folder and theme and save it. (To update from v1.01, you need to open both file, old and new config.php, at the same time, to copy existing values.)
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 "demoPage.php" to your main league page.
9. To install inline table, just copy/paste in your html code, the code over the inline table. (your html needs to be a php file [.php] in order to work)
config.php help
The config.php is mandatory to edit. Use notepad++ or another text editor with UTF8 w/o BOM compatibility.
BASIC SETTINGS
$sessionName (Default: "FHLTBL")
If you have multiple TablePage within the same domain, edit this to be different.
$leagueName (Default: "FHL League")
Your league name (Displayed on the tab bar)
$leagueLogo (Default: '')
Your league logo (Only if $navbarMode = 1)
$cdnSupport (Default: 1[on])
Load assets based on your location.
$leagueLang (Default: "EN")
Enter FR for French and EN for English.
$demoMode (Default: 0[off])
It add a menu to see all navigation possibilities.
$home (Default: "")
Your main page location.
If your addon is located at yourLeague.com/Page/ and your main page is yourLeague.com/, enter "../".
$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: "")
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/
CAREER STATS
$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.
BOXSCORE LOGO
$folderTeamLogos (Default: "logos/")
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/.
$folderTeamLogosFarm (Default: "")
Same thing as $folderTeamLogos but for Farm Teams.
OGME
$folderGmo (Default: "gmo/")
Relative to your "config.php".
If your addon is located to yourLeague.com/Page/ and your OGME is yourLeague.com/OGME/, then you need to enter ../OGME/.
Leave empty if you doesn't want the OGME link.
TRADES & TRANSACTIONS
$enableTransactions (Default: 1[on])
Display Transactions pages
$enableTrades (Default: 1[on])
Display Trades pages
$enableFeatures (Default: 1[on])
Display Features pages
ROSTERS PAGE
$leagueRostersLink (Default: 1 [hockeyDB])
Choose between HockeyDB : 1 or EliteProspects : 2 or TSN : 3
FUTURES PAGE
$leagueFuturesLink (Default: 1 [hockeyDB])
Choose between HockeyDB : 1 or EliteProspects : 2
$leaguePlayerImages (Default: 1 [TSN])
Choose between TSN : 1 or Sportsnet : 2
$leagueFuturesDraftYears (Default: 4)
How many draft years ahead to display.
SALARY COP
$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: 53000000)
If you are using Salary Cop page, edit your salary cap here.
$leagueSalaryClose (Default: 52000000)
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.
$leagueSalaryCapInjuryMode (Default: 0 [off])
Injuries count toward caphit no LTIR : 0.
$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
$minActivePlayers (Default: 20)
Min required active players on roster.
Off : 0
OTHER SETTINGS
$minGoaliesAppearances (Default: 33)
Min Goalie Appearances for stats leaders page.
$leagueMode (Default: 0 [Season])
Regular Season: 0 | Playoffs : 1 | Auto Detect : 2
$footerText (Default: "FHL TableSim 2.0")
Text to display in footer (bottom) of each page.
$siteTheme (Default: "blue")
Choose your color theme
$navbarMode (Default: 1 [full])
0 Navbar disabled | 1 Full Navbar enabled (default) | 2 Simple nav with team icons | 3 Simple nav with team dropdown.
The config.php is mandatory to edit. Use notepad++ or another text editor with UTF8 w/o BOM compatibility.
BASIC SETTINGS
$sessionName (Default: "FHLTBL")
If you have multiple TablePage within the same domain, edit this to be different.
$leagueName (Default: "FHL League")
Your league name (Displayed on the tab bar)
$leagueLogo (Default: '')
Your league logo (Only if $navbarMode = 1)
$cdnSupport (Default: 1[on])
Load assets based on your location.
$leagueLang (Default: "EN")
Enter FR for French and EN for English.
$demoMode (Default: 0[off])
It add a menu to see all navigation possibilities.
$home (Default: "")
Your main page location.
If your addon is located at yourLeague.com/Page/ and your main page is yourLeague.com/, enter "../".
$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: "")
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/
CAREER STATS
$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.
BOXSCORE LOGO
$folderTeamLogos (Default: "logos/")
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/.
$folderTeamLogosFarm (Default: "")
Same thing as $folderTeamLogos but for Farm Teams.
OGME
$folderGmo (Default: "gmo/")
Relative to your "config.php".
If your addon is located to yourLeague.com/Page/ and your OGME is yourLeague.com/OGME/, then you need to enter ../OGME/.
Leave empty if you doesn't want the OGME link.
TRADES & TRANSACTIONS
$enableTransactions (Default: 1[on])
Display Transactions pages
$enableTrades (Default: 1[on])
Display Trades pages
$enableFeatures (Default: 1[on])
Display Features pages
ROSTERS PAGE
$leagueRostersLink (Default: 1 [hockeyDB])
Choose between HockeyDB : 1 or EliteProspects : 2 or TSN : 3
FUTURES PAGE
$leagueFuturesLink (Default: 1 [hockeyDB])
Choose between HockeyDB : 1 or EliteProspects : 2
$leaguePlayerImages (Default: 1 [TSN])
Choose between TSN : 1 or Sportsnet : 2
$leagueFuturesDraftYears (Default: 4)
How many draft years ahead to display.
SALARY COP
$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: 53000000)
If you are using Salary Cop page, edit your salary cap here.
$leagueSalaryClose (Default: 52000000)
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.
$leagueSalaryCapInjuryMode (Default: 0 [off])
Injuries count toward caphit no LTIR : 0.
$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
$minActivePlayers (Default: 20)
Min required active players on roster.
Off : 0
OTHER SETTINGS
$minGoaliesAppearances (Default: 33)
Min Goalie Appearances for stats leaders page.
$leagueMode (Default: 0 [Season])
Regular Season: 0 | Playoffs : 1 | Auto Detect : 2
$footerText (Default: "FHL TableSim 2.0")
Text to display in footer (bottom) of each page.
$siteTheme (Default: "blue")
Choose your color theme
$navbarMode (Default: 1 [full])
0 Navbar disabled | 1 Full Navbar enabled (default) | 2 Simple nav with team icons | 3 Simple nav with team dropdown.