coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: armkbdotcom on July 03, 2004, 11:24:31 PM

Title: Logout problem with vB3
Post by: armkbdotcom on July 03, 2004, 11:24:31 PM
Hello,
I've installed the latest version of your script and bridged it with vBulletin 3. The first problem I've noticed so far is when I logout from coppermine it will redirect to my forum's logout page with parameters: $target = 'login.php?&do=logout';

Which is not correct as I understand and user id should be specified like this:

login.php?&do=logout&u=3

Is this known issue or I missed something?
Title: Re: Logout problem with vB3
Post by: armkbdotcom on July 03, 2004, 11:41:07 PM
For now I've found a quick solution. Not sure if this is correct but modifiing udb_logout_page function in vbulletin30.inc.php helps at first glance.


// Logout
function udb_logout_page()
{
    global $HTTP_COOKIE_VARS;

    $target = 'login.php?do=logout&u=' . $HTTP_COOKIE_VARS[VB_COOKIE_PREFIX . 'userid'];
    udb_redirect($target);
}
Title: Re: Logout problem with vB3
Post by: phryl on September 15, 2004, 06:16:16 AM
thank you for this. i'm having similar problems on login as well. my main id is an admin id on vb3, so when i click on "users" in cp, i get redirected to the login page to vb3 admin. do you have the same problem?