2010-07-20, 01:03 PM
(2010-07-20, 12:02 PM)MattRogowski Wrote: This is done on purpose, otherwise if you refresh, your post will appear to have vanished as it would now be showing on page 2 and you'd still be on page 1.I know it is very minor issue. I guess people are intelligent enough to press the next page. They won't cry to mummy saying their post is lost. Anyways, Forget about it.
BTW, if anyone wants to disable it, here's the code in newreply.php responsible for it
// Lets see if this post is on the same page as the one we're viewing or not
// if it isn't, redirect us
if($perpage > 0 && (($postcounter) % $perpage) == 0)
{
$post_page = ($postcounter) / $mybb->settings['postsperpage'];
}
else
{
$post_page = intval(($postcounter) / $mybb->settings['postsperpage']) + 1;
}
if($mybb->input['from_page'] && $post_page > $mybb->input['from_page'])
{
redirect(get_thread_link($tid, 0, "lastpost"));
exit;
}