PHP Code:
// creates the pagenav
$page = ($vbulletin->GPC['page'] < 1) ? "1" : intval($vbulletin->GPC['page']);
$totalposts = intval($confessions_count['count']);
$currentlocation = "index.php" . $vbulletin->session->vars['sessionurl'];
$perpage = $confession_limit;
$pagenumber = $page;
$upperlimit = ($page * $perpage);
$lowerlimit = ($upperlimit - $perpage);
$pagenav = construct_page_nav($pagenumber, $perpage, $totalposts, $currentlocation, "");
what am i doing wrong? you click the numbers and that works fine, you comment out the last line of the quote and the js works fine but they refuse to work with eachother?