PDA

View Full Version : Display threads on non VB pages?


Varsh
01-21-2012, 04:26 PM
Currently I'm putting together a website with vB as obviously the forums. What I'm wanting to do though is on my custom PHP page I've already created the layout however I'm needing a few things and that's:
Display a forum's thread list (via ID I'd imagine)
Limit the thread list to 5 items

How would I go about this? I have already managed to connect the user database without a problem thus have the VB globals file required.

I'm rather new to vBulletin hooks so I'm not sure exactly what to do so please go easy on me. xD

Lynne
01-21-2012, 05:44 PM
If the forum has an rss feed, you could just use javascript.

[HowTo] Display your latest threads on an external page using an RSS2 feed (https://www.vbulletin.com/forum/showthread.php?t=159044)
[HowTo] Display your latest threads on an external page using an XML feed (https://www.vbulletin.com/forum/showthread.php?t=158934)
[HowTo] Display your latest threads on an external page using an RSS feed (https://www.vbulletin.com/forum/showthread.php?t=158916)

Varsh
01-22-2012, 11:54 AM
Thanks Lynne that helped a lot.

Is there a way so that I can add multiple RSS feeds into that code or would each RSS feed have to have a seperate script like this? I can't do this as separate includes without a problem. Also the author is not displayed with that code.

Popa Andrei
02-03-2012, 08:31 PM
how can i set the rss to read the thread prefixes to and display on mi page some images i want instead of the thread prefixes? :D

kh99
02-03-2012, 08:37 PM
I'm not sure exactly what you want - if you want to change the format of the RSS feed you'd have to edit external.php. The thread prefixes are already included at the beginning of the title so I suppose another option would be to change the code that receives the feed.

Popa Andrei
02-03-2012, 08:45 PM
aham.Thank for the advice

kh99
02-03-2012, 09:19 PM
aham.Thank for the advice

You're welcome. Unless that's sarcasm, in which case - you're welcome.

Popa Andrei
02-04-2012, 04:44 PM
i wasnt sarcasmic,really,thanks.