Hello,
I'm trying to tie my forum in to the IDs of modx but using the modUser object doesn't seem to want to change the ID or internalKey.
I'm using several systems and databases and all need to relate up to the same ID throughout. One system is SMF, I want to match up the users from SMF to MODx and an online voice communication service. I need this stop gap till Discuss comes out then my life will be easier from there.
I've tried the following and it doesn't allow you to change IDs.
$first_name = 'test';
$userID = 22;
$user = $modx->newObject('modUser', array ('username'=>$first_name, 'id'=>$userID));
$userProfile = $modx->newObject('modUserProfile');
$userProfile->set('fullname',$first_name);
$userProfile->set('email',$email);
$userProfile->set('id',$userID);
$userProfile->set('internalKey',$userID);
Any advice would be great.