vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Exporting certain database fields to XML (https://vborg.vbsupport.ru/showthread.php?t=189349)

rustybones 08-28-2008 08:22 AM

Exporting certain database fields to XML
 
Hi guys,
so I'm in a bit of a pickle. My company needs all the threads in our forum exported out of the database into XML format.

Is there a SQL statement that will do this export these certain fields into a XML file:
  • Thread title
  • Thread creation date
  • Thread content (so the posts within this thread, plus the usernames and dates of said posts)

Any help here would be great! I've been searching for a tool of plugin for Vbulletin but no joy :(

Marco van Herwaarden 08-28-2008 08:37 AM

Not that i know of. There might be a generic tool to export MySQL data to XML, but i have never seen a script for vB to do this. But i guess it would be easiest to write your own as your company also wants a specific XML to be generated.

rustybones 08-28-2008 08:44 AM

Yeah I've been playing around with phpMyAdmin which can export stuff to XML. I'm hoping though someone might know of some SQL I can run to generate this stuff for me? Since I'm just a poor old little designer with little knowledge of mySQL :(

Opserty 08-28-2008 08:44 AM

I think PHP has its own XMLWriter Functions (or you could see how vBulletin does its own). As Marco said it will probably be best for you to write your own script (or get someone to do it for you).


All times are GMT. The time now is 05:32 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.00962 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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