MyBB Community Forums

Full Version: Don't see the logged users
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone!
I have a really big problem and i don't know what I must to do. I Integrated my website and forum with class integrator and this worked. But it stopped work and i don't know why.

I'm not only one administrator in forum. In configuration may do something to stop integrate? Upgrade, settings whatever? Or maybe I do something in my code in website what can influence the integration of? Because I changed nothing in the code integration. 

I need help  Huh

website: www.theroyalfive.com
forum: www.theroyalfive.com/forum

This is my code:

​define('IN_MYBB', NULL);
require_once './forum/global.php';
include ("./forum/class.MyBBIntegrator.php");
require_once MYBB_ROOT.'inc/class_parser.php';
$MyBBI = new MyBBIntegrator($mybb, $db, $cache, $plugins, $lang, $config);

Integration is working good. When i used:

​$login_status = $MyBBI->login("xxxx", "xxxx"); 
I'm logged into the board.

But when i used:

​echo ($MyBBI->isLoggedIn()) ? 'You are logged in' : 'You are not logged in'; 
if(!$mybb->user['uid'])
	echo "You are not logged in";
else
	echo "You are logged in";

I get 2x"You are not logged in".

I set:
cookiedomain : .theroyalfive.com
cookiepath : /forum/

So what is wrong?  Where can I search the problem?  
Any tips will be very helpful. I really don't know what i can to do   Sad

Dear Users please help !
can you try / for the cookie path (as it needs to work for the main domain)
(ref)
Sorry but I don't understand. What this mean?
Cookiepath have / on left and right
^ just / (not /forum/) - it might need clearing cookies of your browser for forum
(2014-08-28, 07:59 AM).m. Wrote: [ -> ]^ just / (not /forum/) - it might need clearing cookies of your browser for forum

I wish it worked but it don't work.
I set cookiepath to : "/" and clean cookies in browser. 
Any other solution?

I try:
cookiepath: "/", "", "/forum", "/forum/"
cookiedomain : ".theroyalfive.com" , "theroyalfive.com"

EDIT
--------------------------------------------------------------------------
It works but....

I copy my website to folder where is the forum but is weak solution. My domain looks: theroyalfive.com/forum/...

So this is problem with global cookie settings yes? Where and how i can change the global cookie settings? 


EDIT
--------------------------------------------------------------------------

I a little change the function to set cookie in integrator class and it works.