Hi Kamran, Habari does not track post views itself. There are plugins like https://github.com/habari-extras/relativelypopular - you might want to have a look at them. Feel free to extend them to your needs.
You can get the comments and with that the number of comments per post by Comments::get_by_id($post_id) for example. You would have to get the comment number for all posts and determine the highest numbers yourself. That could be done once, stored in a postinfo and then updated every time someone posts a comment. There might be an easier way with custom database queries, but I do not know about that. Christian Am Freitag, 1. März 2013 13:07:05 UTC+1 schrieb Kamran: > > Hi Owen > > How can i retrieve top posts on the basis of no of comments or most viewed? > > Thanks > -- -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/habari-users --- You received this message because you are subscribed to the Google Groups "habari-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
