Not signed in (Sign In)

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

    • CommentAuthorFaken
    • CommentTimeFeb 8th 2006
     
    I updated the my 2.0 beta with the updated pages for 2.1 and suddenly my paging URL outputting for the photo pages is wrong. The page numbers and >> text are outputting URLs like this:

    /gallery/index.php?level=album&id=129?page=2

    It should actually be:

    /gallery/index.php?level=album&id=129&page=2

    It's putting a ? at page=2 instead of a & symbol.

    I also had an issue with the gallery paging that was displaying like this:

    gallery/index.php&page=2

    I had to edit the gallery.php so it would output gallery/index.php?page=2 instead, which works. Why is all my page outputting going nuts?

    Thanks,
    Dan
    • CommentAuthorFaken
    • CommentTimeFeb 8th 2006
     
    Here is my current outputting:

    function generate_pagination($url, $current_page, $items_total, $items_on_page){
    $output = '';

    $num_pages = ceil($items_total / $items_on_page);

    // 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 = "?";
    };

    if ($num_pages > 1){

    if ($current_page > 1){
    $output .= ' <a accesskey="," href="'.$url.$separator.'page='.($current_page - 1).'">&laquo;</a> ';
    }

    for ($i = 1; $i <= $num_pages; $i++){
    if ($i == $current_page){
    $output .= '<span class="page_link">['.$i.']</span>';
    }
    else{
    $output .= '<a href="'.$url.$separator.'page='.$i.'" class="page_link">'.$i.'</a> ';
    }
    }

    if ($current_page != $num_pages){
    $output .= ' <a accesskey="." href="'.$url.$separator.'page='.($current_page + 1).'">&raquo;</a> ';
    }
    }

    return $output;
    }
    • CommentAuthorFaken
    • CommentTimeFeb 8th 2006
     
    Sorry for all the posts guys... just trying stuff out.

    So, witht he code above... if I use:

    $separator = "?";
    }
    else {
    $separator = "?";

    Then the paging for the collections works fine, but the paging for the photos is pooched.

    If I change it to:

    $separator = "?";
    }
    else {
    $separator = "&";

    The photos now page fine, but the collections paging is now dead.

    Ok, I'm at a dead end :(

    Dan
    •  
      CommentAuthormike
    • CommentTimeFeb 8th 2006
     
    Very strange. I haven't been able to observe this behavior on any other 2.1 galleries. I'm thinking some code got mixed up when you uploaded the new version, maybe some files didn't get overwritten.

    Some things to try:
    Turn on cruft-free URLs and see if that solves the problem (in options tab)
    Delete all your Plogger files (not the folders or pictures in the images directory) except for plog-config.php, reupload everything from the 2.1 package.

    If all else fails, delete everything, drop the plogger tables from your database, and reinstall. Hopefully you didn't spend too much time setting up your gallery... only do this as a last resort.
    • CommentAuthorFaken
    • CommentTimeFeb 9th 2006
     
    Hmmm.... Regarding your first comment:

    "Generate Cruft-Free URLs (requires mod_rewrite) .htaccess is not writable, please check permissions"

    Could that be the issue?

    Dan
    • CommentAuthorFaken
    • CommentTimeFeb 9th 2006
     
    Ok, I fixed the .htaccess and checked the option on... now it's just pointing to the root of the site instead of the /gallery/ folder lol!

    I'll probably have to try that other stuff... yeah, I've got some heavy customization going, so I'll wait for a new day to do this lol!

    Thanks again Mike!

    Dan
    • CommentAuthorFaken
    • CommentTimeFeb 9th 2006
     
    Hey Mike... everything has been replaced http://www.predatorstuff.com/gallery/

    Same paging issues :( What the heck?!

    Dan
    • CommentAuthorFaken
    • CommentTimeFeb 13th 2006
     
    ARRRRRRGGGGGGGGGGGG!!! I'm going to break down lol!

    Here we go... brand new install with a new database, totally spearate folders and from a new set of files I re-downladed from the plogger site:

    http://www.predatorstuff.com/photos/

    Same darn issue :(

    HELP! :(

    Dan
    • CommentAuthorddejong
    • CommentTimeFeb 13th 2006
     
    Drop me an email, Dan, sounds like we'll need to do some troubleshooting. ;)

    Cheers,
    Derek
    • CommentAuthorFaken
    • CommentTimeFeb 13th 2006
     
    Email sent :) *prays* Mike sent me a suggestion but unfortunately no dice.. I sent you the details in the email.

    Dan
  1.  
    GRRRRRR...I didn't understand the procedure:(escapadas