1
Vince100
Need a little hack for mylinks
  • 2005/6/12 19:41

  • Vince100

  • Just popping in

  • Posts: 1

  • Since: 2005/6/12


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



Login

Who's Online

178 user(s) are online (124 user(s) are browsing Support Forums)


Members: 0


Guests: 178


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits