MyBB Community Forums

Full Version: Problem with MyBB Integrator
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I just installed Mybb Integration (MyBBI) to create an html / php to serve as an entry for the forum ...

So I create first a html form

<form method="POST" action="register.php">
<table width="100%">

<b>Pseudo</b>:<input type="text" name="username" value="<?=$_POST['username'];?>" />
<br /></td></tr>

<b><br/><br/>Mot de passe</b>:<input type="password" name="password" value="<?=$_POST['password'];?>" />
<br /></td></tr>

<b><br/><br/>Mot de passe</b>:<input type="password" name="password2" value="<?=$_POST['password2'];?>" />

<b>Email</b>:<input type="text" name="email" value="<?=$_POST['email'];?>" />

<b>Email</b>:<input type="text" name="email2" value="<?=$_POST['email2'];?>" />

<input type="submit" name="register" value="Inscription">


and I added below the code given by MyBBI

$info = array(
    'username' => $_POST['username'],
    'password' => $_POST['password'],
    'password2' => $_POST['password2'],
    'email' => $_POST['email'],
    'email2' => $_POST['email2'],
    'hideemail' => 1,
    'invisible' => 0,
    'receivepms' => 1
);

$register_status = $MyBBI->register($info);

// Array means: registering failed
if (is_array($register_status))
{
    echo implode('<br />', $register_status);
}
else
{
    echo $register_status;
} 

Unfortunately when I send the form, shows that the username and email address already exists but it's false Confused

Thank you for help

(Sorry for my bad english Dodgy)