vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=246167

phpBB3Auth - Migrate phpBB3 user/password to VB4
by MoreLinux
08 Jul 2010 23:32

1 Attachment(s)
For all the phpBB3 administrators who want to migrate their phpBB3 to VB4 and hate the idea that the users have to use the "Forgotten your password?" method to logon to the new VB4 board.

The idea heavily borrowed from the ipbAuth mod created by viarun.

The solution I implemented is that I first hash the password the phpBB3 way and check the hashed password against the entry in phpbb3.users table. When the hashes are the same I use the normal VB4 method to store the password in the VB4 database.

Because I don't like to destroy the original phpBB3.users table I added an extra field "PWD_Synced" to the table and use that field to remember that a password was already synced.

We are running this mod on our brand new VB4 forum http://www.astroforum.nl and it work perfect. 330+ phpBB3 users already migrated their password to the new board.

Many thanks to viarun and malcolmx in his LDAP Auth Plugin. THANKS guys!

Installation instructions:
  • Add the field "PWD_Synced" in the phpBB3 table phpbb_users. You can use the following statement.
    "ALTER TABLE `phpbb_users` ADD `PWD_Synced` BOOL NOT NULL DEFAULT '0';"
  • copy phpBB3Auth directory to your vb forum installation directory
  • change the path to controller.php directory in phpBB3-plugin.xml
  • copy the hooks_phpBB3.xml to FORUM_ROOT/inclucdes/xml directory
  • in login.php do:
    search for:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    insert below:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  • activate plugin system (if not done already) in admincp
  • in admin cp import the product file "phpBB3-plugin.xml" at "Download / Upload" Plugins
  • re-check if the include for controller.php is right
  • in includes/class_bootstrap.php search for:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    change:
    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    to:
    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  • test the product

Important information

In my documentation I forgot too mention that it is best to install the plug-in after you migrated the data from phpBB3 to VB4. You can leave the phpBB3 database on-line and when you go live the users start to login on VB4 and automagically the password gets migrated to VB4.

Detailed installation instructions and all files needed are in the zip file.

Have fun with it,
MoreLinux

Kolektor 09 Jul 2010 04:58

must be included in the impex.

funmasti 09 Jul 2010 05:42

it solved a big prob

MoreLinux 09 Jul 2010 09:57

@Kolektor and Funmasti, Thanks

Funmasti, I would love to hear about your experience with phpBB3Auth.

MoreLinux 09 Jul 2010 19:15

I updated the docu a bit. The following was added.

Important information

In my docu I forgot to mention that it is best to install the plug-in after you migrated the data from phpBB3 to VB4. You can leave the phpBB3 database on-line and when you go live the users start to login on VB4 and auto-magically the password gets migrated to VB4.

CRDeveloper 20 Aug 2010 17:35

I need help with this.

Can i have this path include('phpBB3Auth/controller.php'); if the folder is in public_html/forum/ ???

Do i have to set the config file?

CRDeveloper 20 Aug 2010 18:25

Now its working, thanks for the mod!

sarangan 27 Aug 2010 22:34

It's not working for me.. I have succesfully imported all those 33.000 users I had in my phpbb3 installation and moved all to vb latest version succesfully.. I also have installed everything correct.. But login doesn't works..

Please help need.. :(

charl13dontsurf 01 Oct 2010 01:55

Nevermind!

You rock!

Vcize 21 Mar 2011 18:18

Is there anything like this for going from phpbb3 to vb3?

Lestat_ 16 Apr 2011 10:18

this is heaven ! thank you so much mate, you saved me lots and lots of troubles - works excellent, this was the final step I needed to make the transition from phpbb to vbulletin - thank you, you saved my day :D

Can't get it to work
by Tracyf
17 May 2011 23:24

Ok so I installed this and i cannot get it to work.

Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host '<host>' (1) in [path]/phpBB3Auth/controller.php on line 99
Unable to connect to DB: Unknown MySQL server host '' (1)

What does this mean and how do I fix it?

EDIT: Nevermind I got it right after this post :)

thetgc 17 May 2011 23:44

+1 for being added to impex... this would have helped me when i migrated 2 years ago!

Alright_Guys! 02 Jun 2011 17:06

Thanks for your code.
I just picked out some lines to help me coding a password updater. Works great!

CPTA 15 Jul 2011 02:33

it this working?


All times are GMT. The time now is 20:39.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.