![]() |
|
Albums Displaying Weirdly on Gallery Page - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Albums Displaying Weirdly on Gallery Page (/thread-5557.html) |
Albums Displaying Weirdly on Gallery Page - justindh81 - 2009-07-28 The titles of my ablums and locations of thumbnails are displaying strangely (not lining up) on the gallery page. You can see what I mean here: www.chinamash.com I assume an edit to the theme's index.php file will be needed but what exactly would I need to do? Thanks Albums Displaying Weirdly on Gallery Page - acrylian - 2009-07-28 Please try the nightly build. This is a bug in the theme's css that recently has been fixed. Albums Displaying Weirdly on Gallery Page - justindh81 - 2009-07-28 Thank you. I do believed it's solved the problem. Albums Displaying Weirdly on Gallery Page - justindh81 - 2009-07-28 . Albums Displaying Weirdly on Gallery Page - justindh81 - 2009-07-28 I think their may be another bug with the default, sterile dark, theme - when choosing the number images to display per page there's always either 1, 3, or 4 to many. For example I've chosen to show 15 photos per page and it's showing 18. If I choose 5 it shows six. If I choose 20 it shows 24. What can I change to fix that? Albums Displaying Weirdly on Gallery Page - acrylian - 2009-07-28 No, that is not a bug. Please read this: http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionnormalizeColumns You can just remove that function from the theme files if you don't need it. Albums Displaying Weirdly on Gallery Page - justindh81 - 2009-07-28 OK. Sorry - but where might I find the correct file to remove the function? Albums Displaying Weirdly on Gallery Page - acrylian - 2009-07-28 Generally index.php, album.php and search.php. Albums Displaying Weirdly on Gallery Page - justindh81 - 2009-07-28 I've looked in all three of those files, and also the css file for the theme and style I'm using, and can't find anything that deals with the function you mentioned. I'm looking for a bit of code that looks something like this right "int normalizeColumns( int $albumColumns, int $imageColumns )" And then just delete that bit of code? Albums Displaying Weirdly on Gallery Page - acrylian - 2009-07-28 That function is on top of the files mentioned in the default theme you are using. Line 1 of that theme's album.php has Albums Displaying Weirdly on Gallery Page - justindh81 - 2009-07-28 Alright - thanks for pointing that out. I thought deleting that one sentence might be the answer but...I got a parse error or something and had to paste it back in. How do I turn it off? Albums Displaying Weirdly on Gallery Page - justindh81 - 2009-07-28 OK - I removed the (,2, ,6,) from this line: $firstPageImages = normalizeColumns('2', '6') and the right amount of thumbnails showed. But on my website, when I'm logged in, I get this line of text at the top now: "Notice: Use of undefined constant normalizeColumns - assumed 'normalizeColumns' in /home2/chinamas/public_html/themes/default/album.php on line 1". Is there a way to properly turn off the function so I don't get that? Albums Displaying Weirdly on Gallery Page - justindh81 - 2009-07-28 This thread helped: http://www.zenphoto.org/support/topic.php?id=2540#post-15218 Thanks for your patience. |