Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
phpBB3Auth - Migrate phpBB3 user/password to VB4 Details »»
phpBB3Auth - Migrate phpBB3 user/password to VB4
Version: 1.00, by MoreLinux MoreLinux is offline
Developer Last Online: Jul 2017 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 4.0.x Rating:
Released: 07-07-2010 Last Update: Never Installs: 30
Uses Plugins Template Edits
Re-useable Code Additional Files  
No support by the author.

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

Download Now

File Type: zip phpBB3Auth.zip (6.2 KB, 286 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 04-24-2012, 02:59 PM
rgreene1971 rgreene1971 is offline
 
Join Date: Mar 2012
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am so jealous right now. I am moving from smf to vb4 at the end of the month and would kill for a mod like this one.
Reply With Quote
  #33  
Old 08-10-2012, 05:45 PM
PikkonMG PikkonMG is offline
 
Join Date: May 2012
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this still work with 4.2.0 patch level 2? I know i had used it some time ago but im unable to get ti to work on anymore, you try to login and tell you the password is incorrect.
Reply With Quote
  #34  
Old 08-10-2012, 08:27 PM
yakiclub yakiclub is offline
 
Join Date: Feb 2010
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please be an example ?
Reply With Quote
  #35  
Old 08-31-2012, 06:24 AM
arsalan660 arsalan660 is offline
 
Join Date: Jan 2009
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also had problem converting my phpbb forum. Some password got converted but Some user complain about incorrect password.
Reply With Quote
  #36  
Old 10-17-2012, 12:55 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone had any success getting this to work with vB3? It would really save my bacon if it has already been done by someone else.
Reply With Quote
  #37  
Old 11-07-2012, 01:58 AM
spinferno spinferno is offline
 
Join Date: May 2012
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey gang, I have issues in running this cool phpbbauth system.
After the install, i get this error:
HTML Code:
Warning: include(./vbulletin/phpBB3Auth/controller.php): failed to open stream: No such file or directory in [path]\login.php(114) : eval()'d code on line 1

Warning: include(): Failed opening './migration/phpBB3Auth/controller.php' for inclusion (include_path='.;C:\php\pear') in [path]\login.php(114) : eval()'d code on line 1
Has anyone else had similar issues and can point me towards whether the fix is to try different paths or to hack the include files?
Thanks guys!
Bill
Reply With Quote
  #38  
Old 12-30-2012, 08:01 PM
Wickex Wickex is offline
 
Join Date: Dec 2012
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked fine for me on 4.2.0!

Thanks a lot, you saved me so much time!
Reply With Quote
  #39  
Old 09-18-2013, 01:41 PM
acalero acalero is offline
 
Join Date: Jun 2013
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Totally awesome! Just worked perfectly! Wondering if this could be managed at VB5 too, because it's the next step I've to take

Thank you very much
Reply With Quote
  #40  
Old 06-22-2014, 10:33 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What would be the chances of doing the same with WordPress to VB4?

Thanks!

[edit: working on it myself, almost there]
Reply With Quote
  #41  
Old 08-29-2014, 08:37 PM
kemraj kemraj is offline
 
Join Date: Aug 2014
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when can i un install it? will it transfer everything right away or only when a person logs in
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.17828 seconds
  • Memory Usage 2,314KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete