################################################################################### Here is an example of the structure of the phpBB Posts table, as well as some variables to use, and the way those variables would translate into YaBB. There are a few elements of YaBB structure that I'm still trying to figure out, but I will replace them when I get them figured out. Be sure to have the Word Wrap turned off when viewing these structures. ################################################################################### phpBB - phpbb_posts `post_id` mediumint(8) unsigned NOT NULL auto_increment, `topic_id` mediumint(8) unsigned NOT NULL default '0', `forum_id` smallint(5) unsigned NOT NULL default '0', `poster_id` mediumint(8) NOT NULL default '0', `post_time` int(11) NOT NULL default '0', `poster_ip` varchar(8) NOT NULL default '', `post_username` varchar(25) default NULL, `enable_bbcode` tinyint(1) NOT NULL default '1', `enable_html` tinyint(1) NOT NULL default '0', `enable_smilies` tinyint(1) NOT NULL default '1', `enable_sig` tinyint(1) NOT NULL default '1', `post_edit_time` int(11) default NULL, `post_edit_count` smallint(5) unsigned NOT NULL default '0', ## An example of the way each entry will be laid out in a phpBB table, with all values replaced by variable names, is directly below ($post,$topic,$board,$userid,$time,$ip,$user,$bbcode,$html,$smilies,$sig,$edit_time,$edit_ct) ## The following format should be used to create $time.data for YaBB 1.x $topic|$user $board 0 ## The following format should be used to create $time.data for YaBB 2 $board 0 2 $user ## I'm not sure what the "0" in $time.data or $time.ctb is. I'll have to check on that. I am also not certain what the "2" is in $time.ctb. ################################################################################### Here is an example of the structure of the phpBB posts_test table, as well as some variables to use, and the way those variables would translate into YaBB. There are a few elements of YaBB structure that I'm still trying to figure out, but I will replace them when I get them figured out. ################################################################################### phpBB - phpbb_posts_text `post_id` mediumint(8) unsigned NOT NULL default '0', `bbcode_uid` varchar(10) NOT NULL default '', `post_subject` varchar(60) default NULL, `post_text` text, ## An example of the way each entry will be laid out in a phpBB table, with all values replaced by variable names, is directly below ($post,$bbcode2,$subject,$text) ## The following format should be used to create $time.txt for YaBB 1.x $subject|$screenname|$email|$time|$user|xx|0|$ip|$text||||| ## The following format should be used to create $time.txt for YaBB 2 $subject|$screenname|$email|$time|$user|xx|0|$ip|$text|||| ## The "xx" is the message icon used for the message. It should be set to "xx" as default, as I don't see any place that phpBB defines different message icons. There are quite a few variables in the phpBB tables that will not be used in YaBB (like $bbcode, etc.) A new line should be started for each reply, in the same format as the first line. These will need to be put together according to the $topic variable from phpBB. The filename of $time.txt in YaBB 1.x and YaBB 2 is determined by the $time variable from the original post in the topic. $screenname should be identical to $user when converting from phpBB to YaBB, as phpBB does not support differing screennames and usernames. ################################################################################### Here are examples of how the phpBB Users tables are set up, and how they will translate to YaBB. ################################################################################### `user_id` mediumint(8) NOT NULL default '0', `user_active` tinyint(1) default '1', `username` varchar(25) NOT NULL default '', `user_password` varchar(32) NOT NULL default '', `user_session_time` int(11) NOT NULL default '0', `user_session_page` smallint(5) NOT NULL default '0', `user_lastvisit` int(11) NOT NULL default '0', `user_regdate` int(11) NOT NULL default '0', `user_level` tinyint(4) default '0', `user_posts` mediumint(8) unsigned NOT NULL default '0', `user_timezone` decimal(5,2) NOT NULL default '0.00', `user_style` tinyint(4) default NULL, `user_lang` varchar(255) default NULL, `user_dateformat` varchar(14) NOT NULL default 'd M Y H:i', `user_new_privmsg` smallint(5) unsigned NOT NULL default '0', `user_unread_privmsg` smallint(5) unsigned NOT NULL default '0', `user_last_privmsg` int(11) NOT NULL default '0', `user_emailtime` int(11) default NULL, `user_viewemail` tinyint(1) default NULL, `user_attachsig` tinyint(1) default NULL, `user_allowhtml` tinyint(1) default '1', `user_allowbbcode` tinyint(1) default '1', `user_allowsmile` tinyint(1) default '1', `user_allowavatar` tinyint(1) NOT NULL default '1', `user_allow_pm` tinyint(1) NOT NULL default '1', `user_allow_viewonline` tinyint(1) NOT NULL default '1', `user_notify` tinyint(1) NOT NULL default '1', `user_notify_pm` tinyint(1) NOT NULL default '0', `user_popup_pm` tinyint(1) NOT NULL default '0', `user_rank` int(11) default '0', `user_avatar` varchar(100) default NULL, `user_avatar_type` tinyint(4) NOT NULL default '0', `user_email` varchar(255) default NULL, `user_icq` varchar(15) default NULL, `user_website` varchar(100) default NULL, `user_from` varchar(100) default NULL, `user_sig` text, `user_sig_bbcode_uid` varchar(10) default NULL, `user_aim` varchar(255) default NULL, `user_yim` varchar(255) default NULL, `user_msnm` varchar(255) default NULL, `user_occ` varchar(100) default NULL, `user_interests` varchar(255) default NULL, `user_actkey` varchar(32) default NULL, `user_newpasswd` varchar(32) default NULL, `user_trophies` int(10) NOT NULL default '0', `ina_cheat_fix` int(100) NOT NULL default '0', `ina_games_today` int(10) NOT NULL default '0', `ina_last_visit_page` varchar(255) NOT NULL default '', `ina_game_playing` int(10) NOT NULL default '0', ## An example of the way each entry will be laid out in a phpBB table, with all values replaced by variable names, is directly below ($userid,$useract,$username,$pass,$session_time,$session_page,$lastvisit,$reg,$lvl,$posts,$time,$style,$lang,$date,$newpm,$unpm,$lastpm,$emailtime,$viewemail,$attachsig,$html,$bbcode,$smilie,$allowav,$allowpm,$visible,$notify,$notifypm,$popuppm,$rank,$av,$avtype,$email,$icq,$web,$from,$sig,$sigcode,$aim,$yim,$msn,$occ,$interest,$actkey,$newpass,$trophies,$cheatfix,$games_today,$lastpage,$currentgame) ## The following format should be used to create $username.dat for YaBB 1.x $pass $username $email $sitename $web $sig $posts $rank $icq $aim $yim - - $av $reg $from $date $time - - - ## Everywhere I have indicated a hyphen, that should be a blank line. They are YaBB variables that are not defined within phpBB. ## The following format should be used to create $username.vars for YaBB 2 ### User variables for ID: $username ### 'password',"$pass" 'realname',"$username" 'email',"$email" 'regdate',"$reg" 'webtitle',"$sitename" 'weburl',"$web" 'signature',"$sig" 'postcount',"$posts" 'position',"$rank" 'addgroups',"" 'icq',"$icq" 'aim',"$aim" 'yim',"$yim" 'gender',"" 'usertext',"I just love YaBB 2!" 'userpic',"$av" 'regtime',"$reg" 'location',"$from" 'bday',"" 'timeselect',"6" 'timeoffset',"" 'timeformat',"$date" 'hidemail',"$visible" 'msn',"$msn" 'template',"default" 'language',"$lang" 'lastonline',"1106815229" 'lastpost',"1105634410" 'lastim',"" 'im_ignorelist',"" 'im_notify',"$notifypm" 'im_popup',"$popuppm" 'im_imspop',"" 'cathide',"" 'postlayout',"" 'session',"mTqqyx/hpApOGYNstoPRcA" 'sesquest',"password" 'sesanswer',"$pass" 'favorites',"" 'dsttimeoffset',"" 'pageindex',"1|1|1"