MyBB Community Forums

Full Version: MyBB Integrator / MyBB SDK (Version 1.3)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
The thing is that chdir is not needed at all :/
(2009-03-28, 10:09 PM)No0oB Wrote: [ -> ]The thing is that chdir is not needed at all :/
Then why use it?
I am not using it. I am the guy saying that it is not needed Toungue
If you take a look at the example inclusion code at Coding Help, you can see that I don't use chdir
Well why did you include it then?Confused Sorry, I'm a bit confused on that..
I really don't get your problem =/
What are we discussing now?...
Anyway, I installed a small comment system - so you may leave direct feedback there!
Version 1.1 available, with an integrated permission check
http://phpdave.com/MyBBIntegrator/Start
Hi,

Fist of all i am happy that i found mybb. I really like it. And thanks for No0oB for this class.

I have a little problem.

The link between the test.php and the forum works but there is an error about the username and password. (class.MyBBIntegrator.php is the latest version and the mybb installation is the default one)

Here it is my test.php content: (in the same folder with the forum and the class)

<?php
define('IN_MYBB', NULL);
require_once 'global.php';
require_once 'class.MyBBIntegrator.php';
$MyBBI = new MyBBIntegrator($mybb, $db, $cache, $plugins, $lang); 

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

$register_status = $MyBBI->register();

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

But the answer from the forum is:

You did not enter a username. Please enter one.
The password you entered is of invalid length. Please enter a password between 6 and 30 characters.
You did not enter an email address. Please enter one.

Can you help me, please ?

Thank you.
You should pass the $info array as a parameter....
$register_status = $MyBBI->register($info);

Otherwise it doesn't know what to work with Wink
thank you. i will try it.

Later edit: It worked.

Thank you my friend.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15