Log in

View Full Version : Displaay Threads on external page with global.php


jamesbow
08-10-2008, 03:19 PM
Hi there, quick question which is driving me mad.

I want to display the 5 latest posts on a non vb page - have looked all over the forums and think I have found the easiest way is as follows using:

<?php
chdir('/home/www/mysite/forum');
require_once('/home/www/mysite/forum/global.php');

However Im not sure of the following code that I would need to query the latest posts?
Can anyone help?

Thanks

Lynne
08-10-2008, 04:08 PM
You might want to see how they do it in the modifications - Latest X Posts on Forumhome (https://vborg.vbsupport.ru/showthread.php?t=185636&highlight=latest)

jamesbow
08-10-2008, 04:16 PM
Hi thanks for the reply,

Im not sure if that thread will help:

https://vborg.vbsupport.ru/showthread.php?t=185636&highlight=latest

As I need to display on a non VB page, I had some code to display info from a particular user (have lost this!) and it was working.

But i just need to display the last 5 post titles,

Do you think its straightforward?

Opserty
08-10-2008, 05:46 PM
Could try:
HowTo Display Latest Active Threads on ANY normal HTML page ... (http://www.vbulletin.com/forum/showthread.php?t=158895)