Thanks, this almost work.
Now when people get the vBulletin login page, the image links is broken, and when I enter my user info and press Log In, I'm refered to the wrong page "login.php" (404 Not found) instead of "forums/login.php".
This is the code I use:
PHP Code:
<?php
chdir('forums/');
require_once('./global.php');
if ($vbulletin->userinfo['userid'])
{
include "include/header.php";
echo 'Welcome ' . $vbulletin->userinfo['username'] . ', you have logged in.';
include "include/footer.php";
}
else
{
// displays vbuletins login/error page
print_no_permission();
}
?>