I'm trying to display some data from vBulletin on some external pages (outside the vBulletin root) and can't seem to figure out how to do it. It's nothing special, just some static PHP pages with a couple of RSS feeds on them.

Here's what I want to display if the user is logged in:
Code:
Welcome, xxxxxxx.
You last visited: xxxxx at xxxxx
Private Messages: Unread xx, Total xx
If they aren't logged in it will display the login form.

If anyone could point me in the right direction or help me in any way, it would be greatly appreciated.

Thanks in advance,
Sean