by m0loch » Mon Jun 15, 2009 10:11 am
results of version 1.2 can currently (as of 6/15/09) be previewed under the "testing" forum (only for privileged users)
New Features:
added 2 functions:
one matches an iceboard username to an AM username and if there is a match, updates the imported post 'poster_id' with the proper AM 'user_id' - else, sets the user-id to '1' "Anonymous" and preserves the 'poster_name' *any imported posts attributed to "Anonymous" or "Guest" from iceboard will belong to user "Iceboard" on AM*
one simply grabs an iceboard username from 'phpbb_users' using the 'poster_id' from 'phpbb_posts' - this is then passed to the other function as a parameter.
used a mysql query UPDATE to grab the timestamp from the iceboard post and insert it into the AM post - solved the timestamp thing and the post/thread ordering problem
holy cow! a mysql query! - seems this can be used for many other things too...namely fetching the proper bbcode info and passing it to phpbb's submit_post as part of the $data array - bbcode (quotes/urls etc..) are now displaying (mostly) properly - hurray! - oh, and even better - can now run the script without having to open the forum up to be world writeable - use mysql query to also set the 'post_approved' field to '1' - still requires a resync of the forum via the ACP but this was needed anyhow to make the timestamps work.
in my head, I have it sorted how to solve the hierarchy thing....pretty easy actually, just need to go about setting the forums up to be imported into.
to do:
There are many "Guest" posts - get the user id and associated username from iceboardand replace "Guest" with a name
Link usernames from iceboard to usernames on this board and update posts with the correct userid
restore original timestamps on posts
make forum read/write for registered users
restore iceboard forum hierarchy here (not likely to actually happen) - Actually, this won't be as tough to do as originally thought.
match usernames from iceboard to usernames on Antarctic memories
in case a user from iceboard is also here, but under a different username, convert the iceboard username to the Antarctic memories username - partially complete - known users have been converted. IF YOU HAD AN ACCOUNT ON ICEBOARD PLEASE LET ME KNOW WHAT THE USERNAME WAS AND I'LL MATCH UP POSTS FROM THERE WITH YOUR USERNAME HERE (if it's different - and yes, username matches are case sensitive)
further scrutiny of the iceboard username - matching both the "username_clean" column and "user_email" fields from the databases