![]() |
Sortable columns for message listing
Description
This hack changes the PM message listing to work more like most webmail type systems. The date, title and sender are separated into three columns and the current message grouping (ie today, yesterday, last week) is removed. Each of the new columns can be sorted by clicking on the column header. I have long hated the way the old message system works because I have trouble finding all messages from a particular user. By being able to sort by users, this has made things easier. Details Files to Modify: 1 Templates to Modify: 4 Difficulty: Easy Support I will be checking this thread and answering questions or addressing any problems Updates Version 1.01 1) Updated install script. Step 12 listed wrong template 2) Corrected problem with pagination. If you have installed 1.00, just redo step 7. 3) Updated to handle the fact that not everyone uses PM icons. Steps 9 to 12 were updated to reflect this change. This change both turns off the column when not used and properly alternates the column colors. If you have installed this and are using PM Icons, don't worry about it. |
Nice mod..congrats
[high]* bigcurt doesnt install because I dont use pm ;) [/high] FIRST POST! |
Nice hack!! Installing :)
|
Slight correction to the install file:
Step 12 should read: In pm_messagelist_periodgroup find (not PM_MESSAGELISTBIT_IGNORE) And the code to search for in step 12 is: Code:
<tr> I beleive that's all that was missing. Great mod, simple but powerful improvement to the private messages. Thanks Mark. |
The hack goofs on pagination though, you end with page links that looks like:
"/private.php?folderid=0&pp=50&fromusername=$fromuse rname&sortorder=asc&page=2" "/private.php?folderid=0&pp=50&=$&sortorder=desc&pag e=2" I can guess what the problem is, but I'm still working out how this would be fixed... suggestions? |
Thanks for the input. I have corrected the problems and loaded up a new installer. Please let me know if you have any more problems.
Mark |
Thanks, I should have looked there. However you pointed me in the right direction, and I found the bug I was looking for:
The code to replace in step 7 should be (change bolded, color): Code:
$pagenav = construct_page_nav($totalmessages, "private.php?$session[sessionurl]folderid=$folderid&pp=$perpage&sort=$sortfield&sortorder=$sortorder"); And one simple improvement in step 12 (change bolded, color), allows you to click the sort on any page #, and maintain the page #: Code:
<tr> |
any status on 3.5.0 for this? this ROCKS on my 3.0.7 board :)
|
I haven't even looked at 3.5 yet. Now that it is at "Release Candidate" status, I plan to do so soon.
Mark |
yes, please do :)
|
Quote:
|
*bump*
3.5.0? |
Another request for a 3.5 version :)
|
Just wondering how difficult it would be to mod this to work exactly the same on search.php, particularly with new posts, ie: sort by forum name upon clicking "New Posts"
|
All times are GMT. The time now is 04:43 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|