I have a script that shows page numbers, but I want it to only show four numbers at a time, just like vbulletin does, but instead of just showing 3 numbers, I want it to show four at a time. Right now, it just shows all of the pages. I want it to be like "2 3 4 5" if there are 5 pages and you are on the last page. I want it to be like "1 2 3 4" if there are 5 pages and you are on the first page. Here is my current code:
Can you do it with that code? If not, can you help me with some other code?