Creating a physical go to last post button
-
So I'm aware that there's an alert that pops up asking if you want to go to last post, but it's not always there on topics you've not visited before it. So the most obvious way of navigating is by the progress bar in the header. It's useful, but could be better, for example, it only goes down 20 posts at a time. I've got topics with 600-700 posts in them. So you can imagine how long that takes. Would it be possible to add two icons either side (angle-double-up and angle-double-down) and have them go to the first and last posts respectively? I can see how this could be done by using the same method that is used to calculate how many posts are in that topic (for example 573) so one would go to
{topic.url}/{last.post.number}
, this would take me to the last post. Or{topic.url}/1
to go to the first post. (I'm pretty sure the code I've added there won't work, but you get the gist.To extend it even further, clicking the actual
x out of x
could bring up a text box. Enter in a number, press enter. Taken to that post.Should probably have put this in Feature Requests, but wanted to hear what you guys thought.
-
Defintely possible, up until today we used hashes in the url to go to posts. From now it is in the form of
topic/topic_id/topic_slug/post_id
so it is possible to change those buttons and let them go totopicurl/1
andtopicurl/post_count
respectively. I'm not sure about adding 2 more icons in there that might make it a bit too crowded. I like the idea of clicking on the1 out of x
and entering a post index to go to it though. -
@baris I thought the URL looked different. the one that goes back to first post would be used a lot less than the one that goes to the latest post, so if clutter is of concern, some way to just go to last post. Or even recommissioning (is that even a word?) the up and down arrows for that exact purpose, then enter a PID to go to a certain post number between first and last.
@julian is that version 1 of HAL9000?
-
I'm seeing an ACP setting forming.
Post scrolling in increments of: 20 or go from first to last. best of both worlds.
-
"ACP option" is always the right answer.
-
In the works in psychobunny's plugin factory, a pagination plugin. I actually had something going for a few weeks in core but it sucked and we all agreed that it should be a plugin instead.
-
@zenkamal said:
I actually like the "going down 20 posts at a time", since there are many more topics with 20-100 posts than with 500+ posts. Any way to keep that function?
For us, go to last is a huge deal. Lots of mobile users and lots of very long posts. Go to last is a huge want from us.