Let's try this one more time before we go about removing the links. I tested this, seemed to work for me.
Again, edit an original showthread.php file.
Find this code:
PHP Code:
}
else // threaded display mode
It's at or about line 1404 (the first instance of else // threaded display mode)
But also above the closing bracket }
So really, directly below this text in the file:
PHP Code:
$pagenav = construct_page_nav(
$vbulletin->GPC['pagenumber'],
$perpage,
$numhybrids,
'',
'',
'',
'thread',
$threadinfo,
$pageinfo
);
Paste in the following code:
PHP Code:
// get next/previous posts for each post in the list
// key: NAVJS[postid][0] = prev post, [1] = next post
$NAVJS = array();
$prevpostid = 0;
foreach ($postorder AS $pid)
{
$NAVJS["$pid"][0] = $prevpostid;
$NAVJS["$prevpostid"][1] = $pid;
$prevpostid = $pid;
}
$NAVJS["$toppostid"][0] = $pid; //prev button for first post
$NAVJS["$pid"][1] = $toppostid; //next button for last post
$navjs = '';
foreach ($NAVJS AS $pid => $info)
{
$navjs .= "pn[$pid] = \"$info[0],$info[1]\";\n";
}
So in the end the code looks like:
PHP Code:
$pagenav = construct_page_nav(
$vbulletin->GPC['pagenumber'],
$perpage,
$numhybrids,
'',
'',
'',
'thread',
$threadinfo,
$pageinfo
);
// get next/previous posts for each post in the list
// key: NAVJS[postid][0] = prev post, [1] = next post
$NAVJS = array();
$prevpostid = 0;
foreach ($postorder AS $pid)
{
$NAVJS["$pid"][0] = $prevpostid;
$NAVJS["$prevpostid"][1] = $pid;
$prevpostid = $pid;
}
$NAVJS["$toppostid"][0] = $pid; //prev button for first post
$NAVJS["$pid"][1] = $toppostid; //next button for last post
$navjs = '';
foreach ($NAVJS AS $pid => $info)
{
$navjs .= "pn[$pid] = \"$info[0],$info[1]\";\n";
}
}
else // threaded display mode
That is working for me, Please try it.