Poll: Is it neccesary to reload the page?
You do not have permission to vote in this poll.
No, it annoys me and adds load to server
50.00%
2 50.00%
Yes, it is better for some reasons(Please specify)
0%
0 0%
I don't care
50.00%
2 50.00%
Total 4 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing page after quick reply
#1
You set a limit to display 10 posts per page in threads.
If i thread has 10 posts and you quick-reply the 11th posts, the page gets reloaded to the second page.

IMO, it wasn't necessary to reload the page. We could have allowed it just to append on the same page.

Just My Opinion.

Please vote in the poll.
#2
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. It's only added via AJAX if it's going to be on the same page and no posts have been added/deleted, otherwise it reloads.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
#3
(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;
				}
#4
I can absolutely guarantee we'd have support threads if this was changed. If people see the post added to the bottom and then they refresh and it's gone, not everybody is going to realise it's now showing on a new page even though it wasn't before.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
#5
Please don't use the code change. You're essentially causing a bug.


Forum Jump:


Users browsing this thread: 1 Guest(s)