Favourites and Comments images

Hi, first of all, I'd like to say that this gallery is really great, well beacause of its simplicity.

I am trying to make something like this:
http://dbowman.com/photos/index2.php

Exactly, viewing the most view images on the index, and viewing images on the left side of comment.
Does anybody have this feature, or could someone write it? I promise, I will be trying to do it too, but I'm very beginner at PHP and MySQL..

Comments

  • There is a stopdesign theme already available for zenphoto
    http://www.benspicer.com/photos/stoppeddesign.zip
  • Yes, I know, and it's perfect, but it doesn't provide these functions as I mentioned.

    1) one page, only with comments with thumbnails of images commented

    2) showing, on other page, the most viewed pictures - favourites. That's not as difficult as to view only six of them on the index
  • trisweb Administrator
    #1 should be fairly easy to do actually. Just create a new .php file in the ZP directory (or the theme directory if you can get it to include) and get all the comments from the comments table. Some database working can get you the image filenames associated with them so you can get the thumbnail. Sounds like something I might want to add actually...

    #2 is a little harder since we don't have view counts. You'd need a new database field in the images table, and code to update it on each view. Then a query to select by most viewed and get image objects, and print them as in #1 on a new page.

    Both of these are good ideas that could concievably make it into future releases (especially down the 2.0 road).
  • Thank you leaving great advise.. #1 is done! Thank you once again.
Sign In or Register to comment.