2014-11-02, 04:45 PM
Version 1,8
I've done MyBB Integration numerous times before, but it's been a few months, so I don't know if I'm doing something wrong, or if there is just something wrong in general.
At first I was using the old method:
However, I couldn't get that to work, so I decided to give MyBBIntegrator a whirl.
Still no luck, always returning false.
I've done MyBB Integration numerous times before, but it's been a few months, so I don't know if I'm doing something wrong, or if there is just something wrong in general.
At first I was using the old method:
<?php
chdir("./forum/"); // path to MyBB
define("IN_MYBB", 1);
require("./global.php");
chdir("../");
if(mybb->user['uid']) {
echo "Logged in";
} else {
echo "Not logged in";
}
?>
However, I couldn't get that to work, so I decided to give MyBBIntegrator a whirl.
<?php
define('IN_MYBB', NULL);
global $mybb, $lang, $query, $db, $cache, $plugins, $displaygroupfields;
require_once './forum/global.php';
require_once './inc/class.MyBBIntegrator.php';
$MyBBI = new MyBBIntegrator($mybb, $db, $cache, $plugins, $lang, $config);
if($MyBBI->isLoggedIn()) {
echo "You're logged on.";
} else {
echo "You're not logged in";
}
?>
Still no luck, always returning false.