vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I pull data from a non VBulletin table into new threads? (https://vborg.vbsupport.ru/showthread.php?t=205366)

brainfood 02-14-2009 04:57 PM

How do I pull data from a non VBulletin table into new threads?
 
Hi, I am hoping someone can help with something I have been struggling with for some time.

I have about 10 different fields in a nonvb table that I want to dynamically pull the data from to populate a thread. I have about 1000 rows so doing this manually will take too long. I want the data from the 10 different fields to be organized in a certain way so it is consistent for all threads. So I have two main questions.

1) How do I "automatically" pull each row of data (10 variables) and put them into a new thread? Ideally the thread will be newly created as I run the code and the data will populate the thread.

2) How do I organize the data in specific way so the thread looks organized? I want the 10 variables to be put in a table. Also if I ever change the layout of the table I want this to be retroactive so that all previous threads take on this new look and feel.

Does anyone know if this possible and how to do it?

Thanks. Any help will be appreciated.

Dismounted 02-15-2009 03:53 AM

You can and should create threads by using the ThreadPost Data Manager. There are some articles going around about data managers, as well as the documentation in the vBulletin Manual: Data Managers.


All times are GMT. The time now is 03:02 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.01098 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
  • (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