PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old March 7th, 2005, 11:53 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 7
Unhappy Use Display Options to sort newest to oldest

I want the latest images to be at the top in this Display options query.

Here's Sorted by Date Added, Sort Order Ascending:
http://www.joedios.com/dioramas/brow...&cutoffdate=-1

Here's Sorted by Date Added, Sort Order Descending:
http://www.joedios.com/dioramas/brow...&cutoffdate=-1

They're the same thing! How do I get the new images at the top?
Hammerfel is offline  
Old March 7th, 2005, 12:16 PM   #2 (permalink)
Ultimate Member
Verified Customer
 
ConqSoft's Avatar
 
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.
ConqSoft is offline  
Old 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.
Hammerfel is offline  
Old March 7th, 2005, 02:48 PM   #4 (permalink)
Ultimate Member
Verified Customer
 
ConqSoft's Avatar
 
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.)
ConqSoft is offline  
Old 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.
Hammerfel is offline  
Old March 7th, 2005, 02:52 PM   #6 (permalink)
Ultimate Member
Verified Customer
 
ConqSoft's Avatar
 
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.
ConqSoft is offline  
Old 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.
Hammerfel is offline  
Old March 8th, 2005, 06:22 AM   #8 (permalink)
Brian
Guest
 
Posts: n/a
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
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
5.14: Category Sort, not completely by newest pengrus Photopost Pro Bug Reports 7 January 28th, 2007 07:25 PM
how to get member gallery to sort by newest first Carolem Photopost Pro How Do I...? 1 November 13th, 2005 10:35 PM
Sort by options Mike Wilbanks Classifieds Suggestions 5 August 9th, 2005 10:17 AM
5.11 edit albums sort options Astaran Photopost Pro Bug Reports 5 June 22nd, 2005 03:20 PM


All times are GMT -5. The time now is 01:57 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0