Re: Quotes without name after use 'PunBB Migration Tool'
Hrmm... give me a sec to install phpBB and I'll take a look
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → Quotes without name after use 'PunBB Migration Tool'
Hrmm... give me a sec to install phpBB and I'll take a look
Right, here goes then:
To replace:
'#\[quote\:(.+?)\="(.+?)"\](.+?)\[/quote\]#i'
Replacement:
'[quote=$2]$3[/quote]
'
Should do it
Well, maybe I made some errors but the problem remains...
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...
Right, I see my above regex was a tad off. Anyway, I *think* this _config.php should do:
http://elbekko.pastebin.ca/305496
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.
Errr... not really, I have no direct idea on how to put that into a nice regex...
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
Oh, and the converter sucks, it would probably be solved if every conversion was written like my search and replace
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.
The codes are not added during the migration: phpBB puts them in. It filters them out when parsing, but they're in your database
PunBB Forums → PunBB 1.2 troubleshooting → Quotes without name after use 'PunBB Migration Tool'
Powered by PunBB, supported by Informer Technologies, Inc.