Home arrow Forum
synchronize mambo to smf
  Welcome, Guest. Please login or register.
January 07, 2009, 09:28:30 PM
Home New Posts Search Calendar


Login with username, password and session length
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: synchronize mambo to smf « previous next »
Pages: [1] Go Down Print
Author Topic: synchronize mambo to smf  (Read 2288 times)
posto
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
synchronize mambo to smf
« on: July 04, 2005, 04:27:42 PM »

hello can I make this? or give does error ??

Code:
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
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: synchronize mambo to smf
« Reply #1 on: July 05, 2005, 12:23:52 PM »

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 Offline

Posts: 2


View Profile
Re: synchronize mambo to smf
« Reply #2 on: July 05, 2005, 07:17:32 PM »

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

Code:
}



$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  Grin
Logged
Pages: [1] Go Up Print 
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: synchronize mambo to smf « previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by MamboHacks.com. Powered by Mambo. All rights reserved.
TERMS OF USE