Not signed in (Sign In)

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

    • CommentAuthorsenyahnoj
    • CommentTimeJul 6th 2008
     
    I found that on galleries which take up several pages, clicking on the gallery name in the breadcrumb trail takes you to the first page of the gallery, rather than back to the page you were on before.

    The following patch fixes this if anyone else is interested (n.b. this only works for the non mod_rewrite configuration option).

    Index: plog-functions.php
    ===================================================================
    --- plog-functions.php (revision 34)
    +++ plog-functions.php (revision 35)
    @@ -1074,6 +1074,10 @@
    return $config['baseurl'].'?level=collection&id='.$id;
    } else if ($level == "album") {
    $rv = $config['baseurl'].'?level=album&id='.$id;
    + if(isset($_GET['plog_page']))
    + {
    + $rv .= '&plog_page=' . $_GET['plog_page'];
    + }
    if (sizeof($arg) > 0) {
    foreach($arg as $akey => $aval) {
    // mod_rewrite url-s need /sorted in them, the old style ones do not.
    @@ -1085,6 +1089,10 @@
    }
    } else if ($level == "picture") {
    $rv = $config['baseurl'].'?level=picture&id='.$id;
    + if(isset($_GET['plog_page']))
    + {
    + $rv .= '&plog_page=' . $_GET['plog_page'];
    + }
    }
    }
  1.  
    I've added this to my site but there is one problem with this solution. When I'm using the next/previous links to go to other images and the last one is not on the same page anymore I go back to where I was and not to the page of the last viewed picture. I'm not sure if this can be fixed though.