Search results newest first

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 06-12-2007, 05:56 AM
P1mpPanther's Avatar
Constant Pligger
 
Join Date: Feb 2007
Posts: 277
works like a charm savant, thanks!
Reply With Quote
  #12 (permalink)  
Old 06-12-2007, 07:20 PM
Constant Pligger
 
Join Date: Jun 2006
Posts: 108
Awesome

Sorting Search by date should get rid of the Categories....

thnks
Reply With Quote
  #13 (permalink)  
Old 06-13-2007, 02:26 AM
Pligg Donor
 
Join Date: Jan 2007
Posts: 86
thanks savant.

if i went to sort by vote number. how can i do it.
Reply With Quote
  #14 (permalink)  
Old 08-16-2007, 09:15 AM
New Pligger
 
Join Date: May 2007
Posts: 4
Quote:
Originally Posted by haxhax View Post
thanks savant.

if i went to sort by vote number. how can i do it.
Same question from me. Looking for item with most votes to appear first, then second most votes...
Reply With Quote
  #15 (permalink)  
Old 10-11-2007, 05:50 PM
New Pligger
Pligg Version: 9.8.2
Pligg Template: yget
 
Join Date: Aug 2007
Posts: 18
Is this really working in version 9.8.2? It does not work on my site (and it did before).
Reply With Quote
  #16 (permalink)  
Old 10-17-2007, 05:17 AM
liotier's Avatar
Casual Pligger
Pligg Version: Slightly modified 9.8.2
Pligg Template: Slightly modified Yget from 9.8.2
 
Join Date: Jul 2007
Location: Paris La Défense, France
Posts: 70
Quote:
Originally Posted by Niko View Post
Is this really working in version 9.8.2? It does not work on my site (and it did before).
Savant's s/asort/arsort/ suggestion does indeed work fine on 9.8.2
Reply With Quote
  #17 (permalink)  
Old 11-21-2007, 11:25 PM
Casual Pligger
 
Join Date: Jul 2007
Posts: 61
Works nicely for using the search box but when I use tags which uses the search script as well If I click on a tag, its still sorted with oldest first.

UPDATE:
ok around link 212 or there abouts in /libs/search.php I see you can change

Code:
$where = " AND ".$sq." GROUP BY " . table_links . ".link_id, `link_votes` ORDER BY `link_votes` DESC";
to

Code:
// $where = " AND ".$sq." GROUP BY " . table_links . ".link_id, `link_votes` ORDER BY `link_votes` DESC"; 
$where = " AND ".$sq." GROUP BY " . table_links . ".link_id, `link_date` ORDER BY `link_date` DESC";
To sort the search with newest first when someone clicks on a tag.

Last edited by sefs; 11-22-2007 at 08:18 AM.
Reply With Quote
  #18 (permalink)  
Old 01-05-2008, 03:14 PM
New Pligger
 
Join Date: Aug 2007
Posts: 11
This is pretty crazy. How can something of such obvious need and such easy fix for the dev team, not have been included in any recent versions? It's just so obvious how it should be.

Actually, EVERY query should use the same algorithm as "Top Stories" and "Submitted Stories". That's what makes the best sense. I really want to do that for my queries that result from clicking on a tag. If anyone knows how to do that, I'd really appreciate it.
Reply With Quote
  #19 (permalink)  
Old 01-08-2008, 06:48 PM
New Pligger
 
Join Date: Aug 2007
Posts: 11
Yup. Worth repeating.
Reply With Quote
  #20 (permalink)  
Old 01-08-2008, 09:35 PM
New Pligger
Pligg Version: 9.8.2
Pligg Template: yget
 
Join Date: Dec 2007
Posts: 7
Thanks Savant
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Let the user sort the search results by different ways? Niko Questions and Comments 0 11-17-2007 03:49 AM
Search Yields Too Many Results mitchb13 Questions and Comments 0 04-02-2007 02:40 PM
tag and search results prob chad90382 Questions and Comments 3 11-29-2006 08:08 PM
Search: No Results konakevin Questions and Comments 21 07-06-2006 01:12 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development