Featured Players

Modified on Wed, 25 May 2016 at 11:31 AM

The following call will display featured players for the season specified. If both sportid and slid are provided with values of 0, only spotlight players will be shown which can be indicated through the featured players menu on the backend.

myss_ShowPOWScroller(sportid, slid, PlayersPerDisplay, target);

The following is an explanation of each parameter and their possible values:

1) sportid: (integer) This value will filter featured players by a particular sport.

  • MYSS_ALL
  • MYSS_HOCKEY
  • MYSS_SOCCER
  • MYSS_LACROSSE
  • MYSS_FIELDHOCKEY
  • MYSS_OTHER

2) slid: (integer) This value will filter featured players for a particular season only. It 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. A value of 0 will show all featured players for all seasons.
3) PlayersPerDisplay: (integer) This value will indicate how many players to show per slide. For example, if there were 4 featured players and this value was set to 2, there would only be 2 slides on the scroller. The first slide would contain the first two players which will be shown together and the second slide will contain the last two players which will show together. The slider will automatically scroll through the player slides if the number of players is greater than the value indicated here. Otherwise, it will always just remain on the one and only slide.
4) target: (string) the id of the HTML element you would like the standings to be displayed in.

 

EXAMPLE HTML CODE:

<div style="width: 100%;" id="myss_featuredplayers"></div>
<script type="text/javascript">myss_ShowPOWScroller(0, 1, 0, '#myss_featuredplayers');</script>

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article