vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Fetching content in VB database for external display? (https://vborg.vbsupport.ru/showthread.php?t=158043)

Mikhailtech 09-17-2007 03:48 PM

Fetching content in VB database for external display?
 
I'd like to know if there's any sort of documentation on how to display VB database content on an external site. Specifically, how to take write a script that will fetch a threadid and display its contents (with certain formatting) on an external site.

I know there are addons that do similar things (like VBExternal), but I'm looking for something more basic. I'm not a php guru unfortunately but I'm learning though I'm not sure where to start looking for info relating to this. Essentially I'd like to write a CMS-type application that will fetch threads from a certain forum and post them on an external website with specific formatting (like [page] tags that won't show up to the user but will split up the post into multiple pages once it shows up on the external site). It will also need to rewrite (probably mod_rewrite) the threadid to appear to be the title (again specified in a custom field). I would appreciate at least some direction or where to look to get started.

Analogpoint 09-18-2007 05:30 AM

It's not trivial with such things as deleted/edited/moderated posts, attachments, etc, but take a look at the queries on lines 884 and 951 in showthread.php to get an idea.


All times are GMT. The time now is 09:23 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.00982 seconds
  • Memory Usage 1,705KB
  • 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
  • (2)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