if ($vbulletin->userinfo['userid'])
{
include "include/header.php";
echo 'Welcome ' . $vbulletin->userinfo['username'] . ', you have logged in.';
include "include/footer.php";
}
else
{
include "include/header.php";
include "include/loginform.php";
include "include/footer.php";
}
?>
This is the loginform.php (this code is just for testing, so you may want to edit it, but it works):