The following call will display the current standings for the season specified. The season must be published and standings made available to the public in order for this to work:
myss_ShowStandings(slid, sort, seasontype, tid, originalsportid, target, uid, key, statsort);
The following is an explanation of each parameter and their possible values:
1) slid: (integer) This is the id of the season you wish to display. This ID can be found under manage seasons and tournaments from the backend and will be displayed with the name of the season.
2) sort: (integer) This indicates how you want the standings to be displayed:
- 1 – By Division
- 2 – By Conferences
- 3 – Overall
3) seasontype: (integer) This indicates which you would like the standings displayed for:
- 0 – Pre Season
- 1 – Regular Season
- 2 – Post Season
4) tid: (integer) This represents a teamid. If this is filled in, the team from that season with the matching ID will be highlighted. TeamID’s can be found in the manage teams menu in the backend. Providing a value of 0 will not highlight any teams.
5) originalsportid: (integer) DEPRECATED. Please always provide a value of 0
6) target: (string) the id of the HTML element you would like the standings to be displayed in.
7) uid: (integer) RESERVED. Always 0
8) key: (string) RESERVED. Always an empty string.
9) statsort: (integer) This represents how you would like your standings sorted:
- 1 – GP
- 2 – Wins
- 3 – OTW
- 4 – Losses
- 5 – OTL
- 6 – Ties
- 7 – Points
- 8 – GF
- 9 – GA
- 10 – Diff
- 11 – WinPerc
EXAMPLE HTML CODE:
<div style="width: 100%;" id="myss_standings"></div> <script type="text/javascript">myss_ShowStandings(1, 0,1,0, 0, '#myss_standings', 0, '');</script>
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article