7
I'm trying to integrate Flashchat (latest version) with XOOPS 2.2.3. (yes, I used the integration method as prescribed for XOOPS 2.0.7. Flashchat is working on my site)
However:
When I open chat/flashchat.php in a separate window or if I use an <iframe> to show Flashchat on one of my pages, it doesn't log me in automatically.
After several hours of trying I seem to have narrowed it down to these lines in xoopsCMS.php:
Quote:
function isLoggedIn() {
global $xoopsUser;
return $xoopsUser?$xoopsUser->getVar('uid'):null;
}
The reason I am saying that is:
- If I use "return 3" (with 3 being a valid userid) the user with ID 3 is logged in automatically. Therefore it seems everything past this step is going ok.
- If I use isObject($xoopsUser) it doesn't return an object, making me suspect XOOPS isn't getting the object.
However, I can't figure out how to get the user id from XOOPS correctly. I tried using 4-5 different methods; none of those seem to work though.
I'm hoping someone here (that implemented it succesfully) will know what's going wrong!