The Little Guy Posted December 20, 2006 Share Posted December 20, 2006 I have looked over this tutorial:http://www.phpfreaks.com/tutorials/73/1.phpI have a question.. well... basically it is an addon that I cant figure out.How would I modify the code to only display a maximum of 5 pages at a time, where the current page is in the middle unless it is numbers 1, 2, or the last two pages?Say there is a total of 10 pages, and I am viewing page 4, then the counter should say:2 3 [b]4[/b] 5 6If Im viewing page 2:1 [b]2[/b] 3 4 5If Im viewing page 8:6 7 [b]8[/b] 9 10If Im viewing page 10:6 7 8 9 [b]10[/b]You get the idea (the bold is the current page, everthing else is my link). Quote Link to comment https://forums.phpfreaks.com/topic/31390-number-of-pages/ Share on other sites More sharing options...
KevinM1 Posted December 20, 2006 Share Posted December 20, 2006 There's a tutorial here:http://www.phpfreaks.com/tutorials/147/0.php Quote Link to comment https://forums.phpfreaks.com/topic/31390-number-of-pages/#findComment-145321 Share on other sites More sharing options...
The Little Guy Posted December 20, 2006 Author Share Posted December 20, 2006 thankyou... Ill give that a look over. Quote Link to comment https://forums.phpfreaks.com/topic/31390-number-of-pages/#findComment-145322 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.