vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   external data provider (https://vborg.vbsupport.ru/showthread.php?t=319632)

WeBBy 07-27-2015 02:18 AM

external data provider
 
I find the documentation for vb 5 to be absolutely horrible.

All I am trying to do is post some latest threads on a non-vbb page (was easy in Vbb 3.x) and after spending half the day playing with the external data provider, I think I am going to just give up and write my own script to pull data directly from the database.

There is absolutely no documentation on using the external data provider in either js or rss mode. wtf

I can access it using a direct link in a browser, but otherwise, there is no documentation on how to integrate it into a non-vb pagew (except saying that you can) or any documentation on formating the output, what parameters can be used, etc. :down:

Does anyone know of a mod or some sort of realitsic documentation?

Thanx

Replicant 07-27-2015 01:04 PM

Processing RSS output isn't really a VB documentation problem. There are a lot of code examples on how to process the RSS feeds from simple to complex implementations. Search Google for "Process RSS data" and you will get alot of hits and many different ways to accomplish what you are trying to do. Here's just one link from the search that explains it pretty well.

http://btk.tillnagel.com/tutorials/r...rocessing.html

WeBBy 07-28-2015 03:09 AM

Unfortunately, I need a tutorial not just for dummies but for a complete idiot!!!

I cannot seem to get past step 1 because:
1. Half the links in the tutorial are 404
2. What-where is processing.xml?

If I use thier example as test.xml
Code:

import processing.xml.*; 
 
// Load RSS feed 
String url = "http://rss.news.yahoo.com/rss/topstories"; 
XMLElement rss = new XMLElement(this, url); 
// Get title of each element 
XMLElement[] titleXMLElements = rss.getChildren("channel/item/title"); 
for (int i = 0; i < titleXMLElements.length; i++) { 
    String title = titleXMLElements[i].getContent(); 
    println(i + ": " + title); 
}

I get nothing - cannot even look at page source (right click)

Sorry I am such a dumb sh-t


All times are GMT. The time now is 12:59 PM.

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.01117 seconds
  • Memory Usage 1,711KB
  • 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_code_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