The Arcive of vBulletin Modifications Site. |
|
![]() |
|||||||||||||||||||||||||
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. Show Your Support
|
Comments |
#2
|
||||
|
||||
![]()
Nice mod..congrats
[high]* bigcurt doesnt install because I dont use pm ![]() [/high] FIRST POST! |
#3
|
|||
|
|||
![]()
Nice hack!! Installing
![]() |
#4
|
|||
|
|||
![]()
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> <td class="alt2" colspan="<if condition="$show['pmicons']">3<else />2</if>" style="padding-top:3px; padding-bottom:3px; border-bottom:1px outset; cursor:pointer;" ondblclick="toggle_collapse('pmf$groupid')" width="100%"> <div class="smallfont"> <span style="float:$stylevar[right]"> <label for="checkall_$groupid">$vbphrase[messages]: <strong>$messagesingroup</strong></label> </span> <a href="#top" onclick="return toggle_collapse('pmf$groupid')"><img class="inlineimg" id="collapseimg_pmf$groupid" src="$stylevar[imgdir_button]/collapse_alt{$collapseimg_groupid}.gif" alt="" border="0" /></a> <strong>$groupname</strong> </div> </td> <td class="alt2" style="padding:0px; border-bottom:1px outset" align="center"><input type="checkbox" id="checkall_$groupid" title="$vbphrase[select_deselect_all_in_time_period]" onclick="check_all_group(this, '$groupid')" /></td> </tr> I beleive that's all that was missing. Great mod, simple but powerful improvement to the private messages. Thanks Mark. |
#5
|
|||
|
|||
![]()
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? |
#6
|
|||
|
|||
![]()
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 |
#7
|
|||
|
|||
![]()
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> <td class="thead" nowrap="nowrap"></td> <if condition="$show['pmicons']"> <td class="thead" nowrap="nowrap"></td> </if> <td class="thead" nowrap="nowrap"><a href="$sorturl&order=DESC&sort=dateline&pp=$perpage&folderid=$folderid&page=$pagenumber">Date</a> $sortarrow[dateline]</td> <td class="thead" nowrap="nowrap"><a href="$sorturl&order=ASC&sort=fromusername&pp=$perpage&folderid=$folderid&page=$pagenumber"><if condition="$folderid==-1">To<else />From</if></a> $sortarrow[fromusername]</td> <td class="thead" nowrap="nowrap"><a href="$sorturl&order=ASC&sort=title&pp=$perpage&folderid=$folderid&page=$pagenumber">Subject</a> $sortarrow[title]</td> <td class="thead" nowrap="nowrap" style="padding:0px; border-bottom:1px outset" align="center"><input type="checkbox" id="checkall_$groupid" title="$vbphrase[select_deselect_all_in_time_period]" onclick="check_all_group(this, '$groupid')" /></td> </tr> |
#8
|
||||
|
||||
![]()
any status on 3.5.0 for this? this ROCKS on my 3.0.7 board
![]() |
#9
|
|||
|
|||
![]()
I haven't even looked at 3.5 yet. Now that it is at "Release Candidate" status, I plan to do so soon.
Mark |
#10
|
||||
|
||||
![]()
yes, please do
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|