PDA

View Full Version : PNphpBB importer beta testing notes



mtakacs
Tue 23rd Nov '04, 6:44pm
Jerry,
Thanks for putting together that importer for PNphpBB. I'll post my notes here instead of bombing you with PMs.

Jerry
Tue 23rd Nov '04, 7:31pm
Thanks, makes my life eaiser :) and the other PNphpBB users can see what is going on.

mtakacs
Wed 24th Nov '04, 9:52am
Well, I'm not entirely sure how to go about this, but maybe I'll see if it'll let me attach a diff. If not maybe a BBCODE code section will have to do.

So far:

+ fixed assorted typos
+ 000: wrote 2 functions to retrieve usernames/data/topics based on a post id
+ 003 User: imported the TimeZone offset
+ 003 User: filled in last-visit using last-activity field
+ 004 Forum: used new functions to fill in last topic, time and poster
+ 004 Forum: set daysprune to -1 (show all posts) instead of last 30
+ 005 Threads: used new functions to fill in latest poster and time
+ 005 Threads: import sticky and announcements as sticky

notes:
I know vB has announcements, but Im not entirely sure that phpBB announcements map well into the timed vB announcements, so I just mapped em into stickies.

Daysprune forums - manually setting all my forums to 'all posts' vs 'last 30 days' was annoying. But the changes required changing a hard-coded value in ImpExDatabase.php. I couldnt change the 'daysprune' in my scripts when the master function was hard coding the parameter.

I wanna write a 'rank to Custom Titles' mapper, but didnt get to it.

ps: the diff was taken against the contents of the systems/PNphpBB directory, the one with the 000.php-009.php files.

Jerry
Wed 24th Nov '04, 12:10pm
Looks intresting, will go through it. A few of the things I leave to the vBulletin board default opposed to import or let the update counters take care of, so it forces users to do it.

mtakacs
Sat 27th Nov '04, 8:08pm
Doing more hacking on these scripts

added 010.php ranks - Import PNphpBB ranks to User Ranks, dont make groups
added 011.php groups - Import PNphpBB user groups and put users in them

I've attached a .zip (rooted at impex/) with the replacement files. It'll be easier for you to dump those on top of a fresh CVS checkout and do a diff than it would be for me to actually post the diff. Tho I can just post diffs if you'd rather.

Still working on why my PM's get duplicated during import. After I figure that out, i think Im done messing around with ImpEx. :)

Zachery
Sat 27th Nov '04, 8:14pm
As per the license agreement it is illegal to distrabute whole files, You are welcome to send these changes to Jerry so that he can review them or you can provide the steps to change the files.

You would be best off posting the latter on vBulletin.org

Just so you know ranks can only be applied to all usergroups or one usergroup users cannot have multiple groups.

mtakacs
Sun 28th Nov '04, 12:33am
As per the license agreement it is illegal to distrabute whole files, You are welcome to send these changes to Jerry so that he can review them or you can provide the steps to change the files.


Oops. Sorry, thought these forums were restricted to licenced users only. I'll post diffs or send jerry my beta notes


Just so you know ranks can only be applied to all usergroups or one usergroup; users cannot have multiple groups.

VB Usergroups are a cleaner concept than phpBB groups.

phpBB Ranks --- VB User Ranks on 'all users' usergroup
phpBB groups --- VB Usergroups

The phpBB impex code I used was treating each phpBB User Rank as a new VB Usergroup, which didnt quite capture the intention of the User Ranks. My changes were to treat each phpBB User Rank as a VB UserRank for the 'all users' category.

Then I created VB Usergroups based on the PNphpBB usergroups and populate the new groups with the appropriate users.

Thanks for pointing out that i was bit unclear on the problem i was trying to solve, much less my solution.

mtakacs
Mon 29th Nov '04, 1:25am
I think Im finally happy with my importer changes.

I've sent a PM to Jerry to hopefully get my changes back into the beta converter, assuming he approves them

Jerry
Tue 30th Nov '04, 10:28pm
Yup all looking good, haven't forgotton about them.