Support Forums

Sort listings by...

This is a discussion on Sort listings by... within the Technical Support forums, part of the Technical Support Forums category; I have found two issues with the sort function in the showlisting view. 1. Listings can be sorted by title, ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 06-02-2008, 07:48 AM   #1
Senior Member
 
Join Date: Jun 2007
Posts: 110
Rep Power: 15
crystal is on a distinguished road
Default Sort listings by...

I have found two issues with the sort function in the showlisting view.

1. Listings can be sorted by title, date, etc. It seems as though the site "remembers" what the user last clicked on to sort by. For instance, if the user is browsing listings and sorts by price, then any search results are automatically sorted by price. This is also true if the user clicks on the "new listings" and "top listings" page. These are supposed to be sorted by date or views respectively, but they are sorted by price or whatever the user last clicked on to sort by.

2. The sort function alternates ascending and descending. This is fine (and expected) when clicking on one field to sort by only. (If you click it once it sorts ascending, click it again and it is descending.) The probelm is that when a user is looking at titles descending, and then clicks on price, the listings are now sorted by price ascending. This is confusing. Each time you click a different header it alternates. If possible, I would like it to default to all fields descending and then if the user clicks the link a second time they are ascending.

These things are minor but still affect the usability of the site. Any suggestions are appreciated!
__________________
Crystal
v4.0.8 Dev
crystal is offline  
Old 06-02-2008, 03:23 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,470
Rep Power: 130
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Hi Crystal,

I know things like this seem minor but they are not really that simple. The sorting is based off cookies for the user benefit so when they go between pages the listings are still sorted the way they wanted. I also relize it affects the featured, new, top, etc and I haven't figured out an easy way of requiring it one way and still allowing them to resort. If that makes sense.

For #2 that one is also tricky. You would have to check and make they first didn't click the same link that they already clicked to make sort the same direction or else it would only allow one way sorting. Either asc or desc.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 06-02-2008, 03:26 PM   #3
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,716
Rep Power: 66
seymourjames is a jewel in the rough
Default

It is even more problematical if somebody wants to make SEO friendly ULs. I still have not solved the problem and basically have tried to hardwire the order of listings each time.
seymourjames is offline  
Old 06-02-2008, 03:32 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,470
Rep Power: 130
Eric Barnes is just really nice Eric Barnes is just really nice
Default

I thought I had the SEO mod fixed and working with the sorting. If not can you try and download it again and make sure the mod_user.php file has this as the first line of the $before array.
Code:
"'(?<!/)category.php\?cat=([a-zA-Z0-9_-]*)\&sortfield=([a-zA-Z0-9_-]*)\&sortorder=([a-zA-Z0-9_-]*)\&page=([0-9]*)'",
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 06-02-2008, 03:43 PM   #5
Senior Member
 
Join Date: Jun 2007
Posts: 110
Rep Power: 15
crystal is on a distinguished road
Default

I have the SEO mod problem also - that was the big one that I forgot to include in this post (the entire reason why I was looking at the sort in the first place). I submitted a ticket yesterday. I will make the change by Eric above and post my results. EDIT: The line above is already in my mod_user.php file and I'm still receiving the error.

My solution for the "New Listings" link is to manually link it to:

http://www.mysite.com/toplistings.ph...sortorder=desc

How do I manually link to the "Top Listings" page the same way? (What do I put instead of sortfield=dateadded)?

Thanks
__________________
Crystal
v4.0.8 Dev

Last edited by crystal; 06-02-2008 at 04:15 PM.
crystal is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort Listings tessey Technical Support 3 03-29-2008 08:30 AM
V4 Changes Eric Barnes Technical Support 24 11-12-2007 01:35 AM


All times are GMT -4. The time now is 06:03 AM.


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