1
Hello,
I would like to display links (module mylinks) in random order first. I modified viewcat.php, I only replaced
if(isset($HTTP_GET_VARS['orderby'])) {
$orderby = convertorderbyin($HTTP_GET_VARS['orderby']);
} else {
$orderby = "title ASC";
}
by
if(isset($HTTP_GET_VARS['orderby'])) {
$orderby = convertorderbyin($HTTP_GET_VARS['orderby']);
} else {
$orderby = "rand()";
}
It's OK for the first page of links, but the others are ordered by date... Have you a better solution ?
Thanks
I would like to display links (module mylinks) in random order first. I modified viewcat.php, I only replaced
if(isset($HTTP_GET_VARS['orderby'])) {
$orderby = convertorderbyin($HTTP_GET_VARS['orderby']);
} else {
$orderby = "title ASC";
}
by
if(isset($HTTP_GET_VARS['orderby'])) {
$orderby = convertorderbyin($HTTP_GET_VARS['orderby']);
} else {
$orderby = "rand()";
}
It's OK for the first page of links, but the others are ordered by date... Have you a better solution ?
Thanks