4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Ljay on January 17, 2008, 05:25:55 PM
-
The pictures in my gallery are sorted by image name. On the index page, when a person follows the link to the new images page, the new images are also sorted by name.
I would like to have them sorted by date added, but still keep my other categories sorted by image name. Is there a way to do this?
-
anyone please? I'm sure it must be easy, just something to add on the search.php page to tell the site how to order results maybe? I'm not good with coding so can't work it out myself
-
Can anyone please help me with this? I want to keep all my categories in order of image name, but want the search results page for new images to show the files by date added in descending order (so that the newest images will be at the top of the page)
-
try this (not tested):
in search.php find:
ORDER BY ".$config['image_order']." ".$config['image_sort'].", image_id ".$config['image_sort']."
Replace with:
ORDER BY ".((!empty($search_id['search_new_images']) && $search_id['search_new_images'] == 1) ? "image_date DESC" : $config['image_order']." ".$config['image_sort']).", image_id ".$config['image_sort']."
-
thank you so much it works perfectly :mrgreen:
-
Hi,
1.7.8 works :) thx
Greetz X23
-
This message has been deleted by Rembrandt as spam!