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.

Support No Answer Newest Post First Stops Working

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
 

From bespoke add-on development to complex integrations and specialized enhancements, we offer a range of XenForo development services designed to help your community thrive.

Start discussing your needs
Back
Top
Cart