Log in

View Full Version : Latest Threads List on non forum page


NexDog
02-01-2009, 12:27 PM
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 (http://www.vbulletin.com/forum/showthread.php?t=159044)
[HowTo] Display your latest threads on an external page using an XML feed (http://www.vbulletin.com/forum/showthread.php?t=158934)
[HowTo] Display your latest threads on an external page using an RSS feed (http://www.vbulletin.com/forum/showthread.php?t=158916)

NexDog
02-01-2009, 10:36 PM
Cheers, Lynne. There was a few options posted and I used the javascript one (http://www.vbulletin.com/forum/showthread.php?t=158895) 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. :)