well, i try it again today..
at least one of problem has been solved, it's very strange though.
i already succesfully add a new user now, when a user register from my website so it's automatically register at the punbb forum too.
problem i had before is the password that seems can't work. i already used the function forum_hash and random_key that i took from function.php in punbb to use it for the user password, but i cannot login.
but when i change to encryption only with md5, it suddenly work.
so my query in my web site looks like this..
@require_once 'punbb/include/functions.php';
$salt = random_key(12);
$registered = time();
$registration_ip = $_SERVER['REMOTE_ADDR'];
$last_visit = time();
@mysql_query("INSERT INTO `punbb_users` (`username`,`group_id`,`password`,`email`,`email_setting`, `timezone`,`dst`,`language`,`style`,`registered`,`registration_ip`,`last_visit`,`salt`,`activate_key`) VALUES ('".$_POST[username]."','3','".md5($_POST[password])."','".$_POST[email]."','1','7','1','English','Oxygen','".$registered."','".$registration_ip."','".$last_visit."','".$salt."',NULL)") or die(mysql_error());
my code before that can't work look like this
@require_once 'punbb/include/functions.php';
$salt = random_key(12);
$password_hash = forum_hash($_POST[password],$salt);
$registered = time();
$registration_ip = $_SERVER['REMOTE_ADDR'];
$last_visit = time();
@mysql_query("INSERT INTO `punbb_users` (`username`,`group_id`,`password`,`email`,`email_setting`, `timezone`,`dst`,`language`,`style`,`registered`,`registration_ip`,`last_visit`,`salt`,`activate_key`) VALUES ('".$_POST[username]."','3','".$password_hash."','".$_POST[email]."','1','7','1','English','Oxygen','".$registered."','".$registration_ip."','".$last_visit."','".$salt."',NULL)") or die(mysql_error());
just wonder what happen there...
and my error problem with the redirect url still can work it out.
that error messages still appearing..just wonder how can i fixed it?
my url is like this
punbb/login.php?form_sent=1&req_username=jokowi&req_password=1234
and i change the code in function.php with this
if (isset($_REQUEST['form_sent']) && empty($action))
{
$form_username = forum_trim($_REQUEST['req_username']);
$form_password = forum_trim($_REQUEST['req_password']);
i only change $_POST to $_REQUEST....