MyBB Community Forums

Full Version: ACP not logging in
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, so I installed mybb in a folder and I want to show the username on my main page. So I searched and searched and then I found log in script so I changed my cookie settings to / instead of /forum/ and now when I log in to ACP and then go to like configuration. I have to log in again but I cant it stays. I have seen many that say change it back to /forum/ but I want to show the users username on my main index page I found something like this

if($mybb->user['uid'])
{
echo "Your username is {$mybb->user['username']}!";
}
else
{
echo "Youa re a guest!";
}

I tried . I am logged in as admin but it says guest so how can I fix that. And if the cookie part is needed for the script to work then how can I leave the cookied like that and make the script work.