2011-06-01, 12:15 AM
From the last couple of hours I'm struggling with multipage thingy [attachment=22954] but nothing found a way to achieve. I also searched this around and nothing found so far.
Here is what I've coded;
Though the main thing has been achieved (i.e. multipages are visible in the template) but its not working correctly. Link are incorrect.
Any help ?
Here is what I've coded;
$perpage = $mybb->settings['threadsperpage'];
if(intval($mybb->input['page']) > 0)
{
$page = intval($mybb->input['page']);
$start = ($page-1) * $perpage;
$pages = ceil(111 / $perpage);
if($page > $pages)
{
$start = 0;
$page = 1;
}
}
else
{
$start = 0;
$page = 1;
}
// Assemble page URL
$multipage = multipage("114", $perpage, $page, "misc.php?action=link");
Though the main thing has been achieved (i.e. multipages are visible in the template) but its not working correctly. Link are incorrect.
Any help ?