Description: This mod puts your PMs into pages (much like forum threads are), which is especially helpful to your users who keep a lot of their PMs lying around.
This code is a simple cut and paste from this functionality found within postlist.php, adapted for use with PMs.
<br />// ---------------------------------------------------------<br />// Ok, we found the profile, now lets put it all onto a page<br /> $html -> send_header("$ubbt_lang[$box]",$Cat,0,$user);<br />
Replace with:
Code
<br />// ---------------------------------------------------------<br />// Ok, we found the profile, now lets put it all onto a page<br /> $html -> send_header("$ubbt_lang[$box]",$Cat,0,$user);<br /><br /><br />// -----------------------------------------<br />// Find out how many posts to show per page<br /> if (!$PostsPer) {<br /> $PostsPer = $theme['postsperpage'];<br /> }<br /><br />// ---------------------------------------------------------------------<br />// Now we calculate which posts to grab for this page. We want to grab<br />// one from the previous page and one from the next page so we know what<br />// the previous and nexts posts will be<br /> if (!($page > 0)) {<br /> $Totalgrab = $PostsPer + 1;<br /> $Posts = $PostsPer + 1;<br /> }<br /> else {<br /> $Startat = $page * $PostsPer;<br /> $Posts = $PostsPer + 1;<br /> $Totalgrab = "$Startat, $Posts";<br /> }<br /><br /> $endpage = 1;<br /> $limit = "LIMIT $Totalgrab";<br /><br />
Disclaimer: Please backup every file that you intend to modify. If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
I don't have copies of other version of the software, just my 6.4.x version. I'm not sure how much of significance changed between the two versions in viewmessages.php, as that's the key file.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.