• 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

phpbb integration

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

Post a reply
36 posts • Page 1 of 3 • 1, 2, 3

Postby Alexey » Mon Jan 22, 2007 2:58 am

The phpbb integration described in the FAQ does not work in my environment. According to phpbb knowledge base the define('IN_PHPBB', true); must be the first line in a script. So I decided to not use the session stuff and use phpbb sessions management instead. This also results in additional functionality - users have not to save their passwords (the sample from FAQ assumes that user saves his/her password while phpbb logon, but this is not good for me - my users don't like to save their passwords in forum, but they wish to use the chat).
Here is the result:
Code: Select all
define('IN_PHPBB', true);
$phpbb_root_path = '../forum/'; //Root to phpBB
$chat_root_phpbbrealtive_path = '../phpfreechat/'; //Root to chat relative to phpBB root ;)
include( $phpbb_root_path . 'extension.inc' );
include( $phpbb_root_path . 'common.' . $phpEx );

$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);

if ( !$userdata['session_logged_in'] ) //redirect to phpBB logon page if the user is not logged in
{
  redirect(append_sid($phpbb_root_path . "login.$phpEx?redirect=" . $chat_root_phpbbrealtive_path . "index.$phpEx", true));
}

//
//classique phpfreechat parameter list
//

require_once "src/phpfreechat.class.php";
$params["serverid"]          = md5(__FILE__);
$params["nick"]              = iconv("windows-1251", "UTF-8", $userdata[username]);

Some comments to make things more clear:
1.
Code: Select all
$phpbb_root_path = '../forum/';

path to the root of phpBB relative to the current file (index.php).

2.
Code: Select all
$chat_root_phpbbrealtive_path = '../phpfreechat/';

path to the root of phpfreechat relative to phpBB root.
The sample assumes you have the following directory structure on your server:
..
/forum
/phpfreechat

3.
Code: Select all
if ( !$userdata['session_logged_in'] ) //redirect to phpBB logon page if the user is not logged in
{
  redirect(append_sid($phpbb_root_path . "login.$phpEx?redirect=" . $chat_root_phpbbrealtive_path . "index.$phpEx", true));
}

The code redirects user to the phpBB logon page if user is not logged in to the phpBB (in fact if user does not save his/her password inside phpBB). This page path (relative to phpBB root) is passed as 'redirect' param, so user will be redirected back to the PHPFreeChat's index.php after logging in to the phpBB.

4.
Code: Select all
$params["nick"]              = iconv("windows-1251", "UTF-8", $userdata[username]);

Do not forget to convert user names you got from phpBB to UTF-8 encoding, so the names are displayed correctly in the chat window.
Last edited by Alexey on Mon Jan 22, 2007 3:07 am, edited 1 time in total.
Alexey
New member
 
Posts: 1
Joined: Mon Jan 22, 2007 1:44 am
Location: Russia
Top

Postby phpfreechat » Mon Jan 22, 2007 8:57 am

Nice contribution.
I will certainly update the FAQ to take your solution which is more elegant.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby phpfreechat » Tue Jan 23, 2007 8:02 pm

I updated the FAQ.
Thank you and feel free to comment what I wrote in the FAQ.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby cbisson » Wed Feb 14, 2007 4:49 pm

I used this code to get the username, and it always redirects to the index page of phpbb and I even removed the if ( !$userdata['session_logged_in'] ) so it wouldn't redirect and it still does, even if I am logged in!!
cbisson
New member
 
Posts: 2
Joined: Thu Feb 08, 2007 3:32 pm
Top

Postby 3ASV467 » Wed Jun 20, 2007 9:27 am

Can the user change their name back?
Can we stop the to changing their name?
3ASV467
New member
 
Posts: 7
Joined: Wed Jun 20, 2007 9:20 am
Top

Postby King Moonraiser » Fri Jun 22, 2007 9:58 pm

The code above didn't work right for me. I found the page for phpBB integration here:

http://www.phpbb.com/kb/article/phpbb2-sessions-integration/

The key to get this to work is that you must modify the cookie location in phpBB! For example, if your phpBB forum home is "/forum", your cookie location will be that, too. You must change it to "/". This will allow phpfreechat to access that cookie and automatically log the user in.

