vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Pulling Up Vbulletin Threads To Use On Another Site (https://vborg.vbsupport.ru/showthread.php?t=239927)

TheFerrett 04-06-2010 04:02 PM

Pulling Up Vbulletin Threads To Use On Another Site
 
We have a website that publishes articles. We have a separate web server that contains our forums. Each article published on the site automatically creates a discussion thread for that article on the forum.

What I'd LIKE to do would be to pull up the current thread from Vbulletin and put all the comments at the bottom of the article, so that people can see all the comments that have been left.

To do that, I'd need is some sort of VBulletin API that allows me to pull up all the comments in a given thread, and hopefully fed back in some sort of JSON/XML style format so that I can parse them on the server.

Is there some sort of script (or developers' guide) that would tell me how to do this?

Thanks,
T.F.

cellarius 04-06-2010 04:15 PM

Simply write a php script that queries the forum database for the information you need based on parameters passed to it by url and have the output formatted as xml or whatever you want. Then parse the xml on your webpage.

TheFerrett 04-14-2010 06:07 PM

Quote:

Originally Posted by cellarius (Post 2016882)
Simply write a php script that queries the forum database for the information you need based on parameters passed to it by url and have the output formatted as xml or whatever you want. Then parse the xml on your webpage.

I can do that, but then if vBulletin changes their database design on a given upgrade, I'm up the creek. Which is why I'd prefer to do it through the API; it's much clunkier, but also hopefully more bulletproof.

So does anyone have any ideas on how to do that?


All times are GMT. The time now is 05:31 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.00983 seconds
  • Memory Usage 1,712KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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