2008-08-30, 12:20 PM
Can anyone help?
I have in root my portal (which i want to integrate with mybb) and in /forums/ i have mybb.
I put the
and of course nothing is working.
I have in root my portal (which i want to integrate with mybb) and in /forums/ i have mybb.
I put the
define("IN_MYBB", 1);
// set the path to your forums directory here (without trailing slash)
$forumdir = "/forums";
// end editing
$change_dir = "/forums";
if(!@chdir($forumdir) && !empty($forumdir))
{
if(@is_dir($forumdir))
{
$change_dir = $forumdir;
}
else
{
die("\$forumdir is invalid!");
}
}
require_once $change_dir."/global.php";
but when i print the $mybb->user i take:Array ( [usergroup] => 1 [username] => [uid] => 0 [displaygroup] => 1 [lastvisit] => 1220098510 [ismoderator] => )
and of course nothing is working.