You must delete all cookies and clear your browser cache after you change the cookie location!!! I cannot stress this enough. For Firefox users, I'd recommend the Web Developer add-on to ensure you delete all of the cookies.

I completely re-wrote the index.php from scratch based on phpBB's recommendations in their document linked above. My page uses the phpBB subSilver stylesheet, but you can go ahead and use whatever stylesheet you like.

Code: Select all
<?php
define('IN_PHPBB', true);
$phpbb_root_path = '../forum/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);

require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "phpBB Forum Chat";
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["channels"] = array("General");
$params["language"] = "en_US";
$params["nick"] = ereg_replace("[[:space:]]", "_", $userdata[username]);
$params["nick"] = iconv("iso-8859-1", "UTF-8", $params["nick"]);
//$params["nick"] = iconv("windows-1251", "UTF-8", $userdata[username]);
$params["theme"] = "phpbb2";
//$params["frozen_nick"]       = true;
$params['admins'] = array('admin' => 'admin');
$params["isadmin"] = false;
//$params["isadmin"] = true; // just for debug ;)
//$params["debug"] = true;
$chat = new phpFreeChat( $params );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>
      phpBB Forum Chat
    </title>
    <link rel="stylesheet" href="<?php echo($phpbb_root_path . 'templates/subSilver/subSilver.css'); ?>"
    type="text/css" />
  </head>
  <body>
    <?php
    if($userdata['session_logged_in'])
    {
      echo('<span class="gen">');
      echo('Hi '.$userdata['username'].'! <a href="' . $phpbb_root_path . 'login.php?logout=true&sid=' . $userdata['session_id'] . '&redirect=..%2Fphpfreechat%2F' . '">Logout</a>');
      echo('</span><br />');
    ?>
    <div class="content">
      <?php $chat->printChat(); ?>
    </div>
      <?php
    }
    else
    {
    ?>
      <span class="gen">Hi Guest!</span><br />
    <form action="<?php echo($phpbb_root_path); ?>login.php" method="post" enctype="multipart/form-data">
      <table width="400" cellpadding="4" cellspacing="1" border=
      "0" class="forumline" align="center">
        <tr>
          <th height="25" class="thHead" nowrap="nowrap">
            Please enter your username and password to log in.
          </th>
        </tr>
        <tr>
          <td class="row1">
            <table border="0" cellpadding="3" cellspacing="1"
            width="100%">
              <tr>
                <td colspan="2" align="center">
                   
                </td>
              </tr>
              <tr>
                <td width="35%" align="right">
                  <span class="gen">Username:</span>
                </td>
                <td>
                  <input type="text" name="username" size="25"
                  maxlength="40" value="" />
                </td>
              </tr>
              <tr>
                <td align="right">
                  <span class="gen">Password:</span>
                </td>
                <td>
                  <input type="password" name="password" size=
                  "25" maxlength="32" />
                </td>
              </tr>
              <tr align="center">
                <td colspan="2">
                  <span class="gen">Log me on automatically each
                  visit: <input type="checkbox" name="autologin"
                  value="ON" /></span>
                </td>
              </tr>
              <tr align="center">
                <td colspan="2">
                  <input type="hidden" name="redirect" value=
                  "../phpfreechat/index.php" /><input type="submit"
                  name="login" class="mainoption" value=
                  "Log in" />
                </td>
              </tr>
              <tr align="center">
                <td colspan="2">
                  <span class="gensmall"><a href=
                  "<?php echo($phpbb_root_path); ?>profile.php?mode=sendpassword"
                  class="gensmall">I forgot my
                  password</a></span>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </form>
      <?php
    }
    ?>
  </body>
</html>

You may be wondering why the heck did I reference the session id directly instead of using the "append_sid()" function. For some reason, it didn't work for me. Referencing it like I did works the same way, so no need to sweat it.

EDIT: changed content-type to utf-8.
Last edited by King Moonraiser on Sat Jun 23, 2007 8:29 pm, edited 1 time in total.
King Moonraiser
Member
 
Posts: 98
Joined: Fri Jun 22, 2007 9:42 pm
  • Website
Top

Postby King Moonraiser » Sat Jun 23, 2007 2:59 pm

