• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ phpBB, Simple Machines Forum (SMF), and Forum Software (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Integration with phpBB3

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
17 posts • Page 2 of 2 • 1, 2

Re: Integration with phpBB3

Postby songsmith » Fri Aug 09, 2013 2:16 am

May I piggyback on this thread as well?

I'm trying to add the phpBB integration to my chat. My forums are in /forums, my chat in /forums/chat

Without the integration, the chatroom runs fine. When I try to add the integration, I *do* get a check against login and redirect if not, but come to load the actual chat and I get this:

[phpBB Debug] PHP Warning: in file [ROOT]/chat/src/pfcuserconfig.class.php on line 24: session_start(): open(/var/php_sessions/sess_457b2823d70917c9dcb5d58fbc7b3a2f, O_RDWR) failed: No such file or directory (2)
[phpBB Debug] PHP Warning: in file [ROOT]/chat/src/pfcuserconfig.class.php on line 24: session_start(): Cannot send session cache limiter - headers already sent (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file Unknown on line 0: Unknown: open(/var/php_sessions/sess_457b2823d70917c9dcb5d58fbc7b3a2f, O_RDWR) failed: No such file or directory (2)
[phpBB Debug] PHP Warning: in file Unknown on line 0: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions)


My code's basically copy-pasted out of the FAQ's; I've done some php but I'm too rusty to trust myself with this.
Code: Select all
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
require($phpbb_root_path . 'common.' . $phpEx);
 
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
 
if ($user->data['user_id'] == ANONYMOUS)
{
    login_box('', $user->lang['LOGIN']);
}
?>
<?php

require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "Quick chat";
$params["nick"] = $user->data['username_clean'];
$params['firstisadmin'] = true;
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["debug"] = false;
$chat = new phpFreeChat( $params );

?>


So what the heck just happened?
songsmith
New member
 
Posts: 1
Joined: Fri Aug 09, 2013 2:07 am
Top

Re: Integration with phpBB3

Postby bradleycooper » Mon Aug 26, 2013 10:01 am

Thank's. It was useful for me.
bradleycooper
New member
 
Posts: 1
Joined: Mon Aug 26, 2013 9:55 am
Top

Previous

Post a reply
17 posts • Page 2 of 2 • 1, 2

Return to phpBB, Simple Machines Forum (SMF), and Forum Software (v1.x)

Who is online

Users browsing this forum: No registered users and 7 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub