Author Topic: [Mod] Randomizing {new_images}  (Read 35463 times)

0 Members and 1 Guest are viewing this topic.

Offline tripiyon

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Re: [Mod] Randomizing {new_images}
« Reply #15 on: May 03, 2008, 08:06:57 PM »
Hi,

I have Mysql 5.0.45 and me the script does not work.
What change do I need in the code in order that it works well?

Thanks


Just replace in index.php
Code: [Select]
ORDER BY i.image_date DESC with
Code: [Select]
AND i.image_date >= ".(time() - 60 * 60 * 24 * $config['new_cutoff'])."
ORDER BY RAND()
This requires MySQL version >= 3.23.23

Greets Jan

Offline tripiyon

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Re: [Mod] Randomizing {new_images}
« Reply #16 on: May 03, 2008, 09:18:45 PM »

Offline relu

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Pulsarmedia
Re: [Mod] Randomizing {new_images}
« Reply #17 on: March 15, 2012, 04:32:45 PM »
I'm using it but i notticed that page is loading after a few secconds... 15-20 sec of thinking. Without the randomizing code is instant.