[BETA] IPB 1.3 to phpBB3 Convertor

Converting from other board software? Good decision! Need help? Have a question about a convertor? Wish to offer a convertor package? Post here.
Get Involved
Locked
maat
Registered User
Posts: 39
Joined: Wed Feb 27, 2008 7:49 am

Re: Need help writing ipb13-to-phpbb3 convertor (for pm conv)

Post by maat » Sun May 17, 2009 8:13 am

Ok i suppose you're using the same db for source and destination.

There was a bug in this case... sorry :oops:

i updated the file functions_ipb13.php please check out again the convertor and test it to see if things are better.

User avatar
RavenMokel
Registered User
Posts: 9
Joined: Fri May 15, 2009 7:49 pm
Contact:

Re: Need help writing ipb13-to-phpbb3 convertor (for pm conv)

Post by RavenMokel » Sun May 17, 2009 2:19 pm

Ok, i tried the updated version and it worked (i.e. it completed running without an error message), thanks a lot!

I just noticed two things in the converted board:
  • The permissions doesn't seem to be converted (not that much of a problem, i could set them up again by hand).
  • The attachments weren't converted, all posts that had attachments just contain their text and no attachments.
I can live with the first, but the second is giving me headaches... I can think of some workarounds (for example setting up a big file pool accessible to all forum users that contains all the old attachments), but having them in the posts they were in originally would be much better... Is that possible?

Bye,
David

maat
Registered User
Posts: 39
Joined: Wed Feb 27, 2008 7:49 am

Re: Need help writing ipb13-to-phpbb3 convertor (for pm conv)

Post by maat » Sun May 17, 2009 4:05 pm

ipb system of "masks" for permissions is a real nightmare.

