ZenphotoCMS Forum
Allowing comments on albums - 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: Allowing comments on albums (/thread-4649.html)



Allowing comments on albums - Filip - 2009-02-08

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?




Allowing comments on albums - acrylian - 2009-02-08

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




Allowing comments on albums - Filip - 2009-02-08

I can't find that line, Is it because I'm using 1.2.2 instead of 1.2.3?




Allowing comments on albums - sbillard - 2009-02-08

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.




Allowing comments on albums - Filip - 2009-02-08

Line 2792 in template-functions.php. My album and image.php doesn't have that function.




Allowing comments on albums - acrylian - 2009-02-08

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




Allowing comments on albums - Filip - 2009-02-08

Not that good with php yet but do you mean this function?
``




Allowing comments on albums - sbillard - 2009-02-08

If you are not comfortable with PHP you will have to stick to a standard theme, for this functionality you need the example theme.




Allowing comments on albums - Filip - 2009-02-08

Well can't find that function in the example theme either.




Allowing comments on albums - sbillard - 2009-02-08

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.




Allowing comments on albums - Filip - 2009-02-09

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.




Allowing comments on albums - acrylian - 2009-02-09

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/