The idea was to sort the standings against points and if points were tied then against sdiff. The plan was that points would be awarded in the normal way of win=3 points, tie = 2 points, and loss = 1 point. However I most have gotten something wrong as after the first match both teams got 0 points in the standings after a 1-0 match.
Heres the code defining the House ranking systems from the settings.php file.
Code: Select all
// Rule #5
$hrs[5]['rule'] = array('-pts', '-sdiff'); // Sort teams against: most points, then highest GF-GA.
$hrs[5]['points'] = '3*[won] + 2*[draw] + 1*[lost]'; // The definition of points.
Code: Select all
$settings['fp_standings'] = array(
# This will display a standings box of the top 6 teams in node (league, division or tournament) with ID = 1
array(
'id' => 11,
'box_ID' => 2,
// Please note: 'type' may be either one of: 'league', 'division' or 'tournament'
'type' => 'tournament', # This sets the node to be a tournament. I.e. this will make a standings box for the tournament with ID = 1
'infocus' => true, # If true a random team from the standings will be selected and its top players displayed.
/*
The house ranking system (HRS) NUMBER to sort the table against.
Note, this is ignored for "type = tournament", since tours have an assigned HRS.
Also note that using HRSs with fields such as points (pts) for leagues/divisions standings makes no sense as they are tournament specific fields (i.e. it makes no sense to sum the points for teams across different tours to get the teams' "league/division points", as the points definitions for tours may vary).
*/
'HRS' => 5, # Note: this must be a existing and valid HRS number from the main settings.php file.
'title' => 'The Full Bucket MMXIII Standings',
'length' => 8,
# Format: "Displayed table column name" => "OBBLM field name".
'fields' => array('Name' => 'name', 'PTS' => 'pts', 'TV' => 'tv', 'CAS' => 'cas', 'W' => 'won', 'L' => 'lost', 'D' => 'draw', 'GF' => 'gf', 'GA' => 'ga',),