I'm trying the same thing, it checks for the cookie, if it doesn't exist then it allows you to log in, then queries the user table to allow you to use it in a non-vB. I have no idea if this is proper, but it's working for me.
/*Insert into your non-vB page */
require("global.php");
if ($bbusername == "")
{
eval("\$logincode = \"".gettemplate("logincode")."\";");
echo $logincode;
}
else
{
$getusername=$DB_site->query_first("SELECT username,email,homepage FROM user WHERE userid=$bbuserid");
/* Then below, substitute names for use in a non-vb program where the user table has different field names, I use it to fill in a form that already exists in the other program. */
$user=$getusername[username];
$email=$getusername[email];
$url=$getusername[homepage];
}
#############
[Edited by wajones on 10-15-2000 at 07:53 PM]
|