• This area is dedicated to the support of our xF1 add-ons. For xF2, please use the dedicated area: HERE.
  • We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Support No Answer Newest Post First Stops Working

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
5,414
Hi,

Let's give it a try, in the file library/XFA/ThreadAutomation/Extends/Model/Post.php

Replace:
Code:
                  ORDER BY post.position ASC, post.post_date ASC
By:
Code:
                  ' . (($threadModel->getThreadDisplayOrderForThread($thread) == 'newest_first')
                    ?
                    'ORDER BY
                    ' . (XenForo_Application::get('options')->waindigo_newestPostFirst_blogStyle ? 'FIELD(post.position, 0) DESC,' : '') . '
                    post.position DESC, post.post_date DESC'
                    :
                    'ORDER BY post.position ASC, post.post_date ASC' ) . '
That will integrate Waidingo feature to ThreadAutomation for that particular file.
This is untested but should work.

Clément
 

scottct1

New Member
Joined
Nov 30, 2015
Messages
2
Thanks I haven't had time to try it yet, got called away for my real job and then the holidays. :)

Thanks!
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
5,414
Let me know when you have been able to test if it fixes it.

Clément