Closed GoogleCodeExporter closed 9 years ago
Hi Fabio.
The automatic population of front page standings tables for ALL tournaments is
removed because many people are requesting more customizability regarding the
front page.
This has led to the new structure, where EACH league, using the LOCAL
settings_*.php
files, can set their own front page.
You are wrong in that it is only possible to display the standings tables for
ONE
tournament. You can in fact get the exact same front page as before (with 0.75)
by
adding ALL the tournaments to the array, like so:
$settings['fp_standings'] = array(
# This would display a standings box of the top 6 teams in tournament with ID = 1.
1 => array(
'length' => 6,
'fields' => array(
# Displayed table column name => OBBLM field name.
'Name' => 'name', 'PTS' => 'mv_pts', 'CAS' => 'mv_cas',
'W' => 'mv_won', 'L' => 'mv_lost', 'D' => 'mv_draw', 'GF' => 'mv_gf',
'GA' => 'mv_ga'
),
),
# This would display a standings box of the top 6 teams in tournament with ID = 2.
2 => array(
'length' => 6,
'fields' => array(
# Displayed table column name => OBBLM field name.
'Name' => 'name', 'PTS' => 'mv_pts', 'CAS' => 'mv_cas',
'W' => 'mv_won', 'L' => 'mv_lost', 'D' => 'mv_draw', 'GF' => 'mv_gf',
'GA' => 'mv_ga'
),
),
# This would display a standings box of the top 6 teams in tournament with ID = 3.
3 => array(
'length' => 6,
'fields' => array(
# Displayed table column name => OBBLM field name.
'Name' => 'name', 'PTS' => 'mv_pts', 'CAS' => 'mv_cas',
'W' => 'mv_won', 'L' => 'mv_lost', 'D' => 'mv_draw', 'GF' => 'mv_gf',
'GA' => 'mv_ga'
),
),
);
..and so on - just add more tournament entries in the out-most array as done
above.
I would strongly suggest you NOT copy old code and merge it with v. 0.8.
Original comment by Nimda...@gmail.com
on 15 Feb 2010 at 9:32
Original comment by Nimda...@gmail.com
on 19 Feb 2010 at 8:07
Original issue reported on code.google.com by
Fabio.Mo...@gmail.com
on 15 Feb 2010 at 3:03