Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorpiquadrat
    • CommentTimeJan 29th 2006
     
    Hi,

    I maintain a site where the owner wants only one album containing all the pictures. At the moment, there are about 300 pictures in one album, which results in quite a cluttered pagination:

    « 1 2 3 4 5 [6]7 8
    9 10 11 12 13 14
    15 »
    Well, after some coding, I came up with a solution which you can look at here:
    http://www.soemibar.ch/plogger/index.php?level=album&id=1&page=1

    There are still a few flaws, e.g. when you are on page 4, the pagination looks like this:

    « 1 ...3 [4] 5 ...15 »

    I don't like the '...' between '1' and '3', because a '2' would make more sense and take less space. But I don't know how to code around this without ending up with gruesome spagetti code.

    If you want to have the same pagination, just replace the generate_pagination function in plog-functions.php with the one you find here:

    http://www.soemibar.ch/plogger/pagination.txt

    If someone has some advice or a better solution, I'd be happy to hear about it.

    piquadrat

    P.S.: please overlook my bumpy english. As you'll have noticed, it's not my mother tongue :)
    • CommentAuthorskeeboo
    • CommentTimeFeb 3rd 2006
     
    Looks good. Thanks for sharing what you did to achieve this :)