Try the script attached below (upload to your board root). It will convert links in posts and private messages that are in the following forms:sparenton wrote:When transfering, there sometimes are links to another posts. As it's in the posts, it maybe hard to detect and correct, but we'll have to change this manually if nothing can be automated... Is it possible to automate this (in a first time) ?
[Post] http://example.com/smf/index.php?topic=9.msg43#msg43
[Topic] http://example.com/smf/index.php?topic=9.0
[Forum] http://example.com/smf/index.php?board=2.0
[User] http://example.com/smf/index.php?action=profile;u=1
Simply edit the following line:
Code: Select all
$old_board_url = '';
example.com/smf/
. You must have administrative permissions to run it, so you'll need to rectify the login issue before you will able to use it.
Your password should work after converting, but there is a possibility that some passwords won't work. Does your password contain any special characters out of the A-Z 0-9 range? The converter doesn't actually convert the passwords because that's impossible since they're hashed. Instead, the converter includes a modified version of the default authentication plugin that's shipped with phpBB which is able to compare the SMF password the same way that is done in SMF. This is only done for the first time that the user logs in. Upon a successful login, the auth plugin hashes the password using the standard method used in phpBB.sparenton wrote: In the same way, most of our previous users are moved from the old to the new, but i tried to connect with my regular user account and it failed, certainly because of the password... how are the password converted, can the users use their previous password or do they have to use the "forgot my password" to have it recalled ?
The latest version fixes a bug where passwords that contain HTML special characters (
<>&"
) were not working, so it is certainly possible that it's a problem with the auth plugin. I will test it with a wider range of characters when I have some time.Your user account should already have administrative privileges if you were an administrator in SMF, it's just a matter of you being able to log in. You can run the following query to change your password tosparenton wrote:When installing PhpBB3, i create an admin account. When the conversion is finished, this admin account doesn't exist anymore, so i can't rule the newly installed forum... how can i correct this ?
5*uw84hEJumac6t
:
Code: Select all
UPDATE phpbb_users SET user_password = "$H$9y2m9jjwelqiKNwsnQ7x4tLAXfZZvr/", password_convert = 0 WHERE user_id = x
phpbb_
to your table prefix and x
to your user id. If your user id in SMF was 1, it will now be a different id because user id 1 is reserved for the anonymous user in phpBB. You can figure out what your new id is by simply running this query:
Code: Select all
SELECT config_value FROM phpbb_config WHERE config_name = "increment_user_id"