Currently only really basic permissions are converted ( i'll try to improve my convertor for that later but the amout of time needed will be rather heavy )

for attachements i dont think i did much... i can perhaps improve things without too much work. just gimme a few hours/days to check plz.

maat
Registered User
Posts: 39
Joined: Wed Feb 27, 2008 7:49 am

Re: Need help writing ipb13-to-phpbb3 convertor (for pm conv)

Post by maat » Sun May 17, 2009 8:53 pm

D¡cky wrote:tygerbug,

For the guest postings:

OPEN functions_ipb13.php
FIND

Code: Select all

function phpbb_user_id($user_id)
{
	global $config;
REPLACE WITH

Code: Select all

function phpbb_user_id($user_id)
{
	global $config, $convert, $src_db, $db;
	
  // If the old user id is 0, it is the anonymous user...
	if ($user_id == 0)
	{
		return ANONYMOUS;
	}
Included the patch for that. Thanks D¡cky :roll:

maat
Registered User
Posts: 39
Joined: Wed Feb 27, 2008 7:49 am

Re: Need help writing ipb13-to-phpbb3 convertor (for pm conv)

Post by maat » Sun May 17, 2009 9:07 pm

News :

for attachements ipb allows only one file... and data are stored with post while in phpBB3 data for attachements are stored in a specific table... i think i can code something in the coming days to deal with attachements.

stay tuned :mrgreen:

maat
Registered User
Posts: 39
Joined: Wed Feb 27, 2008 7:49 am

Re: Need help writing ipb13-to-phpbb3 convertor (for pm conv)

Post by maat » Sat May 23, 2009 3:41 pm

hi,

i just added a set of changes to convert attachements.

Please let me know if that's ok for you :)

maat
Registered User
Posts: 39
Joined: Wed Feb 27, 2008 7:49 am

Re: [BETA] IPB 1.3 to phpBB3 Convertor

Post by maat » Sun May 24, 2009 8:14 pm

Added a fix for basic forums setups where the only ipb admin userid is 1 (which is guest id for phpbb3)

=> currently i translate only the admin id after the last known userid but i think i can also translate admin id to 2 and then translate others userids to userid + 1

What do you prefer there ?

User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Re: [BETA] IPB 1.3 to phpBB3 Convertor

Post by D¡cky » Mon May 25, 2009 4:43 am

I don't think it makes much difference which way you do user_id's. My IPB to phpBB2 and other convertors to phpBB2 used the user_id +1 method if there was a user_id of 1. I felt that this kept user_id's consistent with the phpBB way of having the main admin with a user_id of 2. I always thought it odd that the phpBB2 to phpBB3 convertor takes a user_id of 1 and makes it MAX id + 1. My personal preference is to take all user_id's and add 1. I have been meaning to try this with the phpBB3 convertors, but I haven't gotten to try it yet. It should be a fairly simple code change.
Have you hugged someone today?

maat
Registered User
Posts: 39
Joined: Wed Feb 27, 2008 7:49 am

Re: [BETA] IPB 1.3 to phpBB3 Convertor

Post by maat » Mon May 25, 2009 8:34 am

Ok :

version 0.3 without id + 1 is here :
https://subversion.grenouille.com/svn/i ... tags/v0.3/

version 0.4 with id + 1 following Djcky advice is in trunk :
https://subversion.grenouille.com/svn/i ... bb3/trunk/

You can test them and let me know if i missed something

next hard point will be to work on permission masks :/

maat
Registered User
Posts: 39
Joined: Wed Feb 27, 2008 7:49 am

Re: [BETA] IPB 1.3 to phpBB3 Convertor

Post by maat » Tue May 26, 2009 5:12 pm

improved forum permissions conversion in trunk :
https://subversion.grenouille.com/svn/i ... bb3/trunk/

now basic permissions (no access, readonly, standard access, and full administrator acess) in phpbb3 should be rather close of what's defined in source IPB board.

I rely on some shortcuts at the moment :

the perm to create a new topic in ipb is translated as standard forum role in phpbb
(this role including the rights to read, create topics, post reples and also to upload files as a default parameter un phpbb3)
else the perm to read is translated as readonly (no topic creation, no reply, no file upload)

The "reply" and the "upload" ipb perms are not yet parsed

So if you want to prevent registered people with standard role from using uploads after conversion you need to edit standard forum role and disable uploads for it manually

Please let me know what you think

maat
Registered User
Posts: 39
Joined: Wed Feb 27, 2008 7:49 am

Re: [BETA] IPB 1.3 to phpBB3 Convertor

Post by maat » Wed May 27, 2009 2:32 pm

i'll work aigain on permissions and masks once i have replies

now i'm switching on polls :x

User avatar
RavenMokel
Registered User
Posts: 9
Joined: Fri May 15, 2009 7:49 pm
Contact:

Re: [BETA] IPB 1.3 to phpBB3 Convertor

Post by RavenMokel » Mon Jun 01, 2009 11:05 pm

Hi,
the latest version from the trunk (0.4.dev) is always giving me the following error, even though the path worked with previous versions of the converter and i know that the path is correct:
Could not find path to your former board. Please check your settings and try again.
» ../../somepath/board was specified as the source path.
Any ideas why it stopped recognising my IPB directory?

Bye, David

maat
Registered User
Posts: 39
Joined: Wed Feb 27, 2008 7:49 am

Re: [BETA] IPB 1.3 to phpBB3 Convertor

Post by maat » Tue Jun 02, 2009 5:30 am

afaik i changed nothing regarding path :?

when doen it give you this error message ?

at the very beginning ? later ?

User avatar
RavenMokel
Registered User
Posts: 9
Joined: Fri May 15, 2009 7:49 pm
Contact:

Re: [BETA] IPB 1.3 to phpBB3 Convertor

Post by RavenMokel » Tue Jun 02, 2009 10:36 am

Directly after the first screen with the database and path settings for the conversion.

-David

maat
Registered User
Posts: 39
Joined: Wed Feb 27, 2008 7:49 am

Re: [BETA] IPB 1.3 to phpBB3 Convertor

Post by maat » Tue Jun 02, 2009 10:47 am

have you access to apache error logs ?

Locked

Return to “[3.0.x] Convertors”