Member
Member
vincent3569   2010-03-03, 02:26
#1

hello

i'm with zenphoto 1.2.9 and default theme.
whatever the value of images_per_pages put in the admin pages (12, 16, 20), the album page display 18 images.

what the problem is ?

Member
Member
sbillard   2010-03-03, 04:39
#2

This is covered in the troubleshooting guide.

Member
Member
vincent3569   2010-03-03, 08:39
#3

hello

you're speaking oh this item : http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionnormalizeColumns

I still do not understand.
my theme has 4 columns, I should therefore have a multiple of 4 (16, 20, 24).
I put 16 images_per_pages in the admin pages, the album display 18 thumbnails : that do not match.

could you explain how can i do to have 16 ou 20 thumbnails displayed in my case ?

thanks

my website for exemple : http://vincent.bourganel.free.fr/zenphoto/index.php?album=Vacances+Ete+2009+Vars

Member
Member
vincent3569   2010-03-04, 02:25
#4

could you help to solve my problem of diplay ?
thanks a lot

Member
Member
sbillard   2010-03-04, 02:34
#5

Probably we cannot help you further than pointing you to the functions guide and themeing tutorials. This is because we have not made the theme you are using so really know nothing about it.

BTW, the function you looked up is the correct one. You would need to look at the parameters you have supplied it--they are what is "adjusting" your images per page value.

Member
Member
vincent3569   2010-03-05, 08:34
#6

the theme i'm using to is a copy of default theme (the only change is the width of the theme).

to understand the problem, i've restored the the default theme and i put 16 images_per_pages in the admin pages, the album display 18 thumbnails : that still do not match.

my website for exemple : http://vincent.bourganel.free.fr/zenphoto/index.php?album=Vacances+Ete+2009+Vars

could you help me to put the "right" paramaters in the "right" function ?

Member
Member
vincent3569   2010-03-06, 01:01
#7

hello

still my problem:
Having investigated, I discovered this line in the index.php file of default theme

so I understood why I had 18 pictures when i put 16 images per pages in the admin tabs.

so, I changed to "$ firstPageImages = normalizeColumns ('2 ', '4');?>".
if I put 12 pictures per page in the admin tabs, it works well, if I put 20, it works too, but if I put 16, I return with my 18 pictures.

Is the function normalizeColumns works well?

Member
Member
sbillard   2010-03-06, 02:06
#8

What you describe does not make any sense. The normalizeColumns() function will make NO adjustments if the images per page set in the admin tabs is an even multiple of the second parameter. This is just basic math, no way for it to work with some of the multiples and not with all.

Member
Member
vincent3569   2010-03-06, 12:47
#9

thank you for the basic math ;-)

  • I changed to "$ firstPageImages = normalizeColumns ('2 ', '4');?>" in index.php
  • I put 16 pictures per page in the admin tabs
  • my website is designed for 4 columns
    so, could you explain why i have 18 pictures ?

according to you (and the basic math ;-) i should have 16 pictures

whith 12 ou 20 images per pages in the admin tabs, all is going well
so i still doon't understand where the problem is !

see my website, under construction
http://vincent.bourganel.free.fr/zenphoto/index.php?album=Vacances+Ete+2009+Vars

Administrator
Administrator
acrylian   2010-03-06, 12:55
#10

Well, you have to change that value on album.php actually! That site is using that page. Index.php is only for the main gallery page where normally the toplevel albums are listed and no images at all (that normalize stuff being there is confusing I admit...).

Member
Member
vincent3569   2010-03-06, 18:17
#11

I changed the values in album.php and it works well.

If normalizecolumns no point in index.php of the default theme, it would be better off.

thank you for your help!

Member
Member
kagutsuchi   2010-03-06, 18:40
#12

It does have a point in index.php, perhaps only on certain themes however.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.