Sorry for the double post. I just wanted to point out the lines:

Code: Select all
$params["nick"] = ereg_replace("[[:space:]]", "_", $userdata[username]);
$params["nick"] = iconv("iso-8859-1", "UTF-8", $params["nick"]);

If the username has spaces, it will be truncated in phpfreechat at the first space. The code above replaces all spaces with underscores. This is not an ideal solution, but it works. I also noticed that the phpBB pages are encoded in iso-8859-1 format, not windows-1251. I'm assuming the nick will follow suit. Was I wrong to infer that?

UPDATE: Please ignore this if you are using beta 11 or higher. The usename space bug was fixed.
Last edited by King Moonraiser on Sun Jul 22, 2007 5:31 pm, edited 1 time in total.
King Moonraiser
Member
 
Posts: 98
Joined: Fri Jun 22, 2007 9:42 pm
  • Website
Top

Postby King Moonraiser » Mon Jul 02, 2007 7:31 pm

Some minor updates to make integration a little smoother.

Step 1: Movie the cookie location in the phpBB administrator.

In phpBB, log in as administrator, go to "General Admin," "Configuration," scroll down to "Cookie Settings." Change the cookie path to "/". You may need to delete all of your cookies to ensure the change registers in your browser.

Step 2: Install PHPFREECHAT.

See the website for instructions on how to install. Remember to install it in a directory peer to your forum. For example, if your forum is located at http://www.website.com/phpbb, then install phpfreechat at http://www.website.com/phpfreechat

Step 3: Replace the index.php file for PHPFREECHAT.

I came up with this replacement to the standard index.php file that comes with phpfreechat. You need to modify the $phpbb_folder_name and $phpfreechat_folder_name variables to reflect your actual directory names for phpbb and phpfreechat. Also, edit the title, channel name(s), and any censored words you wish to block.

I designed it to use the subSilver CSS file. Feel free to experiment with your forum's own CSS file. Sorry, I don't know how to get the page to use whatever template stylesheet the user has in their control panel settings.

Code: Select all
<?php
Header("Cache-control: private, no-cache");
Header("Expires: Mon, 26 Jun 1997 05:00:00 GMT");
Header("Pragma: no-cache");


define('IN_PHPBB', true);
$phpbb_folder_name = 'phpBB';
$phpfreechat_folder_name = 'phpfreechat';

$phpbb_root_path = '../'.$phpbb_folder_name.'/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);

