Not signed in (Sign In)

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

  1.  
    I am trying to make this function in Plogger witch allow me next and previous looping .
    When you got last image then click next button then go to first image .. and when you got first image then click to previous button then you go to last

    Please help me to make this
    Thank you
    • CommentAuthorDianamo
    • CommentTimeMar 24th 2011
     
    Hi,

    Go to your plog\includes\plog-functions.php
    in function: plogger_get_next_picture_url()
    C&P this:
    if($current_picture==sizeof($image_list)-1) {
    $next_link = generate_url('picture', $image_list[0]);
    }
    before
    return $next_link;

    and in: plogger_get_prev_picture_url()
    C&P this:
    if($current_picture==0) {
    $prev_link = generate_url('picture', $image_list[sizeof($image_list)-1]);
    }
    before
    return $prev_link;

    and that's it.

    Regards,
    Dianamo
  2.  
    very very thanks
    it's working
    waoowwwww !!!!