Search is sorted by oldest first. This creates lots of usability faults. I searched the forum, but couldn't answer to my qestion:
How to order search results by newest first?


| |||||||
| | LinkBack | Thread Tools | Display Modes |
| |||
| Search is sorted by oldest first. This creates lots of usability faults. I searched the forum, but couldn't answer to my qestion: How to order search results by newest first? |
| ||||
| I'm searching for the same thing. Anyone could help us? Thanks. |
| |||
| I'm also searching for the same thing. Tx |
| |||
| Tags are also sorted with oldest first Tags also use the search module, so if you browse a Pligg site by tags, you're going to see a list of results with the the oldest ones displaying first which is confusing. Ideally, you'd have a toggle that allows the user to sort them in either direction, but I think the default should be newest first. |
| ||||
| I think (not tested) in the file /lib/search.php there is a variable line 16 on beta9.5 it's NULL per default you should set it to: link_date DESC because at line 110 there's: Quote:
forget what I wrote above, in fact you should not change anything on line 16 because that's the class declaration and it should be neutral. but on line 125 begins the search function which is where you can change for links and tags so for links you can add after line 150 something like $this->orderBy = "link_date DESC"; try this maybe it will work. for tags, it depends with what you want to order them, by alphabetical order or what.. but it begins not at line 150 but at line 133 Senserely Yours, James ![]() Earn more DAILY in your AdSense account - Free (good) Music Video Downloads - Sexy Robots Videos Last edited by wwwSENSERELYcom; 05-26-2007 at 01:57 PM. |
| |||
| Unfortunately, it doesn't work. Any other suggestions? Pligg - a Swiss version of Pligg (very much online) |
| |||
| I can pay or donate some cash if this problem is solved. |
| ||||
| Dev please help :p i require this too sorting results by oldest in a search isnt that user friendly. I have tried editing both the search.php files but cannot find the correct solution. Adam The Original Pligg Template Community Site - http://pligg-template.com The P2P and File Sharing News and Bookmarking Site: http://p2pvine.com |
| ||||
| open /libs/search.php find PHP Code: PHP Code: Anatomy of the Pligg template Help needed |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SEO (Search Engine Optimization) | GrinGEO | Wiki Articles | 24 | 12-02-2007 12:27 PM |
| Let the user sort the search results by different ways? | Niko | General Help | 0 | 11-17-2007 03:49 AM |