Stopdesign-Images Per Page Option Not Working Correctly

No matter what I set the "Images Per Page" option to in the options section, it doesn't seem to work correctly. I'm using the Stopdesign theme.

For example, if I set "Images Per Page" to 20, when I click on my gallery, it displays 23 images instead. Or if I set it to 25, it displays 29. I can't figure out why this is, and am totally confused.

If it helps, here is a link to the site i'm trying it on... http://www.asianjunkie.com/

Right now I have "Images Per Page" set to 26 and as you can see it's displaying 29. Ugh.

Help would be appreciated, thank you.

Comments

  • Sorry, i'm going through some editing and uploading and stuff.

    But when it's settled, i'll have it on 20 "Images Per Page", but you'll see 23 per page being displayed. That's the error.
  • The stopdesign theme forces the number of images per page so that it will fill each of the rows it displays. Most of the distributed themes work this way now so that the page looks right. You will get an images per page that is the closest multiple to the value you select.

    Are you unhappy with the way the pages look? Since stopdesing displays 6 image frames per line displaying only 20 images would leave you with 3 empty slots to display images. (One slot is filled with the image for the next page link.) Thus, the 23 images you observe.
  • I just wanted like even rows. So like 28 would make 4 columns of perfectly aligned and sequential rows of pictures, but if I set it on 28, obviously it displayed 29 pictures plus the mentioned next page link.

    With the way I guess it was meant to be formatted there's almost no way to achieve a linear alignment with all the columns.

    What I mean by that is the next page link image would be at the bottom right corner of the right most column of pictures.
  • You could change the theme to do that if it is really what you want. (You will get nice even rows at the expense of wasted browser realestate.)

    look for the following lines in the various php files:

    ` $firstPageImages = normalizeColumns(3, 6);

    setOption('images_per_page', getOption('images_per_page') - 1, false);

    if ($firstPageImages > 0) { $firstPageImages = $firstPageImages - 1; }`

    Delete the second and third lines and you will get what you desire.
  • Thanks a lot.

    I'll try different things.
Sign In or Register to comment.