Results 1 to 3 of 3

Thread: Photo Album script v2.0 Paging Problem

  1. #1
    Join Date
    Jul 2006
    Posts
    11
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Photo Album script v2.0 Paging Problem

    Photo Album script v2.0
    http://www.dynamicdrive.com/dynamici...photoalbum.htm


    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]

    OR

    any other suguestion is welcomed.
    Last edited by ddadmin; 05-12-2008 at 05:48 AM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.

  3. #3
    Join Date
    Jul 2006
    Posts
    11
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    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..

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •