Member
Member
Filip   2009-02-08, 13:18
#1

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?

Administrator
Administrator
acrylian   2009-02-08, 16:17
#2

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

Member
Member
Filip   2009-02-08, 18:59
#3

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

Member
Member
sbillard   2009-02-08, 19:06
#4

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.

Member
Member
Filip   2009-02-08, 19:42
#5

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

Administrator
Administrator
acrylian   2009-02-08, 19:54
#6

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

Member
Member
Filip   2009-02-08, 20:15
#7

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

Member
Member
sbillard   2009-02-08, 21:36
#8

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

Member
Member
Filip   2009-02-08, 21:40
#9

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

Member
Member
sbillard   2009-02-08, 22:02
#10

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.

Member
Member
Filip   2009-02-09, 08:24
#11

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.

Administrator
Administrator
acrylian   2009-02-09, 11:12
#12

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/

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.