Allowing comments on albums

I'm having trouble allowing comments on album. The theme I'm working with doesn't have any code supporting comments in album.php. But neither do the default. Does someone know how to add the comment code to album.php?

And does anyone know how to change the comment order to descending?

Comments

  • acrylian Administrator, Developer
    The example theme features comments on albums. Please take a look there.
    Re: order of comments: http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionnext_comment
  • I can't find that line, Is it because I'm using 1.2.2 instead of 1.2.3?
  • What line? The link acrylian posted is to the function definition. You would have to look for that function in the example theme's album.php script.
  • Line 2792 in template-functions.php. My album and image.php doesn't have that function.
  • acrylian Administrator, Developer
    Well, then you are not using one of the standard themes and you have to add it yourself. Anyway, you don't need to do anything on the template-functions.php file...
  • Not that good with php yet but do you mean this function?
    `<?php while (next_comment()){ ?>`
  • If you are not comfortable with PHP you will have to stick to a standard theme, for this functionality you need the example theme.
  • Well can't find that function in the example theme either.
  • Well, then you need to get some descent tools. Line 101 of example/album.php!

    I think maybe my last suggestion is best for you. Use a theme that has the feature you want. Don't get in over your head.
  • I did ask if that was the line I was looking for in my previous post. So far I've been succesfully commpletely modify a theme and the only thing left to complete it is to change the comment order, so why stop now and be satisfied with the default theme?

    My theme does have that function but I don't know how to add it to the next_comment() line.
  • acrylian Administrator, Developer
    So you don't know how to add the parameter?? Then I suggest to read this on our user guide section: http://www.zenphoto.org/2008/04/how-to-read-the-zenphoto-functions-guide/
Sign In or Register to comment.