$pagenav = construct_page_nav($pagenumber, $perpage, $linkcount['linkcount'], 'links.php?do=search' . $vbulletin->session->vars['sessionurl'] . '&view');