2010-03-05, 04:04 AM
I want to integrate login in MyBB with several pages on my site.
I mean, user should login in forum, but when, after this he goes out to a specific page, script of that page should get his id.
I found http://phpdave.com/MyBBIntegrator but it is seems to be overkill for me.
Is there a way to solve my problem without including forums scripts (without require_once 'forum/global.php')?
Isn't it just few code lines?
1. I changed cookie path to "/"
2. Then I should start session/
3. Then I should get this session variable with user's id . Or is it in the cookie?
In what session or cookie variable userid is stored?
I mean, user should login in forum, but when, after this he goes out to a specific page, script of that page should get his id.
I found http://phpdave.com/MyBBIntegrator but it is seems to be overkill for me.
Is there a way to solve my problem without including forums scripts (without require_once 'forum/global.php')?
Isn't it just few code lines?
1. I changed cookie path to "/"
2. Then I should start session/
3. Then I should get this session variable with user's id . Or is it in the cookie?
In what session or cookie variable userid is stored?