AndrewRandom
03-31-2011, 07:43 PM
I can't seem to find a function that would allow me to get threadbit data from a given forum.
I was expecting a method like $vbulletin->getThreads($forumId, $userData, $page, etc.) that would return a list of threads that particular user could view - but looking at forumdisplay.php, it seems like there it is just a single straight page, with all queries and user permissions checks happening in that one file.
Right now, it seems like the only possible way to show a thread outside of that one file is to duplicate hundreds of lines of code. Is that legitimately the answer, or is there a simple API method that I've overlooked somewhere?
--------------- Added 1301604968 at 1301604968 ---------------
I looked at ./external.php, the external api thread output, and it is identically functionless, except that it outputs as XML/RSS/JS. Was this code duplication necessary?
I was expecting a method like $vbulletin->getThreads($forumId, $userData, $page, etc.) that would return a list of threads that particular user could view - but looking at forumdisplay.php, it seems like there it is just a single straight page, with all queries and user permissions checks happening in that one file.
Right now, it seems like the only possible way to show a thread outside of that one file is to duplicate hundreds of lines of code. Is that legitimately the answer, or is there a simple API method that I've overlooked somewhere?
--------------- Added 1301604968 at 1301604968 ---------------
I looked at ./external.php, the external api thread output, and it is identically functionless, except that it outputs as XML/RSS/JS. Was this code duplication necessary?