![]() |
|
Print image comments - 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: Print image comments (/thread-10915.html) |
Print image comments - jalves - 2013-03-14 Hi! When viewing my gallery i want to display my thumbnails as a list and show the comments of each item next to it. Print image comments - acrylian - 2013-03-14 You would have to use this: Also Print image comments - jalves - 2013-03-14 Thank you, but the link you mentioned is going to a zenphoto reinstall login page.. is there any problem? EDIT: It's working now! Thank you! Print image comments - acrylian - 2013-03-14 It should now work actually. My colleague did just update the site. Print image comments - jalves - 2013-03-14 I'm calling `
Print image comments - acrylian - 2013-03-14 You need to make sure $_zp_current_image is set. It is only within next_image() or on image.php itself. You also really need to look what getLatestComments returns and if it does return something before you start the foreach loop. Also best don't put the function into foreach itself for that reason. That will throw errors if nothing is returned as well otherwise. $album->name is empty because the album object is not setup. On album php. $_zp_current_album is available and also within the next_album loop. Print image comments - jalves - 2013-03-15 $zp_current_image is set i'm executing the code within next_image(). $_zp_current_album is set and i'm also in album.php. Print image comments - jalves - 2013-03-15 Hi, i'm digging around this, shouldn't $comment['folder'] = $img->$album->name; on line 3260 of template-functions.php be $comment['folder'] = $img->[b]album->name;[/b]? The album object is perfectly set. Print image comments - acrylian - 2013-03-15 I cannot answer at the moment, we will have to look later at it. Print image comments - jalves - 2013-03-15 Ok acrylian, thank you! Print image comments - sbillard - 2013-03-15 @jalves: Indeed, if that line did read as you quote it would be wrong. But nothing near that line resembles your statement in the current builds. Nor does the line appear anywhere else that I can find. So the suggestion would be to be sure you are running current code. Print image comments - jalves - 2013-03-18 Hi! |