Jump to content

class.pager.php Issues


Dave Tarmac

Recommended Posts

Hi all,

 

I found this script on Codewalkers, but I am having trouble manipulating it to how I want.

 

The code can be found here: http://pastebin.com/898213

 

As it stands at the moment, I can get it displaying 10 pages with no trouble, but when I go to page 11, it does not display on the page list, it stays 1-10.

 

If anyone can help me fix this then I would be most grateful.

Link to comment
https://forums.phpfreaks.com/topic/42505-classpagerphp-issues/
Share on other sites

Hi again all,

 

Let me go in to a bit more detail now - I was rushed yesterday.

 

The paging class above works but displays every page in this format:

 

<< < 1 2 3 4 5... > >>

 

Sadly, on one of the pages that this is used, it displays all 30 page numbers which is far too long. I have managed to limit it so that it only displays as:

 

<< < 1  3 4 5 6 7 8 9 10 > >>

 

The problem I have is that when I go to page 11, the page list does not change. It stays as 1-10.

 

I hope this is a better explanation.

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/42505-classpagerphp-issues/#findComment-206882
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.