• 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

Trouble with integration on MyBB

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

Post a reply
1 post • Page 1 of 1

Postby onfbooz » Mon Sep 17, 2012 4:59 am

Hi there, i think, i've some trouble with integrated with MyBB. when i change index with this one http://www.phpfreechat.net/forum/viewtopic.php?id=5033

<?php
define("IN_MYBB", 1);

// use this require if you mybb is sitting at forum folder
//require_once ($_SERVER{'DOCUMENT_ROOT'}."forum/global.php");

// use this require if mybb is sitting at the root of the server folder.
require_once ($_SERVER{'DOCUMENT_ROOT'}."/global.php");

if(isset($mybb->user['username']) && $mybb->usergroup['title'] !== "Unregistered")
{
$username= $mybb->user['username'];
}
else
{
$username= "";
}

require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "Quick chat";
$params["nick"] = $username;//"guest".rand(1,1000); // setup the intitial nickname
$params["isadmin"]= $mybb->usergroup['title'] == "Administrators" ? TRUE : FALSE;
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["debug"] = false;
$chat = new phpFreeChat( $params );

?>

But it's nothing happen, i still loggon guest. MyBB has installed on "http://www.example.com/forum/" , and phpFreechat on"http://chat.example.com". What is i must to change for this issue?

Thank you for your information
onfbooz
New member
 
Posts: 1
Joined: Mon Sep 17, 2012 4:35 am
Top

Post a reply
1 post • Page 1 of 1

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
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub