Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
SQL Query...
adrian.
✭
Anyone fancy writing me an SQL Qeury to pull the 10 most recently updated discussions out of the database?
and also the 10 most recent discussions in a single category.
Pretty please???
0
This discussion has been closed.
Comments
SELECT DiscussionID FROM LUM_Discussion WHERE CategoryID='$CategoryID' ORDER BY DateLastActive LIMIT 10;
of course, $CategoryID is the numeric ID for the category you're looking for. (You can find those in LUM_Category)
and if you want more than just the DiscussionID, you'll want to change that too.
The easiest way to make sure that all of the flags are properly checked is to use the existing code in the DiscussionManager object. You can do it like this:
i've been doing queries for the stats extension all day. kinda forgot about those. i should add them to the stats, too.