DeanWhitehouse Posted January 3, 2009 Share Posted January 3, 2009 For my forum i order the topics by when they were posted. Now i need to order them by when the last reply was, and put sticky and important at the top. What would be the logic behind this? Quote Link to comment https://forums.phpfreaks.com/topic/139268-solved-sticky-and-important-topics/ Share on other sites More sharing options...
GingerRobot Posted January 3, 2009 Share Posted January 3, 2009 You'll need another field, which can be an int. Assuming important should come higher than sticky (though i fail to see the need for a sticky and important topics) set important topics to 2, sticky topics to 1 and normal topics as the default of 0. In your ordering, order by this new field then by the last reply. Quote Link to comment https://forums.phpfreaks.com/topic/139268-solved-sticky-and-important-topics/#findComment-728482 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.