PHP Code:
<?PHP
// Include files
require_once('./global.php');
if(!$vbulletin->userinfo['userid']){
// They are not logged in
require("notoktoaddvendorform.html");
// echo "Please login so you can add reccomended vendors.";
} else {
// They are logged in
require("oktoaddvendorform.html");
}
?>
Below is the error i am getting. What do i have to do to access the $vbulletin->userinfo['userid'] variable? Thanks for the code snipet, very helpful!! --jake
Unable to add cookies, header already sent.
File: /htdocs/forums/services.php
Line: 5