Comments order

I recently installed phpAlbum, and I love it!

I was wondering, is there a way to sort the comments? I would like to display the new comment below those already posted. Sort of like in a forum. Is that possible? (I have very little knowledge of php)

Re: comment ordering

Hi, one more time, better

Hi, one more time,

better solution would be probably to use php function array_reverse. This returns an revers orderered array. If you get the comments.tpl.php file of the theme you are using, put there a following line:

$messages=array_reverse($messages);

between the

if(is_array($messages)){

and

foreach($messages as $comment){

lines. This would work also with already aviable comments.

Thanks!

Thank you for the quick reply! I'll give it a try!

Edit:
Just tested it and it works! Thanks again for your help!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-8698264690166658"
data-ad-slot="4417389723">