PDA

View Full Version : phpBB import woes (keeping HTML and Guest users)


koreanwalker
Wed 22nd Nov '06, 11:38pm
Hello, I'm currently doing a move from phpBB2 to vB3.6 but I'm running into a couple problems.

First, is it possible to have impex not parse out html. The old forum required heavily on the use of html and having all the <img> tags kinda stripped out hurts.

Second, and more importantly, the old forum allowed for guesting posting. WHen I import the board, all guest posts (regardless of what their names where), get their author changed to annymous (which becomes a registered user). I absolutely need to maintain the names and guest status of all those authors. Anyone know how?

Steve Machol
Wed 22nd Nov '06, 11:42pm
1. No sorry, I don't think there is any way to do this. If there is, Jerry will correct me.

2. I am not aware of the guest posts names being changed like this but if it is happening then that's by design. Changing this would require modifying the Impex code.

koreanwalker
Wed 22nd Nov '06, 11:56pm
Supposedly it was fixed.
In an old thread,
http://www.vbulletin.com/forum/showthread.php?t=201318&highlight=phpbb+Anonymous
another user mentioned his problem with this and jerry proposed some new code to be used to fix it. That was from like four years ago, and I checked the current ImpEx code base and that code already exists, so mabbe I'm just doing something wrong. But I cant seem to figure it out. During one of my practice imports, I had it working, but now I cant seem to recreate what I did (blasted me for now writing down step by step what I did through that one half successful middle run of test).

Jerry
Thu 23rd Nov '06, 6:15pm
Try importing the users, then deleting the anon user then importing the posts.

To stop HTML parsing you'll have to edit the code.

Lines 148 and 157 of impex/systems/phpBB2/009.php are :


$try->set_value('nonmandatory', 'pagetext', $this->html_2_bb($this->phpbb_html($post['post_text'],$truncated_smilies)));


edit them to be :


$try->set_value('nonmandatory', 'pagetext', $post['post_text'],$truncated_smilies);