3
« on: May 31, 2008, 04:11:55 AM »
Well, how difficult would it be to make one? Maybe that could be something to add to the next version? Here's what I have in mind...
Create a file that would act as a configuration file. Make an array that contains database information several boards, so that when you go to the "Member Database" options in the ACP you could select the board type you want from a drop menu list, which would select the appropriate section of the array. Here's an example:
<?
global $def_system;
$def_system = array(
'1' => array(
'system' => 'Invision Power Board',
'table' => 'ibf_members',
'id' => 'id',
'name' => 'name',
'email' => 'email'
),
'2' => array(
'system' => 'PHPBB 2',
'table' => 'phpbb_users',
'id' => 'user_id',
'name' => 'username',
'email' => 'user_email'
),
'3' => array(
'system' => 'Simple Machines Forum',
'table' => 'smf_members',
'id' => 'ID_MEMBER',
'name' => 'memberName',
'email' => 'emailAddress'
),
'4' => array(
'system' => 'MyBB',
'table' => 'mybb_users',
'id' => 'uid',
'name' => 'username',
'email' => 'email'
),
'5' => array(
'system' => 'Vbulletin',
'table' => 'user',
'id' => 'userid',
'name' => 'username',
'email' => 'email'
)
);
?>
In other words, each one of these options would select the appropriate database tables and information that 4Images needs to use, from whatever database you associate the program with. That would have to be done in the usual way, by setting up the config.php file. You may have to install the 4Images tables in the forum's database, but I see no problem there...
What do you think?