Hi dochost,
Try adding the code below
PHP Code:
// Creating Pligg user
$url = 'http://www.domain.com/regjoom.php';
$params = "username=".$row->username."&email=".$row->email."&password=".$row->password;
$user_agent = "Mozilla/5.0 (compatible; MSIE 5.01; Windows NT 5.0)";
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$params);
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$result=curl_exec ($ch);
curl_close ($ch);
After:
PHP Code:
echo "\n<div>" . implode( "</div>\n<div>", $messagesToUser ) . "</div>\n";
Around line 1345 in file comprofiler.php.
This means that you also have to create the file regjoom.php containng this code:
PHP Code:
include_once('Smarty.class.php');
$main_smarty = new Smarty;
include('config.php');
include(mnminclude.'html1.php');
include(mnminclude.'link.php');
include(mnminclude.'smartyvariables.php');
include(mnminclude.'ts.php');
global $db, $current_user, $main_smarty, $the_template;
$username=$db->escape(trim($_POST['username']));
$password=$db->escape(trim($_POST['password']));
$userip=$_SERVER['REMOTE_ADDR'];
$saltedpass=generateHash($password);
$email=$db->escape(trim($_POST['email']));
if (!user_exists($username)) {
$db->query("INSERT INTO " . table_users . " (user_login, user_email, user_pass, user_date, user_ip) VALUES ('$username', '$email', '$saltedpass', now(), '$userip')");
}
Do not forget the <?php ?> tags.
Good luck!