require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "phpBB Forum Chat";
$params["serverid"] = md5("phpfreechat"); // calculate a unique id for this chat
$params["channels"] = array("General");
$params["language"] = "en_US";
//$params["nick"] = iconv("iso-8859-1", "UTF-8", $userdata[username]);
$params["nick"] = iconv("windows-1251", "UTF-8", $userdata[username]);
$params["theme"] = "phpbb2";
$params["frozen_nick"] = true;
$params["proxies_cfg"]["censor"]["words"] = array("heck","darn");
$params["isadmin"] = false;
$params["max_nick_len"] = 30;
$params["timeout"] = 60000;
if ($userdata['user_level'] == ADMIN || $userdata['user_level'] == MOD) $params['isadmin'] = true;
//$params["isadmin"] = true; // just for debug ;)
//$params["debug"] = true;
$chat = new phpFreeChat( $params );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="pragma" content="no-cache" />
    <title>
      <?php echo($board_config['sitename']); ?> :: Chat
    </title>

    <?php $chat->printJavascript(); ?>
    <?php $chat->printStyle(); ?>

    <link rel="stylesheet" href="<?php echo($phpbb_root_path . 'templates/subSilver/subSilver.css'); ?>"
    type="text/css" />
    <style type="text/css">
      #pfc_minmax { display: none; }

      a:link, a:visited, a:hover {
          font-weight: bold;
          text-decoration: none;
      }
      a:hover {
          text-decoration: underline;
      }
      .nospace { word-spacing: -0.35em; }
      div.content {
                    margin-top: 5px;
                    margin-bottom: 4px;
                    padding: 1em;
                    margin-left: 6px;
                    margin-right: 6px;
                    background-color: #FFF;
                    border: 2px #006699 solid;
                    min-height: 40em;
                    font-family: Verdana, Sans-Serif;
                    font-size: 100%;
                  }
      div.content * { margin-top: 0.5em; margin-bottom: 0.5em; }
      div.content a img { border: none; }
      div.content h2 { border-bottom: 1px #444 solid; }
      div.content h3 { text-decoration: underline; font-size: 100%; margin: 1em 0 1em 0; }
      div.content a:link, div.content a:visited, div.content a:hover { color: #0081ac; }
      div.content a:visited { color: #ac0011; }
      div.content code { background-color: #EFE; border: 1px #444 dotted; }
      div.content pre { padding: 1em; background-color: #f3fce5; border: 1px #444 dotted; }
      div.content ul { margin-left: 3em; }
      div.content ol { margin-left: 3em; }
      div.content dd { margin-left: 3em; }
      div.content dt { font-weight: bold; margin: 2em 0 2em 0; }
      div.content .abstract { border: 2px #999 solid; background-color: #EEE; padding: 1em; color: #000; text-align: justify; }
    </style>
  </head>
  <body>
    <?php
    if($userdata['session_logged_in'])
    {
      echo('<span class="gen">');
      echo('Hi '.$userdata['username'].'! <a href="'.$phpbb_root_path.'login.php?logout=true&sid='.$userdata['session_id'].'&redirect=..%2F'.$phpfreechat_folder_name.'%2F'.'">Logout</a>');
      echo('</span><br />');
    ?>
    <div class="content">
      <?php $chat->printChat(); ?>
    <p>
      Tips:
    </p>
    <ul>
      <li>
        To open a <strong>private chat</strong>, click on
         the nickname in the right column (user list).
      </li>
      <li>
        To <strong>join a channel</strong>, type this
         text in the input box : <code>/join yourchannelname</code>
         (replace yourchannelname by what your want)
      </li>
      <li>
        To listen <strong>sound notification</strong>,
        put your chat window in the background and wait
        for someone post a message.
      </li>
    </ul>
    </div>
    <?php
    }
    else
    {
    ?>
    <span class="gen">Hi Guest!</span><br />
    <form action="<?php echo($phpbb_root_path); ?>login.php" method="post" enctype="multipart/form-data">
      <table width="400" cellpadding="4" cellspacing="1" border=
      "0" class="forumline" align="center" summary="Login Box">
        <tr>
          <th height="25" class="thHead" nowrap="nowrap">
            Please enter your username and password to log in.
          </th>
        </tr>
        <tr>
          <td class="row1">
            <table border="0" cellpadding="3" cellspacing="1"
            width="100%" summary="">
              <tr>
                <td colspan="2" align="center">
                   
                </td>
              </tr>
              <tr>
                <td width="35%" align="right">
                  <span class="gen">Username:</span>
                </td>
                <td>
                  <input type="text" name="username" size="25"
                  maxlength="40" value="" />
                </td>
              </tr>
              <tr>
                <td align="right">
                  <span class="gen">Password:</span>
                </td>
                <td>
                  <input type="password" name="password" size=
                  "25" maxlength="32" />
                </td>
              </tr>
              <tr align="center">
                <td colspan="2">
                  <span class="gen">Log me on automatically each
                  visit: <input type="checkbox" name="autologin"
                  value="ON" /></span>
                </td>
              </tr>
              <tr align="center">
                <td colspan="2">
                  <input type="hidden" name="redirect" value=
                  "../<?php echo($phpfreechat_folder_name); ?>/index.php" /><input type="submit"
                  name="login" class="mainoption" value=
                  "Log in" />
                </td>
              </tr>
              <tr align="center">
                <td colspan="2">
                  <span class="gensmall"><a href=
                  "<?php echo($phpbb_root_path.'profile.'.$phpEx.'?mode=sendpassword'); ?>"
                  class="gensmall">I forgot my password</a>
                   :: 
                  <a href=
                  "<?php echo($phpbb_root_path.'profile.'.$phpEx.'?mode=register'); ?>"
                  class="gensmall"><?php echo $lang['Register']; ?></a>
                  </span>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </form>
    <?php
    }
    ?>
  </body>
</html>

Step 4: (Optional) Show users online in phpBB

Edit your template overall_header.tpl:

Code: Select all
    <td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"><a href="{U_PROFILE}" class="mainmenu">{L_PROFILE}</a> :: <a href="{U_PRIVATEMSGS}" class="mainmenu">{PRIVATE_MESSAGE_INFO}</a> :: <a href="{U_LOGIN_LOGOUT}" class="mainmenu">{L_LOGIN_LOGOUT}</a></span></td>
  </tr>
</table>

<!-- Start add - phpfreechat MOD -->
<table cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr>
    <td class="row1" align="center"><span class="gensmall"><a href="/phpfreechat" class="mainmenu">{TOTAL_USERS_ONCHAT}{USERS_ONCHAT}</span></td>
  </tr>
</table>
<!-- End add - phpfreechat MOD -->

and edit your includes/page_header.php:

Code: Select all
// Start - phpfreechat mod init

require_once $phpbb_root_path."../phpfreechat/src/pfcinfo.class.php";
$phpfreechat_info  = new pfcInfo( md5("phpfreechat") );
// NULL is used to get all the connected users, but you can specify
// a channel name to get only the connected user on a specific channel
$phpfreechat_users = $phpfreechat_info->getOnlineNick(NULL);

$phpfreechat_nb_users = count($phpfreechat_users);

$phpfreechat_users_csv = "";
foreach($phpfreechat_users as $u)
{
  $u = ereg_replace("[[:space:]]", " ", $u);
  $phpfreechat_users_csv .= $u.", ";
}

if ($phpfreechat_nb_users > 1)
{
  $phpfreechat_users_csv = substr($phpfreechat_users_csv, 0, -2);
  $phpfreechat_info = "There are <strong>".$phpfreechat_nb_users."</strong> users in chat right now: ";
}
else if ($phpfreechat_nb_users == 1)
{
  $phpfreechat_users_csv = substr($phpfreechat_users_csv, 0, -2);
  $phpfreechat_info = "There is <strong>1</strong> user in chat right now: ";
}
else
{
  $phpfreechat_info = "There are no users in chat right now.";
}
// End - phpfreechat mod init

If someone wants to help come up with an official mod for phpBB, please contact me.
Last edited by King Moonraiser on Fri Aug 24, 2007 5:24 pm, edited 1 time in total.
King Moonraiser
Member
 
Posts: 98
Joined: Fri Jun 22, 2007 9:42 pm
  • Website
Top

Postby clifton11221 » Mon Jul 16, 2007 4:17 pm

Excellent integration... Worked like a charm for me!

Is it possible to make it so you can see if a particular member is currently in the Chat room?
clifton11221
New member
 
Posts: 9
Joined: Mon Jul 16, 2007 4:08 pm
Top

Postby Calheira » Thu Jul 19, 2007 4:47 am

How can i put the PHPFREECHAT in the footer of all pages of my phpBB?

I try put the PHPFREECHAT code in the page_header.php, page_tail.php and overall_footer.tpl.
and the chat work just in FIREFOX.

I do this:

OVERALL_FOOTER.TPL - Put this code in the first line
Code: Select all
<!-- BEGIN switch_user_logged_in -->
<br />
{PHPFREECHAT}
<br />
<!-- END switch_user_logged_in -->

PAGE_TAIL.PHP - Put just one line
Code: Select all
$template->assign_vars(array(
   'TRANSLATION_INFO' => (isset($lang['TRANSLATION_INFO'])) ? $lang['TRANSLATION_INFO'] : ((isset($lang['TRANSLATION'])) ? $lang['TRANSLATION'] : ''),
   'ADMIN_LINK' => $admin_link,
   'PHPFREECHAT' => $chat->printChat(true) // I PUT THIS LINE ONLY
   )
);

PAGE_HEADER.PHP - Put this code
Code: Select all
// BEGIN  PHPFREECHAT

require_once dirname(__FILE__)."/../chat/src/phpfreechat.class.php";
$params = array();
$params["serverid"] = md5("MYCHAT");
$params["nick"] = $userdata[username];
$params["language"] = "pt_BR";
// $params["debug"] = true;
$params["title"] = "Zecão CHATo - Versão de testes";
$params["frozen_nick"] = true;
$params["max_msg"] = 3;
$params["theme"] = "phpbb2";
$params['frozen_channels'] = array('Mesa de Bar');
$params['channels'] = array('Mesa de Bar');
$params['admins'] = array('Hugao' => 'nonono');
$params["max_channels"]   = 3;
$params["max_privmsg"]    = 1;
$params["clock"] = false;
$params["showsmileys"] = false;
$params["btn_sh_whosonline"] = false;
$params["height"] = "150px"; // Default = 440px
$params["focus_on_connect"] = false;
$params["timeout"] = 60000;
$params["output_encoding"] = "iso-8859-1";
$params["start_minimized"] = true;

$chat = new phpFreeChat( $params );
// END PHPFREECHAT

But the chat dont work in INTERNET EXPLORER
Last edited by Calheira on Thu Jul 19, 2007 2:50 pm, edited 1 time in total.
Calheira
New member
 
Posts: 7
Joined: Wed Jul 18, 2007 12:27 am
Location: Salvador - Brazil
  • Website
Top

Postby ktulu77 » Fri Jul 20, 2007 1:06 pm

King Moonraiser, I have a problem with the chat with your modifs :
every thing seems to be ok i'm happy but i am one big problem :
i have always this writen :
you must be connected to send a message.
but i'm already connected, my php nick is on the connected users list.
what can I do ??
i'm using phpfreechat-1.0-beta11
When I use the standard index.php, it seems to work when i'm guest.
thank you very much !
ktulu77
New member
 
Posts: 3
Joined: Fri Jul 20, 2007 12:50 pm
Top

Postby King Moonraiser » Sun Jul 22, 2007 5:30 pm

Did you follow my instructions to change the cookie location in phpBB? If you don't do that, it won't work properly.

The key to get this to work is that you must modify the cookie location in phpBB! For example, if your phpBB forum home is "/forum", your cookie location will be that, too. You must change it to "/". This will allow phpfreechat to access that cookie and automatically log the user in.

Also, my mod assumes your chat folder has the same root as phpBB. For example: www.mysite.com/phpBB and www.mysite.com/phpfreechat
Last edited by King Moonraiser on Sun Jul 22, 2007 5:32 pm, edited 1 time in total.
King Moonraiser
Member
 
Posts: 98
Joined: Fri Jun 22, 2007 9:42 pm
  • Website
Top

Postby ktulu77 » Mon Jul 23, 2007 9:18 am

yes the cookie seems to work because when I go to the chat page, i'm allready logged with my phpbb account.
but I still have "you must be logged to send a message" on the bottom.
my chat is here http://www.highwaytoacdc.com/tchat/tchat.php
the example version : http://www.highwaytoacdc.com/tchat/ancien.php

I also have the example version, when 2 or more people are connected, the nick list on the right appears and disappears.
I don't understand what happen :(
ktulu77
New member
 
Posts: 3
Joined: Fri Jul 20, 2007 12:50 pm
Top

Postby Gianmarco » Sun Jul 29, 2007 11:47 pm

Hi, I would know how to complete the chat in a colour group, thank you ^^
Gianmarco
New member
 
Posts: 2
Joined: Sun Jul 29, 2007 1:28 am
Top

Postby kikigirl » Wed Aug 15, 2007 7:19 pm

Regarding the sample from King Moonraiser.

I feel like I'm missing something. It seemed to work at first, but then the chat directory overwrote my forum directory in the links... so everything (style, login name, etc.) is trying to find items under the 'phpfreechat' folder.

So, thinks I, I'll take out that index file, and try to put it back in... now it's looking for everything under a filestructure that seems to be based on repetition of my user name. (Note: I didn't change anything except go back to the original index.php file and verify the chat was working without the code changes, then try to replace the modified index.php from the sample here.)

Is there a text file somewhere I need to blow away to get back to a clean setup? Is this my browser blowing up? Do I need to call it a day and look at this later?

TIA
-K
kikigirl
New member
 
Posts: 1
Joined: Wed Aug 15, 2007 7:09 pm
Top

Next

Post a reply
36 posts • Page 1 of 3 • 1, 2, 3

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

Who is online

Users browsing this forum: No registered users and 1 guest

  • 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