Album Comments

Did a quick search and didn't see this posted, so the question/feature request is, would it be possible to see an option for allowing comments for an album/set as well as individual photos?

This is not something I've specifically wanted, but a number of people who I have directed to ZenPhoto for use as a photo gallery, have asked if it was something it could do. Granted, most of these people have been artists, so there is a greater need/want for allowing a set to be commented on outside of any specific pieces (photos).

I haven't looked at the code or the db schema for ZP, so I am honestly unaware of how easy this would be to add, either officially or as a 'hack'. As I know there are other feature priorities and album comments isn't something most users are going to need/want, any pointers for the latter (hack) would be appreciated.

Thanks.

Comments

  • trisweb Administrator
    As a hack, the best way to do it would be to use the image comment code (classes.php, Image class) and create a sort of "dummy image" for each album, then add the comments onto it... very hacky, and probably not compatible with the garbage collection (the image will be destroyed, since it doesn't actually exist). Alternatively, use the current comments table with a new field (albumid) and copy the comment methods from the Image class to the Album class, except insert on the albumid instead. Pretty complicated, but more robust (and probably less buggy) than the first idea...

    Now, since this is a feature request, I'll say the right way to do it is to wait until we have a common inherited "zp object class," which all Images, Albums, and Groups will inherit from, and contains the commenting code. All comments will go into the comment table and can be attached to anything, and themes can display comments for anything. That sounds ideal, but will have to wait for a 2.0 rewrite. I will add it to the list for sure.
  • I'd just like to second the idea of allowing comments for albums and subalbums (i.e., comments on album.php pages). Thanks!
  • I like the idea of commenting on an album too :)

    Q: if you have a common inherited "zp object class" could you also have the ability to comment on a comment?
  • trisweb Administrator
    @Blair, and we *do* have a common object class, just not a common object identifier. Essentially it's a polymorphic association, so we need both a type (table) name and an id to reference. Not terribly difficult to add to the comments table...

    But, comments themselves are not treated the same way as albums and images, so you can't comment on a comment, though that would be interesting for "threads". We should look into it.
  • Any updates on a hack to comment on Albums??

    I'm very insterested since I use greybox, so commenting on individual pictures is not really working for me.
  • I use simpleviewer on my site. What I have done is provide a link to the image page so that people can view an individual image (to see the exif data, etc.) There they can comment on the image.

    The comments on albums ticket has been recorded. So far no one has stepped up the implementation, though.
  • @sbillard, Can I see your site, to try to understand what you are talking about?
    Thanks in Advance
    Zucye
  • albums.sbillard.org is the site. It uses the standard efferevescence+ theme. (I don't allow comments on this site, but you can still view the image page.)
  • Got the following error :(

    Zenphoto Error
    MySQL Error: Zenphoto could not connect to the database server. Check your zp-config.php file for the correct host, user name, and password. Note that you may need to change the host from localhost if your web server uses a separate MySQL server, which is common in large shared hosting environments like Dreamhost and GoDaddy. Also make sure the server is running, if you control it.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    @All, Have a wonderful Weekend :):):D;)
  • Was this on `albums.sbillard.org`? it is working now. Might have been a host server glitch.
  • It is up and working now and I see what you meant. By the way nice weading... yours?

    The new version is suppose to have this feature. Has anyone use it yet???
  • It was my daughter's wedding.

    This featrue (in effervescence+ has been there for a while.)
  • I haven not seen it. I will check more carefully later. Thanks for the info and you have a beautiful daughter!
Sign In or Register to comment.