Author Topic: "How do I" Replace New images with Random Images  (Read 4531 times)

0 Members and 1 Guest are viewing this topic.

Offline sami1255

  • Newbie
  • *
  • Posts: 31
    • View Profile
"How do I" Replace New images with Random Images
« on: August 12, 2007, 03:52:32 AM »
I have a site www.celebritysexshot.com which shows 12 new images on index page.. I want all 12 of them to be shown as Random from Random Categories.. is that possible? Please Reply, i want it done within 24 hours..  :cry: :cry: :cry: :cry:

Offline sami1255

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: "How do I" Replace New images with Random Images
« Reply #1 on: August 12, 2007, 01:59:13 PM »
nobody cares to help here ??  :roll:

manurom

  • Guest
Re: "How do I" Replace New images with Random Images
« Reply #2 on: August 12, 2007, 02:44:18 PM »
Hello;
hoping your sever will not too much slow down, open the file index.php.
Find:
Code: [Select]
ORDER BY i.image_date DESC
        LIMIT $num_new_images";
and replace by:
Code: [Select]
ORDER BY RAND()
        LIMIT $num_new_images";

Offline sami1255

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: "How do I" Replace New images with Random Images
« Reply #3 on: August 12, 2007, 05:54:13 PM »
ya.. thanks alot buddy.. infact i sorted that out with a mod which was meant to include random images after new images.. i simply removed the newimages from index.html..   :)