OK!!
I messed around with the code that parth had contributed, and got the pagination hack working. Well it works on my site anyway.
Follow the instructions as where defined before but use the following code instead:
[code:1]/****************** PREPARE PAGINATION START ********************/
// total number of connections
$total = count($connections);
// limitstart check
$limitstart = (int) cbGetParam( $_REQUEST, 'limitstart', 0 );
if (empty($limitstart)) {
$limitstart = 0;
}
$limit = 4; //Write number of connections per page here
if ($limit > $total) {
$limitstart = 0;
}
// modify array to contain only connections for this page
$connections = array_slice($connections, $limitstart, $limit);
/******************* PREPARE PAGINATION END *********************/[/code:1]
[code:1]/******************* PAGINATION LINKS START *********************/
// include standard Joomla page navigation class
require_once( $GLOBALS . '/includes/pageNavigation.php' );
// create the object
$pageNav = new mosPageNav( $total, $limitstart, $limit );
// base link
$pagingLink = "index.php?option=com_comprofiler&task=manageConnections";
// display pagination bar
echo $pageNav->writePagesLinks( $pagingLink );
/******************* PAGINATION LINKS END *********************/[/code:1]
Hope this helps someone out there!
Post edited by: cymbios, at: 2008/01/04 13:16