I've corrected vbugs_admin.php to add previous/next buttons on the main bug page and populate the assignment option box for new bugs. The changes are fairly rough, but appear to work. So far here's what I have:
Find starting at line 313:
PHP Code:
$pageoptions = array();
for ($i = 1; $i <= $numpages; $i++)
{
$pageoptions["$i"] = "$vbphrase[page] $i / $numpages";
}
and remove.
At line 370 (now 365), find
PHP Code:
print_table_break();
print_table_footer(6, "
<input type=\"button\" class=\"button\" value=\"" . $vbphrase['vbug_add_bug'] . "\" tabindex=\"1\" onclick=\"window.location='vbugs_admin.php?$session[sessionurl]do=add';\" />
");
and replace with
PHP Code:
print_table_break();
if ($vbulletin->GPC['pagenumber'] > 1) {
$prevpage = $vbulletin->GPC['pagenumber'] - 1;
$previous_page = "<input type=\"button\" class=\"button\" value=\"" . $vbphrase['prev_page'] . "\" tabindex=\"1\" onclick=\"window.location='vbugs_admin.php?$session[sessionurl]do=modify&pagenumber=$prevpage';\" />";
}
if ($vbulletin->GPC['pagenumber'] < $numpages) {
$nextpage = $vbulletin->GPC['pagenumber'] + 1;
$next_page = "<input type=\"button\" class=\"button\" value=\"" . $vbphrase['next_page'] . "\" tabindex=\"3\" onclick=\"window.location='vbugs_admin.php?$session[sessionurl]do=modify&pagenumber=$nextpage';\" />";
}
print_table_footer(6, "$previous_page
<input type=\"button\" class=\"button\" value=\"" . $vbphrase['vbug_add_bug'] . "\" tabindex=\"2\" onclick=\"window.location='vbugs_admin.php?$session[sessionurl]do=add';\" />
$next_page
");
This only modifies the Bugs view. I'll add fixes for more bugs in separate posts.