Arrow

League positionsif level on points | Peter's Sports League Standings | Forum

Back to the sports standings script page

Please consider registering
guest

Log In

Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
League positionsif level on points
September 21, 2008
1:11 pm
nicola
Guest

Hi,

If teams are level are points it normally then goes down to goal difference. i.e. GF - GA = GD

Can i select this method with this script?

Thanks in advance,

Nic

September 21, 2008
5:13 pm
Peter
Admin
Forum Posts: 841
Offline

Yes. If you are using version 1.2, you must modify standings.php as follows:

At about line 292:

(teamwins + teamties + teamlosses + teamforfeits) AS gamesplayed,

Add this below that line:

(teamrf - teamra) AS rundifference,

Then, you can change the sort order for sorting by points, at about line 167:

case 10: // Sort by points
$sort_order = "points DESC, rundifference DESC, teamwins DESC, winningpct DESC, teamorder DESC"; break;
September 22, 2008
2:09 am
nicola
Guest

Thanks Peter!