ZenphotoCMS Forum
any way to show images that actually got 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: any way to show images that actually got comments ? (/thread-491.html)



any way to show images that actually got comments ? - basetta - 05-05-2006

I mean a lot of users are askin me to "highlight" the images with comments in the thumbnails gallery.. is it possible ? or to show how many comments an image got.
this is my gallery http://thisisgenova.com/zenphoto/milkLASTparty2006/ if you wanna check
HELP!




any way to show images that actually got comments ? - trisweb - 05-05-2006

You can do that in the theme (album.php for that page)... the function is getCommentCount() and it returns the number of coments on the image. So you'd want to do something like,

``

Or just show the comment count, whatever you like.




any way to show images that actually got comments ? - basetta - 08-05-2006

great! i'm trying to embed that right now! ill let u know




any way to show images that actually got comments ? - basetta - 08-05-2006

hum,. i tried but I got a php error.. how do you highlight the image ? I can't code.. help!
Is there a way to write the CommentCount on the mouse over for the thumbnail ?

thanx!




any way to show images that actually got comments ? - trisweb - 08-05-2006

Ah, you can't code...... you didn't say that... ;-)

Well, you have to code.... and the way you highlight it would be to set a "style" attribute to one of the divs with a different background-color property. Like, ` ` but only do that if the above conditional is true.

Sorry I can't help you more, don't have time at the moment.




any way to show images that actually got comments ? - basetta - 09-05-2006

ok, i'll try and see what happen... thanx!