| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Apr 2005 Location: Australia
Posts: 1,092
![]() ![]() ![]() | "Project Zen" I am trying to edit version 3 of the following script: www.coolmon.com . I wish to make it so that it will display the newest email FIRST. Currently it displays the newest email last. Does anyone know how I would go around making it to display the newest email first ?. Thanks ![]() -Josh
__________________ :bingo: :kickass: :lala: :notme: :great: :gn: |
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Nov 2005 Location: EU
Posts: 248
![]() | So you want it to be the default display? I looked at the code real quick and I think you have to tamper with messages.php. At line 287 it sets the sorting criteria grabbed from the query string. The default is the arrival date, that's good. Next, at line 311 sets the sorting order. Now there you need to add something to make the reverse sorting default (imap_sort($link, $disporder, 1)). |
| |