Customizing vBulletin Login For Single-Signon

Here’s what you need to do to disable the standard vB login form at the top-right corner of your forum pages, and customize it so that you force your members to log in via the DAP login form, so that they’re logged in to your membership site as well as DAP.

  1. Log in to VB Admin control panel at http://yoursite.com/forums/admincp/
  2. Go to Styles & Templates > Style Manager > Default (or whatever style you’re currently using)
  3. From the big list on the left, select the “header” template. Then on the right, under the “Controls” section, click on Edit
  4. On the resulting page, copy the full code from this text file and paste into the main “Template” body, and click on “Save”
  5. Next, download the file forums/register.php from your server, to your desktop and save the original copy somewhere safe.
  6. Replace the contents of that file with the contents of this text file.

That’s it!

Click Here to Leave a Comment Below 5 comments
Weight Lifting Complete - November 23, 2012

Just followed these instructions. Not sure if I did step 4 correctly as the “resulting page” in vBulletin had a lot of code in it. I pasted the code from your text file at the top of the file before the other code. I am assuming that’s what you meant by “paste into the main Template body.” Could you explain step 4 a little better just to make sure I got it right. Should I have pasted your code from text file within a div of that file? Or did I do it correctly? Going to do some testing right now as well.

Weight Lifting Complete - November 23, 2012

Well, that definitely wasn’t right as it created a lot of space at the top of the forums.

I definitely do not know where to put the code in step 4. I tried several different positions and none seemed to look right. Looks like there is additional styling in the file that doesn’t work with my styling. I had the skin designed by someone else so I’m not sure what I’m doing. Where should I paste the code in Step 4?

Thanks very much for any help you can give.

Weight Lifting Complete - November 23, 2012

Sorry to keep posting but thought this would help others as well. It doesn’t seem like I need to do steps 2, 3, and 4 to get this to work correctly. When I click on Register it takes me to the register page I specified in the register.php file as explained in your step 5 and step 6.

Weight Lifting Complete - November 28, 2012

Wanted to add some more after several days of users registering. I send free users to the free usergroup in vBulletin and paid users to the paid usergroup in vBulletin. Since I only use first name in the sign up form, there will be many conflicts with creating a user name in vBulletin and it creates issues as I only get the notice that a user was not successfully created. Then I will need to manually change user data. Not sure I want to do that. So might make them have to register on their own so they get their own user name and password that they set through vBulletin. I see that I can add more variables to the user sign up forms so I hope that will help in creating more unique vBulletin user names. But many people want to create their own user names for forums anyway instead of their real names. But then I would have to manually assign their user group which puts me in an even worse situation. So I’m trying to weigh all the options and choose the best one. Any ideas/comments? How would you create unique user names so there aren’t any duplicates but then allow them to change their user name for vBulletin?

Veena Prashanth - December 8, 2012

If you set the ‘Auto-sync-to-vb’ option in /dap/dap-config.php file to “N”, then dap wont auto-sync users to VB. The users will get sync’d ONLY when they pick a username in the dap profile. That’s the only option currently to prevent issues with free signup with just firstname.


Leave a Reply: