Not signed in (Sign In)

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

    • CommentAuthorposlanik
    • CommentTimeJun 5th 2008 edited
     
    Hello,

    When I'm in collection view I can't browse pages. The link's urls are somehow messed up. Please take a look at my site: http://see-croatia.com. Try clicking the second page and you'll see what I'm talking about. Instead of the & sign at the start of the url there should be a ?. Browsing through pages in album view works fine, though.

    Please help!
    •  
      CommentAuthorsidtheduck
    • CommentTimeJun 5th 2008
     
    poslanik,

    Look for the following code in 'plog-functions.php' under the function generate_pagination():// if adding arguments to mod_rewritten urls, then I need ? (question mark) before the arguments
    // otherwise I want &
    $last = substr($url,-1);

    if ($last == "/") {
    //$url = substr($url,0,-1);
    $separator = "?";
    } else {
    $separator = "&";
    }
    and edit it to read:// if adding arguments to mod_rewritten urls, then I need ? (question mark) before the arguments
    // otherwise I want &

    if (!strpos($url,"?")) {
    $separator = "?";
    } else {
    $separator = "&";
    }


    That should fix it for you!
    • CommentAuthorposlanik
    • CommentTimeJun 6th 2008
     
    Like usual, you saved me :) Thanks!
    • CommentAuthora904lea
    • CommentTimeJun 16th 2008
     
    Worked for me too :-) I echo the thanks!