You can look through the manual. Or, what I used to do is find a similar modification and then modify it to meet my needs. You'll probably want to start by reading one of these -
How to create your own vBulletin-powered page! (uses vB templates) or
[How-To] vBulletin API Basics: Creating Custom Pages & Misc.. They will help you set up a page to put your results on.