Feng Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Found a bug?
Report it here please
Home
Help
Search
Login
Register
Feng Forum
»
Support
»
How To's
»
[RESOLVED] Comments sorting
« previous
next »
Print
Pages: [
1
]
Author
Topic: [RESOLVED] Comments sorting (Read 2664 times)
supadoctor
Jr. Member
Posts: 99
[RESOLVED] Comments sorting
«
on:
August 09, 2010, 05:50:19 am »
In Feng Office I can add comments to any object. It's great. But how I can manage order of displaying comments? By default they ordered by date from first to last. Is it possible, for example, to revert them from last to first?
«
Last Edit: August 12, 2010, 06:30:04 am by supadoctor
»
Logged
cabeza
Administrator
Hero Member
Posts: 1004
Re: Comments sorting
«
Reply #1 on:
August 09, 2010, 10:11:13 am »
Not possible without digging into tho code.
Logged
Visit
Feng Office
-
Create a Free Trial
-
Sponsor a Feature
supadoctor
Jr. Member
Posts: 99
Re: Comments sorting
«
Reply #2 on:
August 10, 2010, 10:32:07 am »
Of course it's some coding. It's no problem if you guide me
Logged
cabeza
Administrator
Hero Member
Posts: 1004
Re: Comments sorting
«
Reply #3 on:
August 10, 2010, 01:01:33 pm »
Take a look at application/comments/Comments.class.php
Logged
Visit
Feng Office
-
Create a Free Trial
-
Sponsor a Feature
supadoctor
Jr. Member
Posts: 99
Re: Comments sorting
«
Reply #4 on:
August 12, 2010, 06:29:31 am »
If you want display comments on object's page (for example, at document's page ) in reverse order you should change the file application\views\comment\object_comments.php.
In the file replace string $counter=0 (string #15) to:
$counter=count($comments)+1;
rsort($comments);
Logged
Print
Pages: [
1
]
« previous
next »
Feng Forum
»
Support
»
How To's
»
[RESOLVED] Comments sorting