Welcome Guest, Not a member yet? Register   Sign In
phpBB bridge: Having incredible difficulty making it work.
#4

[eluser]Tweakin[/eluser]
I've just recently started a project that is making use of phpBB integration. We are using the phpbb_library as a base and extending upon it to better fit our needs.

Try this example controller, it should work with phpbb_library out of the box.

Code:
class Sample extends Controller
{
    public function __construct()
    {
        parent::Controller();
        $this->load->database();
        $this->load->library('session');
        $this->load->library('phpbb_library');
    }
    
    public function index()
    {
        if ($this->phpbb_library->isLoggedIn() === TRUE)
        {
            echo 'You are logged in.';
        }
        else
        {
            echo 'You are not logged in.';
        }
    }
}

You do have to manually edit the phpbb_library constructor to ensure it is pointing to your forum's correct path (path not url).

Table prefixes should not matter for what you are doing. Having the site/forums on separate database will require a few tweaks, but it sounds like you have them both in one database.


Messages In This Thread
phpBB bridge: Having incredible difficulty making it work. - by El Forum - 01-10-2010, 12:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB