4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: sami1255 on August 12, 2007, 03:52:32 AM

Title: "How do I" Replace New images with Random Images
Post by: sami1255 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:
Title: Re: "How do I" Replace New images with Random Images
Post by: sami1255 on August 12, 2007, 01:59:13 PM
nobody cares to help here ??  :roll:
Title: Re: "How do I" Replace New images with Random Images
Post by: manurom 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";
Title: Re: "How do I" Replace New images with Random Images
Post by: sami1255 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..   :)