I got it to work on RC2, but I had to change the variables a wee bit.
Beware, I'm a vBulletin novice, so I don't know if this compromises security or anything. If someone could verify that it's okay, that would be awesome.
The very first step, look for this instead
PHP Code:
$perpage = $vbulletin->input->clean_gpc('r', 'perpage', TYPE_UINT);
$pagenumber = $vbulletin->input->clean_gpc('r', 'pagenumber', TYPE_UINT);
$daysprune = $vbulletin->input->clean_gpc('r', 'daysprune', TYPE_INT);
$sortfield = $vbulletin->input->clean_gpc('r', 'sortfield', TYPE_STR);
Immediately after, add this
PHP Code:
$picon = $vbulletin->input->clean_gpc('r', 'picon', TYPE_INT);
The second step is okay, but you
have to be sure you are at the right $daysprune or it just won't work.
The third step, look for this instead
PHP Code:
$pagenav = construct_page_nav($pagenumber, $perpage, $totalthreads, 'forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$forumid", ""
. (!empty($vbulletin->GPC['perpage']) ? "&pp=$perpage" : "")
. (!empty($vbulletin->GPC['sortfield']) ? "&sort=$sortfield" : "")
. (!empty($vbulletin->GPC['sortorder']) ? "&order=" . $vbulletin->GPC['sortorder'] : "")
. (!empty($vbulletin->GPC['daysprune']) ? "&daysprune=$daysprune" : "")
Immediately after, add this
PHP Code:
. (!empty($vbulletin->GPC['picon']) ? "&picon=$picon" : "")
Everything else was the same I think. :nervous: