Quote:
Originally Posted by IR15H
Hmm okay then, is there a way I can separate them so I can display it by seasons to the end user (on forum/vbsoccer.php) rather than by leagues?
I want to have a layout something like;
- Current Season (2009/10)
- League 1
- League 2
- League 3
- Last Season (2008/09)
- League 1
- League 2
- League 3
- Older Seasons (<2008)
- League 1
- League 2
- League 3
- etc.
If I try to move a 2008/09 league to my new 08/09 category then it moves the 09/10 league to it as well which I'm trying to avoid.
|
find in 'admincp/vbsoccer_admin.php' (line ~1039):
PHP Code:
$db->query_write("
UPDATE `" . TABLE_PREFIX . "soccer_league`
SET `visible`=" . $vbulletin->GPC['visible'] . ",
`description`='" . $db->escape_string(trim($vbulletin->GPC['description'])) . "',
`showteamicons`=" . $vbulletin->GPC['showteamicons'] . $unset_logo_sql . ",
`readonly`=" . $vbulletin->GPC['readonly'] . "
WHERE `id`=" . $vbulletin->GPC['leagueid'] . "
");
// navigationsgruppe aller wettbewerbe gleichen types updaten
$db->query_write("
UPDATE `" . TABLE_PREFIX . "soccer_league`
SET `groupid`=" . $vbulletin->GPC['groupid'] . "
WHERE `sd_shortname`='" . $db->escape_string($leagueinfo['sd_shortname']) . "'
");
... and replace with:
PHP Code:
$db->query_write("
UPDATE `" . TABLE_PREFIX . "soccer_league`
SET `visible`=" . $vbulletin->GPC['visible'] . ",
`description`='" . $db->escape_string(trim($vbulletin->GPC['description'])) . "',
`showteamicons`=" . $vbulletin->GPC['showteamicons'] . $unset_logo_sql . ",
`readonly`=" . $vbulletin->GPC['readonly'] . ",
`groupid`=" . $vbulletin->GPC['groupid'] . "
WHERE `id`=" . $vbulletin->GPC['leagueid'] . "
");
in the next update this is optional as a feature (no automatic assignment).