I am running Drupal 6.1.x.

On Google Chrome:
I created a menu that has a submenu/link called Forum. When someone clicks on Forum from the menu while they are not logged in, it doesn't asked them to login through drupal. Instead, it goes straight to the Forum link. If I do login to drupal and then click on the Forum link, it shows I am logged in (this is good). However, if I click logout, it does take me back to my drupal site and logs me out from drupal but if I click on Forum link again from Drupal, it'll take me to the forum page but it shows that I am still logged in. So, it logs me out of drupal but not from forum.

On Firefox:
If I login and click on the forum link, it doesn't show me logged in and I have to login again at the forum. So it's not working at all here.

I have set my cookie domain to be example.com on both Vbulletin and settings.php. I have also set utf8 to both config.php files on vbullentin side and on the drupalvb module side as well as the MD5-hashing.

So, would someone be able to assist me in pointing out what could be wrong? The users from drupal are showing up fine in VB so it's almost working. Just the login/logout features are not working well. I have set the replacement variables as well but my variables for this are set to full domain path:

example - http://www.example.com/drupalvb/login

I have it set that way because drupal and vbulletin are on two different servers and domains.

Comments

unix4linux’s picture

Can anyone assist me with this, please :)

unix4linux’s picture

I believe these two settings in vbulletin admincp are wrong but don't know what the correct ones should be:

add the following replacement variables for your template:

- login.php?do=login => /drupalvb/login

- login.php?do=logout => /drupalvb/logout?

(The trailing question mark is required.)

The reason I say this is because if I go directly to http://mypage/drupalvb/login, I get a blank white page. The status code is a 200 but nothing is showing up on the page. If I do the same for logout, it takes me directly to my durpal page and logs me out from drupal but not from vbulletin.

unix4linux’s picture

Priority: Normal » Major
unix4linux’s picture

Category: support » bug

Forgot to mention that I am running vbulletin 4.1.0 Patch Level 2

I also grabbed the path from this post and applied it but still no luck:

http://drupal.org/node/691736

The patch is from post #8

unix4linux’s picture

Is there going to be a patch/fix for vbulletin 4.1 Patch Level 2?? I am pretty sure that this newer version is what is not allowing the login/logout to work properly. I hope someone can answer soon

unix4linux’s picture

If someone can help me with this, I will gladly pay you. I really need to know if this is going to work or not and if someone can include a patch. I am working on a time framed project and haven't heard from anyone on this.

unix4linux’s picture

Can someone please assist me?

unix4linux’s picture

Component: User interface » Code
Category: bug » support

Ok, I am not sure if this is correct but it looks like it fixed my issue: YAY!!

I went into settings.php (on drupal side) and added an array for db_url for vbulletin. In other words, I told settings.php that it needs to look at vbulletin database as well so that the single sign-on will work.

This is what I had originally:

$db_url = 'mysqli://username:password@localhost/drupal';

Then I commented that out and did this:

$db_url['default'] = 'mysqli://username:password@localhost/drupal';
$db_url['vbulletin'] = 'mysqli://username:password@localhost/vbulletin';

Now, this is not in the drupalvb module README.txt file so I had no idea I needed to do this. I am hoping that the maintainer for the module (sun) can verify if me making this correction is what really fixed it. Then I hope he can add this to his README.txt file. The README.txt file is very detailed in regards to what needs to be done but it's only missing this part. I think this is very important for those who are new to drupal and using modules.

sun, can you verify if I am correct on my fix??

sun’s picture

Status: Active » Closed (duplicate)

1) It's interesting the you made it work with vB 4, because that is not supported yet; see #691736: Vbulletin 4 Support

2) You shouldn't have to manually add that database connection to settings.php; the module automatically performs this change.

Overall, I've the impression that you are running against vB4 integration issues, and those should be kept in the dedicated issue.