Thanks for replying
It would be great if I could have stages like 3
(three links before current page and three links after) or something
like that, it would be nice to never have more then 15 links
at the bottom.
I'm glad you posted I wanted to keep this. I had it for a long time.
PS I implemented your edit, but I only had 24 pages and it showed 24 links