vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Integration with vBulletin - phpBB3Auth - Migrate phpBB3 user/password to VB4 (https://vborg.vbsupport.ru/showthread.php?t=246167)

MoreLinux 07-07-2010 10:00 PM

phpBB3Auth - Migrate phpBB3 user/password to VB4
 
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:
    Code:

          if ($vbulletin->GPC['vb_login_username'] == '')
            {
              eval(standard_error(fetch_error('badlogin', $vbulletin->options['bburl'], ....
            }

    insert below:
    Code:

          ($hook = vBulletinHook::fetch_hook('phpBB3_login_hook')) ? eval($hook) : false;
  • 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:
    Code:

    $show['nopasswordempty']
    change:
    Code:

    defined('DISABLE_PASSWORD_CLEARING') ? 1 : 0;
    to:
    Code:

    defined('DISABLE_PASSWORD_CLEARING') ? 0 : 1;
  • 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 07-09-2010 02:58 AM

must be included in the impex.

funmasti 07-09-2010 03:42 AM

it solved a big prob

MoreLinux 07-09-2010 07:57 AM

@Kolektor and Funmasti, Thanks

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

MoreLinux 07-09-2010 05:15 PM

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 08-20-2010 03:35 PM

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 08-20-2010 04:25 PM

Now its working, thanks for the mod!

sarangan 08-27-2010 08:34 PM

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 09-30-2010 11:55 PM

Nevermind!

You rock!

Vcize 03-21-2011 04:18 PM

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


All times are GMT. The time now is 03:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01133 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete