What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • 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

Clement

Freaky Coder
Staff member
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
Thanks I haven't had time to try it yet, got called away for my real job and then the holidays. :)

Thanks!
 
Top