YAFLogo

Posted by: garethb1 - Sunday, 19 July 2015 05:21:56
Hi, just playing around with the forums in a DNN installation. Was wondering what the different options are for sorting the posts? I can see in Admin -> Forum -> Edit there is a sort order which is a number. What does this number refer to? Am I able to sort posts by popularity?

Posted by: tha_watcha - Sunday, 19 July 2015 19:50:19
There are no sorting options for posts. The sort order for forums you mentioned define the sort order for the forums in the forum main page.

Posted by: garethb1 - Tuesday, 21 July 2015 13:12:14
Thanks. Can you point me in the right direction as to what to change for the order posts are returned in? Is it a stored proc or linq? Where can I find it? One of the main requirements I'm looking for and I'm happy to make whatever changes. I couldn't find what to change myself after looking around for ages! Thanks.

Posted by: tha_watcha - Saturday, 25 July 2015 16:43:24
[quote=garethb1;66076]Thanks. Can you point me in the right direction as to what to change for the order posts are returned in? Is it a stored proc or linq? Where can I find it? One of the main requirements I'm looking for and I'm happy to make whatever changes. I couldn't find what to change myself after looking around for ages! Thanks.[/quote] Yes in most cases this is sorted in the stored procedures. For example for the forum page which shows all topics of a forum the procedure would be topic_list... Look out for the [b]order by[/b] its always sorted by LastPosted or Posted column you would need to change it to Views

Posted by: garethb1 - Monday, 27 July 2015 23:45:35
Thanks. Exactly what I needed! :)

Posted by: bbobb - Tuesday, 28 July 2015 06:58:41
Hopefully, users will view your forum much more often then bots. :cheesy: