Well an easy way to do this would be...
HTML Code:
<?php
require('./global.php'); ?>
Though if you move the page outside of the forum you would have to edit the location of global.php
Then add a if statement
HTML Code:
<?
if (!is_member_of($vbulletin->userinfo, 6) AND !is_member_of($vbulletin->userinfo, 13) AND !is_member_of($vbulletin->userinfo, 5))
{
print_no_permission();
}
?>
This way only those user groups you define that can view the custom page can see it. Also if they are not signed in they will have to login via the vbulletin login system to see the page
Though this is a lil different than adding a login form. But should work.If want everyone to see it and login. Just add an
HTML Code:
AND !is_member_of($vbulletin->userinfo, 5)
for everyone.
By the way you would add this at the top of the page