Basically, requireing global.php will set you up (i.e. connect you to the database, allow you to use vBulletin's SQL connection class, etc), then it's up to you to add the additional coding to the script.
The template documentation around here is probably the best way to start, then simply addon to that script. If you need help fetching the last XX posts, feel free to shoot me a PM. I don't mind helping out.
|