View Full Version : Photo Album script v2.0 Paging Problem

05-11-2008, 10:52 AM
Photo Album script v2.0

3) Describe problem:

Hello everyone,

For the browsing gallery paging method, it shows all the pages number under the browsing gallery. It is causing me problem since my gallery have more than 30 pages, and it looks ugly on the template.

Example: Browsing Gallery 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Does anyone know how to short it up so that it will only display the next 5 pages and the last page. Maybe it will need some AJAX ...I am not sure

Change to : Browsing Gallery [first page] 1..2 3 4 5 6...20 [last page]


any other suguestion is welcomed.

05-12-2008, 07:49 AM
You don't need Ajax to do this, just changes to the .js file to only show a range of pagination links at any time. Try the below modified photogallery.js, which does this, though I didn't have the time to fine tune the behavior.

05-21-2008, 07:36 AM
Thank you! Could anyone help me to on how to put the "first page" and "Last page" and the "..." in between.

Please help, I have been tried few night long, but can't figure it out..:confused: