5
in viewpmsg.php this line retrieves the private messages:
$pm_arr =& $pm_handler->getObjects(new Criteria('to_userid', $xoopsUser->getVar('uid')));
getObjects takes a 2 parameters, but you really only need to pass the first, which is a
Criteria or a
CriteriaCompo object specifying which records to return.
Both objects have two functions
setStart and
setLimit, which are used to limit which part of a result set is returned.
Other helpful functions/classes:
XoopsPrivmessageHandler::getCount() Pass the same criteria object used for getObjects to retrieve the total number of elements in the result set.
[url=https://xoops.org/misc/api/kernel/util/XoopsPageNav.html]XoopsPageNav[/url ] - responsible for creating the page navigation links
The only other recommendation I have is to look at another pages in the XOOPS applications that do what you are trying to do. /modules/news/index.php supports paging, and might be a good candidate for learning how to use the above functions.