I have a site that is controlled by a user class and that vbb is only a part of the site structure. What I need is for when the person logs into the main site, they automatically get logged-in to vbb.
They are registered automatically into vbb from the main user class (direct db input). The vbb registration is disabled -> the user being redirected to the user class login.
What I have now is a global vbb plugin which detects whether the user is logged in with the user class, and if yes, I extract their username/password from the database and the vbb login (hidden) is automatically filled in.
I then have autologin with another plugin using javascript as
Code:
<? if ($memuser !=''){
echo "<script type=\"text/javascript\" language=\"JavaScript\">
<!--
document.mylogin.submit();
//--></script>";
} ?>
There has to be a better way of automatically having the user logged in upon entering vbb and/or upon logging in with the user class.
Any suggestions would be greatly appreciated. Thanx