![]() |
Limit pageination links
Hi
I have been using this for years, problem is, I get a million page links at the bottom, I have been trying to add stages like 123...789 but cannot get it to work. I did find another pagination script that does that but I would rather stay with this one if possible. anyone see a quick edit not requiring a rewrite or anything complex. PHP Code:
Sonny |
Hi bud,
here is one that i have used for awhile, it was done for me as a favor by a very experience coder awhile back have used it alot and it works great its pretty simple and it also does what you say, and it allows you to set the range on either side of the page you are on. i use ps pagination and it does a query and then load the value in $rs and then i just copy the vars from that result from the pagination array into my little script basically i changed from using the pagination display output to my own thats why i copied the results from the array here here ya go, maybe if you look at this it will give you some hints bud. :) hope it helps. PHP Code:
and then to show it just do this somewhere on your page PHP Code:
|
Thanks I will try it, I scraped that code above I posted
its a shame because it worked great but left a ton of page links that grow after a a while. I Posted that here because I thought it might be a line or two edit but see it is too complex to save. I did visit the site I found it at, http://www.evolt.org/node/19340 and read the old comments and did see some edits to manage all those page links, but none work I tried them, on page 1 and 2, they leave out next links and cause bad links. Thanks Sonny |
Quote:
PHP Code:
If you have a specific interval and format of display you'd like, post again and i'll show you the code modification you'll need. |
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. Thanks Sonny PS I implemented your edit, but I only had 24 pages and it showed 24 links |
Quote:
PHP Code:
|
That just gives links for all 124 pages I have, I found another that works great
it never goes over 14 page links. Thanks Sonny |
| All times are GMT +1. The time now is 10:15 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.