Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author AntoineH

    (@antoineh)

    There is some documentation in the help page. Don’t know what you mean with “full score”.

    Thread Starter 180simon

    (@180simon)

    By Full Points I mean if the exact score of s match is predicted correctly.

    Plugin Author AntoineH

    (@antoineh)

    The ranking table only contains aggregated data, no data for one particular match. So that would translate it to ‘the number of full scores the user predicted’, correct? That data is not available in the ranking table, but there is a hook that allows you to update the template params with the data needed (footballpool_ranking_ranking_row_params).

    Thread Starter 180simon

    (@180simon)

    Yes Antoine, that is correct – an aggregated number for the full scores in the competition to date for each user.

    Plugin Author AntoineH

    (@antoineh)

    Then you can use the hook I mentioned earlier to add this data for every user. You also need to use the hook for the output of the table. There is an example on the help page and/or the first post in this forum about changing the ranking table (not sure where I put it).

    For performance sake I would suggest retrieving all data at once (it’s a simple query) and storing it in cache, so subsequent lookups for every user can be done from memory.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Define Full Points for Ranking Table’ is closed to new replies.