 | |  | |
March 7th, 2005, 12:16 PM
|
#2 (permalink)
| | Ultimate Member Verified Customer
Join Date: Nov 2003 Location: Raleigh, NC
Posts: 1,413
| Re: Use Display Options to sort newest to oldest
Descending will show the newest at the top.
|
| |
March 7th, 2005, 02:47 PM
|
#3 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2005
Posts: 7
| Re: Use Display Options to sort newest to oldest
But it doesn't. Try it.
|
| |
March 7th, 2005, 02:48 PM
|
#4 (permalink)
| | Ultimate Member Verified Customer
Join Date: Nov 2003 Location: Raleigh, NC
Posts: 1,413
| Re: Use Display Options to sort newest to oldest
If you set Gallery's default sorting to be descending by date (in AdminCP), it'll work. But using the dropdowns at the bottom doesn't work to change the sort order, I think. (I think I reported that a while back.)
|
| |
March 7th, 2005, 02:51 PM
|
#5 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2005
Posts: 7
| Re: Use Display Options to sort newest to oldest
Ah, so it's a bug.
I don't want an admin-set solution, I want users to be able to use these sorting options the UI displays.
|
| |
March 7th, 2005, 02:52 PM
|
#6 (permalink)
| | Ultimate Member Verified Customer
Join Date: Nov 2003 Location: Raleigh, NC
Posts: 1,413
| Re: Use Display Options to sort newest to oldest
I can't seem to find the post now, but I remember running into the same issue, and I thought I had posted a report about it... Dunno.
|
| |
March 7th, 2005, 11:34 PM
|
#7 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2005
Posts: 7
| Re: Use Display Options to sort newest to oldest
Ok, my admin friend fixed the mising code and the sorting works now.
If it helps, he said Quote:
I didn't have time to wade through all the code in browseimages.php tonight
to see exactly why the sort order wasn't being set, but I did create a fix
anyway. I checked $condition['direction'] (that's where the sort order
should be) and found it was blank right before the query, so just above the
query I added:
if (!isset($condition['direction'])) {
$condition['direction'] = iif($_REQUEST['direction'] == 'ASC', 'ASC',
'DESC');
}
That fills in 'direction' with what you set it to in the request if the
code gets that far without setting it itself. It shouldn't get in the way
when the code sets it to DESC or ASC automatically for other types of browsing.
| |
| |
March 8th, 2005, 06:22 AM
|
#8 (permalink)
| | Guest | Re: Use Display Options to sort newest to oldest
If you'll look in your browseimages.php file for this code: Code: Content visible to verified customers only.
And replace it with this: Code: Content visible to verified customers only.
Then that should take care of the problem.
| |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 01:57 AM. | |