synchronize mambo to smf
Welcome, Guest . Please login or register .
January 07, 2009, 09:28:30 PM
Pages: [1 ]
Author
Topic: synchronize mambo to smf (Read 2288 times)
posto
Newbie
Karma: +0/-0
Offline
Posts: 2
hello can I make this? or give does error ??
function insertToMambo2($data, $password) { global $database, $my, $acl; $row = new mosUser( $database ); $user['username'] = $data->realName; $user['username'] = $data->memberName; $user['email'] = $data->emailAddress; $user['password'] = $password;
Logged
cowboy
Are you asking if you can make that code change? No, you can't. You need to assign the "name".
Logged
posto
Newbie
Karma: +0/-0
Offline
Posts: 2
thanks, I find the correct place. I wil not that the realname is indicated in the forum. my user know registry onli on the mambo site
} $query = "" ." INSERT INTO {$smf_prefix}members (realName, memberName, emailAddress, passwd, dateRegistered, hideEmail)" ." VALUES ('$row->username','$row->username','$row->email','".md5_hmac($password, strtolower($row->username))."',UNIX_TIMESTAMP('".$row->registerDate."'), '$hideemail')"; $database->setQuery($query); if (!$database->query()) { mosRedirect("index.php?option=com_smf&task=login&mosmsg=".$mosLang->MSG_CANNOT_COPY_USER_TO_SMF);
thanks from svizzerland
Logged
Pages: [1 ]