vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Latest Threads List on non forum page (https://vborg.vbsupport.ru/showthread.php?t=203820)

NexDog 02-01-2009 12:27 PM

Latest Threads List on non forum page
 
I would like to put a list of the last created 5 threads on the home page of our site (with forum being in a subdirectory) with thread titles linking to their respective threads. I've seen it done with SimplePie and the external.php feed file but I couldn't work it out. Any ideas?

Lynne 02-01-2009 03:01 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

NexDog 02-01-2009 10:36 PM

Cheers, Lynne. There was a few options posted and I used the javascript one as it also had code showing how to limit number of threads shown. Works fine in a test file, will implement. :)

Mellymonster 02-02-2009 05:46 AM

Nex thanks for that link, I got that now on my site, just what I was looking for :D

NexDog 02-02-2009 09:31 AM

Do you get a few seconds delay on the feed appearing? At the moment on my test site I'm pulling it off a different domain but both domains are on the same server. Just wondering if it's that or the js and if the RSS?XML feeds would be quicker.....

Mellymonster 02-02-2009 04:30 PM

Yeah I get a delay :)

NexDog 02-15-2009 07:41 AM

Does anyone know how to use teh RSS/XML version but limit it to 5 threads? I tried external.php?type=xml&limit=5 but doesn't work.

Lynne 02-15-2009 03:57 PM

I think it's count=5, not limit=5. Not sure, but try that.

NexDog 02-15-2009 10:24 PM

Yep, works. Thanls. :)


All times are GMT. The time now is 01:09 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.01020 seconds
  • Memory Usage 1,719KB
  • 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
  • (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