vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   No clean way to get all threads in a forum? (https://vborg.vbsupport.ru/showthread.php?t=261247)

AndrewRandom 03-31-2011 07:43 PM

No clean way to get all threads in a forum?
 
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 [DATE]1301604968[/DATE] at [TIME]1301604968[/TIME] ---------------

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?


All times are GMT. The time now is 02:21 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01378 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete