Zenpage width not setting

With Zenpages as the theme, at admin-options.php?page=options&tab=theme , I've changed the image size width to be 475 in width. The images are served at 580px.

When I switch the theme to default, the image dimension changes to 475px. Is this a bug that someone can replicate?

Comments

  • checking the zenpage-default theme's image.php I see

    `printCustomSizedImageMaxSpace(getBareImageTitle(),580,580); ?>`

    Which means it's printing at the specified size by that command. You can change the height/width max sizes and continue to use that function, or you could change it to printDefaultSizedImage() function. Check the template function documentation.
  • Michaell, thanks for pointing out the fix. Does this mean that the Zenpage theme is working as designed, or this is a defect?

    I would think that Zenpage should have a check that the image size set in admin-options.php?page=options&tab=theme (e.g. I've set it at 475) shouldn't be larger than the maximum (that is hard-coded as 580px). Thus, the theme should be able to be set from the options page at something less than the maximum.

    On my installation, I think that 580px may already be too large anyway, because I the "Images 1-6 of 24 (1/4)" is mostly covered up by the 580px-wide image. I presume that being able to set the image size at admin-options.php?page=options&tab=theme would obviate having to modify the code. (I could make the change manually, but am afraid that I would forget when the theme gets updated).
  • the default zenpage template is working as it was designed I would say. I'm not sure why acrylian chose to use the customImageMaxSize call over the default image call, but the function is working properly.

    The bit covered up is part of the paged-thumbs-nav plugin, and you can adjust/fix that by moving it with css styling.

    Also you can enable the viewer_size_image plugin which would allow the user to select the size of photo to view.

    The great thing about zenphoto is that the template/theme is so highly customizable that you can be looking at the same versions of zenphoto on many different sites and never know it was powered by zenphoto, have a look over the showcase sometime!

    Have some fun, change things to match your needs, that's what makes zenphoto the best gallery system available in my mind.
  • Thanks, I've turned on the viewer_size_image plugin . I've set three widths: 475px, 800px and 1024px (full size), as $w=475; $w=795; $w=1024; .

    With the Zenpage theme, I don't see an option to change the image size.

    With the Flickrish theme, I see four options (including the thumbnail), but the size that I expected to be 795px wide is 1000px wide.

    With the default theme, the image is coming up full size (1024px), with the options to change size smaller underneath. When I select a radio button, the image collapses into a horizontal line. When I refresh the page, the image gets loaded full size again.

    The basics of Zenphoto work well. The extensions and themes seem to almost work, so it would seem that a better immediate tactic is to stick with the basics.
Sign In or Register to comment.