1
So I'm attempting to write a module that works in a similar way as xoopsmembers, the module queries a database and returns the result, that part works fine. I was attempting to reuse the code from xoopsmembers to display the results on multiple pages, however after copying over the code, it does not seem to work correctly, I think that I should be able to figure out why if some one can give me a tip as to how the xoopsmember search module actually keeps results hidden. from what i can see, the module assigns every result to the 'users' buffer.
the code in xoopsmember module that does this is located in index.php and looks something like:
$foundusers =& $member_handler->getUsers($criteria, true);
foreach (array_keys($foundusers) as $j) {
/* assign LOTS of stuff to the userdata buff.*/
$xoopsTpl->append('users', $userdata);
}
so yeah in short i guess if anyone knows how the heck the xoopsmember module seems to "hide" some of its results for display until you hit "next page".... any info would be sweet.
thanks.