ZenphotoCMS Forum
Most recent comments - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: Most recent comments (/thread-4566.html)



Most recent comments - nessamaria - 30-01-2009

How can I call the most recent comments made on my zenpage articles? Using the zenphoto call just calls the comments that have been made on my photos.




Most recent comments - acrylian - 31-01-2009

http://zenpage-functions.maltem.de/zenpage/_zenpage-template-functions.php.html#functionprintLatestZenpageComments




Most recent comments - nessamaria - 09-02-2009

Thanks for answering, and sorry for asking - that was something I totally should have figured out myself, as you had already conveniently supplied the information in the guide.

I'm having some trouble implementing it, however. This is what I have in the codeblock section:

I've also tried it without the 'all'

It returns 7 comments (instead of 8) and it doesn't return the most recent ones. For example, the 2 most recent comments were on the same article. For a day or so, neither of them showed up in the latest comments. Now the first one does show up, but the second and latest comment does not.

I hope that's clear. Can you tell me why this might be happening?




Most recent comments - acrylian - 09-02-2009

It should actually do that of course. I will try to reproduce that (I have to admit I don't use comments myself at all...). Were the comments maybe moderated?




Most recent comments - acrylian - 09-02-2009

I did a quick test and it seems to work correctly for me.




Most recent comments - nessamaria - 09-02-2009

They're not moderated, so they really should all show up. Since it only is returning 7 comments, and I'm asking for 8, it's like the most recent comment is there and just not showing. Very frustrating.




Most recent comments - acrylian - 09-02-2009

I am sorry it does work for me. Are you sure that you not expecting an comment of an image/album to be included?




Most recent comments - nessamaria - 09-02-2009

No, just comments on articles. Thanks anyway, I appreciate it. It seems like it might be a database problem. If I figure it out, I will post.




Most recent comments - klimas - 24-03-2010

Hi, I have to say, that it seems to me, that the function "printLatestZenpageComments" for "pages" links wrong, instead with string :page&title=..: with string "news&title=.... You can see it on my pages: http://tourdebier.cz/forum/index.php?p=pages&title=forum where the link links to "add comment" instead to the page "forum". Do I do something wrong?

My code is:

Thanks! Klimas




Most recent comments - acrylian - 25-03-2010

Thanks, will take a look, might be an oversite from times where pages where not intended to have comments.




Most recent comments - acrylian - 26-03-2010

Wow, that error must have been there from the beginning of Zenpage! seems that function is not widely used... Anyway, should be fixed in tonight's nightly.




Most recent comments - klimas - 29-03-2010

THX, in nightbuild works like a charm