1
Joomla! 1.5 / [RISOLTO] Problema con modulo mod_eventlist
« il: 23 Giu 2012, 14:44:57 »
Salve a tutti,
per modificare l'ordine di apparizione degli eventi, da quello più recente a quello più vecchio,
modificate il file modules/mod_eventlist/helper.php
// upcoming events
$where = ' WHERE a.published = 1 and a.dates >= CURDATE()';
$order = ' ORDER BY a.dates ASC, a.times ASC';
} else if ($params->get( 'type', '0' ) == 1) {
// archived events
$where = ' WHERE a.published = -1';
$order = ' ORDER BY a.dates DESC, a.times DESC';
} else {
// published events (default)
$where = ' WHERE a.published = 1';
$order = ' ORDER BY a.dates ASC, a.times ASC';
}
in:
// upcoming events
$where = ' WHERE a.published = 1 and a.dates >= CURDATE()';
$order = ' ORDER BY a.dates DESC, a.times DESC';
} else if ($params->get( 'type', '0' ) == 1) {
// archived events
$where = ' WHERE a.published = -1';
$order = ' ORDER BY a.dates DESC, a.times DESC';
} else {
// published events (default)
$where = ' WHERE a.published = 1';
$order = ' ORDER BY a.dates DESC, a.times DESC';
}
Spero di essere stato utile
per modificare l'ordine di apparizione degli eventi, da quello più recente a quello più vecchio,
modificate il file modules/mod_eventlist/helper.php
// upcoming events
$where = ' WHERE a.published = 1 and a.dates >= CURDATE()';
$order = ' ORDER BY a.dates ASC, a.times ASC';
} else if ($params->get( 'type', '0' ) == 1) {
// archived events
$where = ' WHERE a.published = -1';
$order = ' ORDER BY a.dates DESC, a.times DESC';
} else {
// published events (default)
$where = ' WHERE a.published = 1';
$order = ' ORDER BY a.dates ASC, a.times ASC';
}
in:
// upcoming events
$where = ' WHERE a.published = 1 and a.dates >= CURDATE()';
$order = ' ORDER BY a.dates DESC, a.times DESC';
} else if ($params->get( 'type', '0' ) == 1) {
// archived events
$where = ' WHERE a.published = -1';
$order = ' ORDER BY a.dates DESC, a.times DESC';
} else {
// published events (default)
$where = ' WHERE a.published = 1';
$order = ' ORDER BY a.dates DESC, a.times DESC';
}
Spero di essere stato utile
