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

Hrmm... give me a sec to install phpBB and I'll take a look smile

27 (edited by elbekko 2007-01-04 14:45)

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

Right, here goes then:

To replace:

'#\[quote\:(.+?)\="(.+?)"\](.+?)\[/quote\]#i'

Replacement:

'[quote=$2]$3[/quote]
'

Should do it smile

28 (edited by candyman 2007-01-04 20:08)

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

Well, maybe I made some errors but the problem remains... sad

Can you tell me exactly where to put these lines?
I've substituted to the corresponding ones in the original _config.php file but the strange characters before the author's name are still there...

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

Right, I see my above regex was a tad off. Anyway, I *think* this _config.php should do:
http://elbekko.pastebin.ca/305496

30 (edited by candyman 2007-01-04 23:48)

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

Thank you very much, elbekko: a very good work.

Unfortunately this mod works with perfectly-written post only.
I intend these:

[quote]Quoted text[/quote]
[quote="candyman"]Quoted text[/quote]

In my forum, not all the users are careful to style. Many report the full post they refer to, with all the bold, italics and also images.

I've noticed that every BBcode tag inside a quote generate an error. Smilies too.

For example:

[quote="candyman"][b]Quoted text[/b][/quote]

or:

[quote="candyman"][url=http://punbb.org]Quoted link[/url][/quote]

like double quotations:

[quote="candyman"][quote="elbekko]candyman's quoted text[/quote]
elbekko's quoted text[/quote]

generates the famous error:

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

Any ideas? In any case THANK you (and Smartys too) for your precious help: correctly styled post are correctly converted.

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

Errr... not really, I have no direct idea on how to put that into a nice regex... tongue

It'd be alot easier to make a regex that strips out any of that silly junk that phpBB adds. But that would need testing and won't be for today wink

Oh, and the converter sucks, it would probably be solved if every conversion was written like my search and replace tongue

32 (edited by candyman 2007-01-16 10:05)

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

candyman wrote:

I've noticed that every BBcode tag inside a quote generate an error. Smilies too.

I have to correct myself. Polishing the migrated post in the new punBB board from wrong codes (like: :a58714dfdf) the "tags in tags" runs OK, like in the phpBB original board: the problem, so, is during the migration only when the strange codes (:a58714dfdf) are added. The converter when founds a tag in tag post to migrate, add them and, of course, the migrated post appear with these additional characters.

Any suggestion will be greatly appreciated.

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

The codes are not added during the migration: phpBB puts them in. It filters them out when parsing, but they're in your database smile