Hello!
I am trying to bind 2 systems, Mambo and XMB Forums.
Below, I am trying to make a chunk of code to put after the registration to mambo (content management website (website-in-a-box)) thats sole dudy is to place new registration data into the XMB (message-forum-in-a-box) tables to create a new user. When I run it, I get a blank screen.
Here is the code...
Here is the website I am testing at...
Muzaicsound.com/server
anyone that has ideas.. any help is WAY appreciated!!!
Thanks in advance!!!
Thank you!!!
Mike Kovacic
""" """
(o) (O)
\____/
I am trying to bind 2 systems, Mambo and XMB Forums.
Below, I am trying to make a chunk of code to put after the registration to mambo (content management website (website-in-a-box)) thats sole dudy is to place new registration data into the XMB (message-forum-in-a-box) tables to create a new user. When I run it, I get a blank screen.
Here is the code...
Code:
If ($option = 'com_egistration' ){
echo 'Creating Forum Membership..<br>';
include_once ('header.php');
echo 'Setting variables..<br>';
$vUsername = $username ;
$vPassword = $password ;
$myDate = $db->time(time());
$vEmail = $email ;
echo 'connection to database..<br>';
$db->connect($dbhost, $dbuser, $dbpw, $dbname, $pconnect, true);
echo 'Writing membership data..<br>';
$db->query("INSERT INTO ".$tablepre."members (username, password, regdate, email, status, showemail, theme, langfile, timeformat, dateformat, mood, pwdate, tpp, ppp, saveogu2u, emailonu2u, useoldu2u) VALUES ('$vUsername', '$vPassword', $myDate, '$vEmail', 'Member', 'no', '0', 'English', 24, 'dd-mm-yyyy', '', $myDate, 30, 30, 'yes', 'no', 'no');");
echo 'DONE!';
exit();
}
Here is the website I am testing at...
Muzaicsound.com/server
anyone that has ideas.. any help is WAY appreciated!!!
Thanks in advance!!!
Thank you!!!
Mike Kovacic
""" """
(o) (O)
\____/