Not signed in (Sign In)

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

    • CommentAuthoreveevans
    • CommentTimeJan 3rd 2008
     
    Well, i am trying to make a pagination in a collection, but i want that only show five albums (the other in a pagination)
    but i want that the parameter be diferent from the "thumb_num" variable. (because i want 20 photos in each gallery - the other wil be paginated)

    i change the file: plog-function

    in function plogger_init()
    I add
    if( $GLOBALS["plogger_mode"] == 'slideshow')
    $lim = 0;
    else if( $GLOBALS["plogger_level"] == 'collection') //evs
    $lim = 5;
    else
    $lim = $config["thumb_num"];

    and i make a new function

    function plogger_pagination_control_collection()

    in where i put
    return generate_pagination($p_url, $page, $num_items, 5);

    well, now i have my pagination,
    but the problem now is
    :
    when i click in the number 2 from my pagination menu ,
    1 2 3 4 5

    it change to page 2, ok
    but it start with the gallery number 21,
    and it supose to be the gallery number 6
    • CommentAuthoreveevans
    • CommentTimeJan 3rd 2008
     
    this forums are dead!!!

    well, i solve it,
    Maybe it's not the better solution, but is one.

    i changed the function below:

    function plogger_init() {
    global $config;

    $_SESSION['require_captcha'] = false;

    $page = isset($_GET["plog_page"]) ? intval($_GET["plog_page"]) : 1;

    if( $GLOBALS["plogger_level"] == 'collection')
    $from = ($page - 1) * 5;
    else
    $from = ($page - 1) * $config["thumb_num"];

    ....