vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How can I display the last XX Posts on non-vB page‎ (https://vborg.vbsupport.ru/showthread.php?t=241870)

Klaus A. 05-04-2010 06:22 PM

How can I display the last XX Posts on non-vB page‎
 
Hi, can anyone give me a tips on this?

Klaus A. 05-05-2010 06:49 PM

Hi, is there no solution for this?

Front Range 4x4 05-06-2010 12:48 AM

Turn on External Data Provider in your ACP.

Add this to your external page.

<script type="text/javascript" src="/forums/external.php?type=js&lastpost=1&forumid=1,2,3"></script>
<script type="text/javascript">
<!-- Start
for(x = 0; x < 6; x++)
{
document.writeln("<p><a href=\"/forum/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> - <span class=\"copytext\"> Posted by "+threads[x].poster+"</span></p>");
}
//-->
</script>

note 1: forumid=1,2,3"> is where you select the forum/s to be shown

note 2: x < 6; x++) the 6 is the number of threads to be shown

HTH ;)

your24hourstore 05-06-2010 10:48 AM

nice thanks

venom2124 05-07-2010 02:17 AM

What if I wanted to put calendar events on a non-vb page.

Front Range 4x4 05-07-2010 11:36 AM

I don't know, I just posted what I've been using. I don't know where that code came from but suspect I found it somewhere on vBulletin.com

Front Range 4x4 05-09-2010 01:11 PM

Klaus, did you Turn on External Data Provider in your ACP?

Klaus A. 05-16-2010 04:47 AM

Quote:

Originally Posted by Front Range 4x4 (Post 2034133)
Klaus, did you Turn on External Data Provider in your ACP?

Yes. If you copy the feed url in to the browser, ou can see that it works.

--------------- Added [DATE]1274027621[/DATE] at [TIME]1274027621[/TIME] ---------------

I've got it working now :)

kirupa 12-08-2011 05:55 PM

The current solution only displays the latest threads. Is there a way to provide a specific thread ID and display the latest posts from that thread?

Thanks,
Kirupa


All times are GMT. The time now is 04:11 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.01464 seconds
  • Memory Usage 1,723KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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