zenphoto forums » Feature Requests

Album Comments

(14 posts)
  1. Jessterw

    Apprentice
    Joined: Jul '06
    Posts: 4

    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.

    Posted 6 years ago #
  2. Zenphoto development team
    trisweb

    Project Manager
    Joined: Sep '05
    Posts: 1,833

    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.

    Posted 6 years ago #
  3. tummblr

    Member
    Joined: Nov '07
    Posts: 14

    I'd just like to second the idea of allowing comments for albums and subalbums (i.e., comments on album.php pages). Thanks!

    Posted 5 years ago #
  4. Blair

    Member
    Joined: Nov '07
    Posts: 10

    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?

    Posted 5 years ago #
  5. Zenphoto development team
    trisweb

    Project Manager
    Joined: Sep '05
    Posts: 1,833

    @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.

    Posted 5 years ago #
  6. zucye

    Member
    Joined: Jul '07
    Posts: 33

    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.

    Posted 5 years ago #
  7. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,767

    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.

    Don't forget to read the Forum rules and usage resources
    Posted 5 years ago #
  8. zucye

    Member
    Joined: Jul '07
    Posts: 33

    @sbillard, Can I see your site, to try to understand what you are talking about?
    Thanks in Advance
    Zucye

    Posted 5 years ago #
  9. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,767

    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.)

    Don't forget to read the Forum rules and usage resources
    Posted 5 years ago #
  10. zucye

    Member
    Joined: Jul '07
    Posts: 33

    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 ;)

    Posted 5 years ago #
  11. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,767

    Was this on albums.sbillard.org? it is working now. Might have been a host server glitch.

    Don't forget to read the Forum rules and usage resources
    Posted 5 years ago #
  12. zucye

    Member
    Joined: Jul '07
    Posts: 33

    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???

    Posted 5 years ago #
  13. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,767

    It was my daughter's wedding.

    This featrue (in effervescence+ has been there for a while.)

    Don't forget to read the Forum rules and usage resources
    Posted 5 years ago #
  14. zucye

    Member
    Joined: Jul '07
    Posts: 33

    I haven not seen it. I will check more carefully later. Thanks for the info and you have a beautiful daughter!

    Posted 5 years ago #

RSS feed for this topic

Reply

You must log in to post.