Not signed in (Sign In)

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

  1.  
    In all of my editing of the template to fit my design, I think I have accidently edited out the page links. 1, 2 of the album that is usually displayed in the bottom. Opps....
    So if there is more than 9 which is want I want on the first page of album - I don't get to see the rest...
    Possibly someone could help me add these in?
    Live site: http://www.manethreadzshowwear.com/plogger/?level=collection&id=2

    Album.php as follows:
    <?php
    plogger_get_header();
    print '<div id="thumbnail_container">';
    if (plogger_has_pictures()) {
    print '<div id="overlay">&nbsp;</div>';
    print '<ul class="slides">';

    while(plogger_has_pictures()) {

    plogger_load_picture();

    // display thumbnails within album
    // generate XHTML with thumbnail and link to picture view.
    // find thumbnail width
    $thumb_info = plogger_get_thumbnail_info();
    $thumb_width = $thumb_info[0]; // The width of the image. It is integer data type.
    $li_width = $thumb_width + 10; // account for padding/border width

    $capt = plogger_get_picture_caption();
    $img_id = "thumb-".plogger_get_picture_id();
    $imgtag = '<img id="' . $img_id
    . '" onmouseout="document.getElementById(\'overlay\').style.visibility = \'hidden\';"
    onmouseover="display_overlay(\''.$img_id.'\', \''.plogger_picture_comment_count().'\')" class="photos"
    src="'.plogger_get_picture_thumb().'" title="'.$capt.'" alt="'.$capt.'" />';

    print '<li style="width: '.$li_width.'px"class="thumbnail"><a href="' . plogger_get_picture_url() . '">' . $imgtag . "</a>";

    print plogger_download_checkbox(plogger_get_picture_id());

    print '<div class="tag">' . $capt . '</div></li>';
    }


    print '</ul>';
    }
    else{
    print '<div id="no-pictures-msg">There are no pictures in this album.</div>';
    }

    print '</div>';
    plogger_get_footer();
    ?>
  2.  
    Nevermind! I am just restoring the orgianl files and then will start over
    • CommentAuthorjlw
    • CommentTimeDec 6th 2007
     
    In case you get stymied, the thing that makes the page numbers is the following chunk of php code, which normally you'll find in the 'footer.php' file in your theme folder.

    It doesn't need to go only in the footer, though -- I also added it to the 'header.php' file so I've got page numbers at both top and bottom.

    Here's the piece you're looking for (I added the !<--pagination--> comment):

    <!-- pagination -->
    <?php if (plogger_pagination_control() != '') { ?>
    <div id="pagination">
    <?php echo "Page: " . plogger_pagination_control(); ?>
    </div>
    <?php } ?>