theme looks quite okay just setup.
admin menu has problem while making sub album giving mysql error
Zenphoto encountered an error
MySQL Query ( SELECT * FROM zp_albums WHERE parentid= ) failed. MySQL returned the error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Hello there,
I have customised my album.php to fit it to my needs - can anybody tell how I could possibly manually adjust the code for album.php so I don't get screwed up pagination (e.g. I set 8 pics per page in settings, I get 9 pics, I choose 10, I get 12) while remaining on the former version?
Thanks in advance
Froschfinger
Checking out zenPhoto1.3, I get the same problem. The photos can only be set in rows of three, either 3, 6, 9, 12 or even 15 pics. Everything inbetween is rounded up to the next number divisible by 3. Is there a way to change this, as I am experimenting with a 4-thumbs-per-row design?
Hey sbillard,
seems I have not been able to successfully track down the problem - as far as my reading goes, this is hardcoded into zenPhoto rather than the theme? I found the code in my template-functions.php, but I have no clue as of what to change so that I have my 4-columns problem solved... can you give me another quick hint like the one before :)?
Thanks in advance;)
Froschfinger
Sure: see the function documentation in http://www.zenphoto.org/documentation/functions/_template-functions.php.html
In the Theme options, the "Album Menu Type" dropdown shows 4 options:
DropDown
\n
Jump
\n
Surely this is a tiny, simple little typo somewhere. I'll probably dig around looking for it tomorrow, once I merge the theme changes with my own customizations.
Thanks for updating this, it's a wonderful theme and this will make it easier for others to use it without manually tweaking the files.
@froschfinger: First, this theme is not an official one so we don't know exactly what it does to display. Second, there are no "columns" in HTML (yet), so this is related to the functon normalizeColumns sbillard mentioned above. This explains why the "columns" seem not to match your setting. You should never change core files, this is a pure theme thing. This has also been widley covered on the forum.
Hey acrylian,
thanks for getting back to me. I know it's not an official one, but sbillard pointed me to the function documentation. I thought it would then be related to this.
I know there is no column support in either HTML or CSS, but I still know how to achieve it, only the number of images is screwed up :). I had already been looking into the function documentation, but it didn't give me any hint on how to fix my problem - I wouldn't know what to change in there.
Thanks for your help, since you're poiting to the forums, I'll stick to that and try to find what I need once more....
The link my collegue posted leade to the function "normalizeColumns" whose documentation explains in detail why that happens. In short it is used to equalize columns if using albums with images and subalbums so it looks "clean". So the fix is to remove that function from the theme and not to use albums with images and subalbums.
Hi acrylian,
for some reason I had searched for that function among my customized theme, but I didn't find it in the first place. Seems I need a dozen of hints from pros like you to finally stumble over it! I finally found it in the header.php of the used theme and got it working now (changing the '3' to '4') - thanks for your kind and truly patient support on this one!!!
Dear gjr,
Thanks a lot for such a wonderful theme. i have started feeding up my site.
btw i just have a little query rather a suggestion for one addition.
can we have a small square images on sidebar saying Latest Uploaded Images.
May be 3 Row 2 Column showing 6 images or 9 ?
how can we do that if you can guide me writing it on sidebar.
Hey glr, thanks for a great theme, I am currently using it on my site at http://www.danielyates.info
Is there any way in which I can make the whole thing centre align rather than stick to the left? I am not a coding kinda guy so am rather clueless - I am not sure if this is theme based, zenphoto based or something else. Any advice greatly appreciated!
Daniel
Hello,
I have just set up ZenPhoto 1.3 and am using ZPFocus 1.3. All seems to work as planned except the links to subscribe to the RSS. (rss.php and rss-news.php). When logged in to the admin the links work, but when logged out I get the following error messages:
XML Parsing Error: junk after document element
Location: http://www.vintage-electronics-ads.com/rss.php?lang=en_US
Line Number 2, Column 1:Warning: fopen(/home6/advertk3/public_html/vintageelectronicsads/cache_html/rss/rss_en_us.xml) [function.fopen]: failed to open stream: No such file or directory in /home6/advertk3/public_html/vintageelectronicsads/zp-core/functions-rss.php on line 337
^
and
XML Parsing Error: junk after document element
Location: http://www.vintage-electronics-ads.com/rss-news.php?lang=en_US
Line Number 2, Column 1:Warning: fopen(/home6/advertk3/public_html/vintageelectronicsads/cache_html/rss/rss-news_en_us.xml) [function.fopen]: failed to open stream: No such file or directory in /home6/advertk3/public_html/vintageelectronicsads/zp-core/functions-rss.php on line 337
^
Any suggestions? Thank-you!
The cache_html folder is set to 0755. The rss.php and rss-news.php is set to 0644. The folders are in the root. Also the static_html_cache plugin is enabled in the admin.
Thank-you acrylian. Disabling the rss cache on Options>RSS solved the problem!