What do I alter in the query in MessageIndex.php ?
I'd like to get the topiclist like default but with the locked topics all down at the end of the page.
Open MessageIndex.php and look for:
ORDER BY
" . (!empty($modSettings['enableStickyTopics']) ? 't.isSticky' . ($fake_ascending ? '' : ' DESC') . ',
' : '') . $_REQUEST['sort'] . ($ascending ? '' : ' DESC') . "
and replace it with this:
ORDER BY
" . (!empty($modSettings['enableStickyTopics']) ? 't.isSticky' . ($fake_ascending ? '' : ' DESC') . ',
' : '') . $_REQUEST['sort'] . ($ascending ? '' : ' DESC') . ',
t.locked ASC' . "
Chris,
Don't see any difference in the display... ???
Found the problem, replace it with this instead:
ORDER BY
" . (!empty($modSettings['enableStickyTopics']) ? 't.isSticky' . ($fake_ascending ? '' : ' DESC') . ',
t.locked ASC,
' : '') . $_REQUEST['sort'] . ($ascending ? '' : ' DESC') . "
And this time it's tested to work.
Chris,
Will test tonight when I can access the code ;)
Thanks!
Quote from: Kris on April 14, 2004, 03:06:52 AM
Chris,
Will test tonight when I can access the code ;)
Thanks!
And works :)