xoops forums

Forum Index


Board index » All Posts (Vince100)




Vince100

Just popping in
Posted on: 2005/6/12 19:41
Vince100
Vince100 (Show more)
Just popping in
Posts: 1
Since: 2005/6/12
#1

Need a little hack for mylinks

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



TopTop