Anyway, this is what I've been dealing with today
define('IN_PHPBB', true);With something like that (the above is just some example code from phpBB), it should be possible to have two sites share the same login simply by using
define('ROOT_PATH', "/path/to/forums");
if (!defined('IN_PHPBB') || !defined('ROOT_PATH')) {
exit();
}
$phpEx = "php";
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : ROOT_PATH . '/';
include($phpbb_root_path . 'common.' . $phpEx);
$user->session_begin();
$auth->acl($user->data);
$auth->login($username, $password, $remember, 1, 0)
Not getting it to work is incredibly frustrating. Ended up with a complete rewrite that somewhat worked, but not the way I wanted it to.
Looks like the plan to have forums separate from rest of site will simply have to wait a bit longer. Getting a kick-ass forum up and running at the moment, developed pretty much from scratch, using some basic code from a flat forum I already had laying around. Have so far added categories, subforums, attachments, polls, like/dislike buttons, extra bbcode functionality and some other small stuff. In addition I'm almost done with the administration panel for forum staff. Still quite a bit to go before being finished though. Once the forums are actually done, I'll probably go back to working on separating them from the rest of my site so that forums can be completely independent registrations from the main parts.
Anyway, that was my boring day today. This is what happens when I have nothing to do.
You really are a nerd. Just felt the need to point it out ... again ;)
ReplyDelete