Topic: Quotes without name after use 'PunBB Migration Tool'

I made the migration of a 'phpBB' database to 'PunBB', and the names in quotes (like: "Tommy wrote:") had disappeared.

How can i solve this?

Re: Quotes without name after use 'PunBB Migration Tool'

I've migrated several phpBB forums myself and never encountered that problem. Do you have a link so we can check it out?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Quotes without name after use 'PunBB Migration Tool'

Sure.

Here is a good example.

I installed several modifications, should this can be the cause?

Re: Quotes without name after use 'PunBB Migration Tool'

Well, modifications could interfere I guess, but I'm not sure. Unless someone is interested in debugging the problem, I think you're gonna have to live with this. At least it only affects the old posts. New posts will of course have the correct quote syntax.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Quotes without name after use 'PunBB Migration Tool'

Oh...

Thanks for trying to help.

Re: Quotes without name after use 'PunBB Migration Tool'

rapha... wrote:

I made the migration of a 'phpBB' database to 'PunBB', and the names in quotes (like: "Tommy wrote:") had disappeared.

Same problem for me. Maybe the problem is is that

phpBB => quote="Tommy"
punBB => quote=Tommy

Any suggestion or must I remove all quotes before starting the migration?

Also pools doesn't work: may it depends from the language of my forum (Italian)?

Thanks in advance.

7 (edited by elbekko 2006-12-29 00:30)

Re: Quotes without name after use 'PunBB Migration Tool'

It seems to me that the converter just strips out the names in quotes... but I could be wrong.

Re: Quotes without name after use 'PunBB Migration Tool'

Yes. The quote remains but with no author so

quote="Tommy" => quote

If I remove all the quotes from the original phpBB posts, the names will be correctly migrated?

Re: Quotes without name after use 'PunBB Migration Tool'

You could always fix the converter wink

Re: Quotes without name after use 'PunBB Migration Tool'

candyman wrote:

Same problem for me. Maybe the problem is is that

phpBB => quote="Tommy"
punBB => quote=Tommy

Actually, PunBB supports both.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

11 (edited by candyman 2006-12-29 16:12)

Re: Quotes without name after use 'PunBB Migration Tool'

I know, but the converter doesn't... tongue

Re: Quotes without name after use 'PunBB Migration Tool'

Let's see then...

In converters/phpBB open file _config.php and find

'[quote]',

Try replacing it with

'[quote=$1]',

I think they kinda forgot this in the converter tongue

Re: Quotes without name after use 'PunBB Migration Tool'

No way.
I?ve tried according to your mod but I get this strange code:

9a2d097bd0="Alessandro" wrote:

8d6cfb7db9="Maria" wrote:

I mean that the username now are OK but the code isn?t OK.
Another question: how can I change the word "wrote" in "ha scritto" according to the language (Italian) of my board?

Thanks!

Re: Quotes without name after use 'PunBB Migration Tool'

That's odd =/

And that should be in your language files wink

Re: Quotes without name after use 'PunBB Migration Tool'

If I remove the quotes

[quote="Alessandro"]=> [quote=Alessandro]

in the original phpBB posts before migrating, should I leave you mod

'[quote]', => '[quote$1]',

too?

Re: Quotes without name after use 'PunBB Migration Tool'

Can anyone help me, please?
I'd like to migrate from phpBB but, at the moment, I'll get all the quotes without author's name... sad

Re: Quotes without name after use 'PunBB Migration Tool'

I'll take a look

The quotatation marks aren't the issue, the issue is the regex used and the BBCode syntax. Does phpBB allow for

[quote]

tags (as in, quote tags without a name specified)?

Re: Quotes without name after use 'PunBB Migration Tool'

Thank you, Smartys!

In phpBB, the quotation code is like this:

[quote="candyman"]Post you want to quote[/quote]

with quotation marks around the nickname.
Using the Migration tool tha author's name is ignored and the citation is anonymous.

Re: Quotes without name after use 'PunBB Migration Tool'

I've sent you an email, since I'm finding it hard to post the code snippet

20 (edited by candyman 2007-01-03 20:19)

Re: Quotes without name after use 'PunBB Migration Tool'

No way.

Author's nick doesn't appear.
Only this:

wrote:

quoted post

It seems that

[quote="any username"]quoted post[/quote]

becomes

[quote=]quoted post[/quote]

sad

Re: Quotes without name after use 'PunBB Migration Tool'

So, I guess someone who is better with regexes than I am will need to take a look at this and tell me what I'm doing wrong tongue

The new search is:

'#\[quote:[a-z0-9]{10}=(.*?)\]#i',

And the new replace is:

'[quote=$2]',

I'm sure I'm missing something completely obvious tongue

22 (edited by candyman 2007-01-04 09:03)

Re: Quotes without name after use 'PunBB Migration Tool'

Maybe the recognition/migration of the quotes characters before and after the nickname can be the problem?

The standard in phpbb is:

[quote="nickname"]quoted post[/quote]

Hope this helps.

Re: Quotes without name after use 'PunBB Migration Tool'

Since PunBB supports both, why even bother converting? tongue
Just try removing those lines smile

Re: Quotes without name after use 'PunBB Migration Tool'

D'oh! big_smile

Please tell me what are the lines that, according to you, should I remove from the original _config.php file.
Then, I'll give a try.

Re: Quotes without name after use 'PunBB Migration Tool'

Bekko: IU believe the problem is that phpBB stores the BBCode something like this

[quote:a58714dfdf="Smartys"][/quote:a58714dfdf]

You need to strip out the :a58714dfdf bit, which is what I was attempting to do