vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to export content to a nonvb external page? (https://vborg.vbsupport.ru/showthread.php?t=199980)

JorgeX 12-28-2008 12:09 PM

How to export content to a nonvb external page?
 
Hi, im wondering if is possible to export content from a News forum (threads created on it) to a main page, nonvb.

Like this:

www.realitymod.com


Is it possible doing this?

feed://www.realitymod.com/forum/external.php?type=RSS2&forumids=12"

I don't know if it will be like the realitymod.com page.....

I tried inferno external and that things but doesn't work for vb 3.7.3

Thanks!

Lynne 12-28-2008 02:28 PM

See these threads for methods to pull threads via javascript:
[HowTo] Display your latest threads on an external page using an RSS2 feed
[HowTo] Display your latest threads on an external page using an XML feed
[HowTo] Display your latest threads on an external page using an RSS feed

See this for adding thread to an html page:
HowTo Display Latest Active Threads on ANY normal HTML page

JorgeX 12-28-2008 03:18 PM

Thank you, but i have to export the thread content, not the title..... but the name, date and how many answers too.

Thanks agaian

Lynne 12-28-2008 04:13 PM

Then you will have to write a query in your page to get that information. Do you have global.php included? If so, you should be able to connect to the regular vb database and query it for that information.

JorgeX 12-29-2008 01:46 PM

That's the problem, i don't know how to do that query in vB im a little newbie on php and mysql...

I have the all package of the "upload" folder in my server don't know if there is global.php.

What are the queries for "how many comments", "date", "name" and "title"? Obviously Thread content too, with a max chars and then a "Read more".

Thanks a lot Lynne!

Lynne 12-29-2008 05:18 PM

Did you try looking through the modifications at all? I found this - https://vborg.vbsupport.ru/showthrea...highlight=new* - I'm not sure if it's what you want.

Writing a query like that is not necessarily easy. I wrote my own for my site, but did away with all permissions issues because I didn't need any. The regular showthread query is full of permissions issues. You need to figure out exactly what you want and whether permissions come into play at all.

JorgeX 12-29-2008 08:46 PM

Thank you i'll try to modify and adapt that mod to what i need...

I'll try to quit all the headers and footer and then put an iframe on my php main page.

Thanks again.


All times are GMT. The time now is 03:35 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.01063 seconds
  • Memory Usage 1,720KB
  • 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
  • (7)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