Not signed in (Sign In)

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

    •  
      CommentAuthormemic.a
    • CommentTimeSep 14th 2008
     
    Hi

    In the admin options I set Number of Thumbnails per Page: 16

    But how can I set a different number of thumbnails per page for album view?
    I wanted to display 16 album per page in collection view but 28 pictures in the album view.
    Is there a way to do this?
    •  
      CommentAuthormemic.a
    • CommentTimeSep 16th 2008
     
    hi,
    does anyone have a fix for this??
    •  
      CommentAuthorsidtheduck
    • CommentTimeSep 16th 2008
     
    memic.a,

    What version of Plogger are you running? I can help you to hard-code a hack for this.
    •  
      CommentAuthormemic.a
    • CommentTimeSep 16th 2008 edited
     
    Hi sidtheduck,

    Im using version 3.0 beta, I replaced some files from SVN 549 for some bug fix

    Thank you, you are the best on the forum, you allways find some solutions to my problems!
    •  
      CommentAuthorsidtheduck
    • CommentTimeSep 16th 2008
     
    In the file 'plog-functions.php' you should find some code similar to this (in the plogger_init() function, maybe around line 1230):
    // we shouldn't set a limit for the slideshow
    if( $GLOBALS["plogger_mode"] == 'slideshow')
    $lim = 0;
    else
    $lim = $config["thumb_num"];

    and change it to read:
    // we shouldn't set a limit for the slideshow
    if ($GLOBALS["plogger_mode"] == 'slideshow') {
    $lim = 0;
    } else if ($GLOBALS['plogger_level'] == 'collection') {
    $lim = 16;
    }else {
    $lim = $config["thumb_num"];
    }

    Then just set your number of thumbnails in the Admin -> Options to 28 (for 28 pictures per page).

    Also, if you want both collections and albums to be 16 thumbnails per page, change the middle part of the above code to:
    } else if ($GLOBALS['plogger_level'] == collection' || $GLOBALS['plogger_level'] == 'collections') {
    $lim = 16;
    }else {
    Thankful People: memic.a
    •  
      CommentAuthormemic.a
    • CommentTimeSep 20th 2008
     
    Hi sidtheduck,

    Your code is working fine, but the only thing is that the pagination control is not showing in collection/s view. (because the 16 limit is breaking something)
    Any idea?