Probably wishful thinking, but what the hey.

Assuming I have this set up correctly, when a vb user logins at the forum he gets redirected to the Drupal user page. And then must go back to the forum. This presents me a problem as there is no link or message saying to go back to the forum.

In the regular VB, the user would get redirected to the VB front page.

Is there any way to set that up?

CommentFileSizeAuthor
#5 drupalvb.redirect.5.patch5.03 KBsun
#3 drupalvb.redirect.3.patch5.04 KBsun

Comments

uniprepc’s picture

I believe this is a direct correlation with the replacement variables. If you remove the first variable "- login.php?do=login => /drupalvb/login", then you should be fine in terms of what you're looking for.

As long as you don't get rid of the register variable, you problem should be solved with this. Let me know if this works. The only downside to this is that the user wouldn't be automatically logged in on the Drupal site whenever they login from vBulletin. It looks like it's only one way, but hopefully they'll fix that in the next update.

sreyas’s picture

this is a great module and our vb integration works almost without any issue. But to say i do have a small problem here.

Whats working for us at this moment

1. When a user logs in at drupal he is also logged in at vb
2. When a user logs in at vb he is also logged in at drupal
3. When a user logs in at drupal he goes to drupal user profile page
4. When a user logs in at vb he goes to the main page of the forum

Now the problem, we have two login form at vbulletin.
1. Nav bar login (which is at the top right hand side)
2. Original login form( which comes at the main content area, while you take any private forum, navbar login will be also there)

1. Logging at navalogin takes you to main page of forum
2. Original login form is supposed to take you back to the private forum which you were trying to view just before logging in. but here what happens is login form action takes it to drupalvb/login and it never goes back to private forum. I was thinking whether we could take this referrer url to drupalvb and then redirects back to referrer url in any way.

Please let me know if this possible.

Regards
Ciril Sreedhar
Sreyas IT Solutions

sun’s picture

Version: 6.x-2.0 » 6.x-2.x-dev
Component: User interface » Code
Category: feature » task
Status: Active » Needs review
StatusFileSize
new5.04 KB

Apparently, this (and some more issues) have been fixed for the 5.x-3.x branch, which never had a stable release, but was intensively used by some larger sites.

Attached patch forward-ports that code to 6.x-2.x.

This needs to be tested extensively.

sun’s picture

+++ b/drupalvb.module
@@ -471,46 +471,64 @@ function drupalvb_user_delete($account) {
+  drupal_goto('user/login', 'destination=' . drupal_urlencode($redirect));

If I'm not mistaken, the second parameter needs to look differently in D6... didn't look that up.

This line is reached when being logged out (in both systems), and attempting to log in from vBulletin with non-existing or invalid user credentials.

sun’s picture

Title: Set up redirect login when logging on from VB page? » Redirect to originating page when logging in from vBulletin
Status: Needs review » Fixed
StatusFileSize
new5.03 KB

Committed attached patch (including tweak mentioned in #4)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.