One point rocko - on the second change above, when I click on the thread and it brings me to the page with the most recent post, I’ve no idea if there’s another page of posts or if I’m on the last page. Does that make sense?
The background colour of the numbers section should tell you which page you’re on. If 50 is highlighted then that’s the page # you’re on. If there is a 51 there then you’re not on the last page, if there’s no higher number then you’re on the last page. It will always display a link to the final page if you’re not on the final page in other words.