• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Two naviators, and two nicks that are the sames

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

Post a reply
14 posts • Page 1 of 1

Postby Cyb » Fri Mar 04, 2011 3:15 pm

Hi, and sorry by advance for my english, I'm french...

I have installed this chat on my host and it's really great.
I use a phpBB forum, and have installed this code to check the Nick :

define('IN_PHPBB', true);
$phpbb_root_path = '../forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);

$chat_root_phpbbrealtive_path = '../chat/'; // Chat url relative to phpBB root ;)
include($phpbb_root_path . 'common.' . $phpEx);


$user->session_begin();
$auth->acl($user->data);
$user->setup();

if($user->data['user_id'] == ANONYMOUS)
{
echo $user->data['user_id'];
echo "vous n'avez pas accès au chat car vous n'êtes pas logué/e.";
exit();
}



So I have 2 problems now.

First, with IE, sometimes it display the window strange, so I puted that line :
<meta http-equiv=“X-UA-Compatible” content=“IE=7” />
but it conitnues.
Have you got another thing to contourn this problem : Smileys are strange ...
I use for myself Firefox but users are free to use their own...

The second is :

If I open the chatroom first with Firefox for example and then I connect with IE, I'm connect two times in the same time.
My nick is Cyb, so there ie two Cyb on the channel.

It's not a big big problem I think people perhaps have others things to do that joking on a little chat but...

May be someone can help me ? Thanks and sorry again for my english !!
Cyb
Member
 
Posts: 11
Joined: Fri Mar 04, 2011 2:53 pm
Top

Postby re*s.t.a.r.s.*2 » Fri Mar 04, 2011 3:41 pm

please upgrade pfc 1.3 and come back...
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby Cyb » Fri Mar 04, 2011 3:53 pm

I have this chat : phpfreechat-1.3 downloaded so...
I don't think it's the problem.

The Nick in double is just in case I am first connected with IE and then with firefox.

I think it works usually but sometimes only.
Thanks
Cyb
Member
 
Posts: 11
Joined: Fri Mar 04, 2011 2:53 pm
Top

Postby re*s.t.a.r.s.*2 » Fri Mar 04, 2011 4:05 pm

please place the code from index.php here with "code" tags,

Wanna see the code better..
Last edited by re*s.t.a.r.s.*2 on Fri Mar 04, 2011 4:07 pm, edited 1 time in total.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby Cyb » Fri Mar 04, 2011 4:20 pm

I thank you, I only changed password and the name of the room here.

Thanks a lot

Code: Select all
define('IN_PHPBB', true);

$phpbb_root_path = '../forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);

$chat_root_phpbbrealtive_path = '../chat/'; // Chat url relative to phpBB root ;)
include($phpbb_root_path . 'common.' . $phpEx);


$user->session_begin();
$auth->acl($user->data);
$user->setup();

if($user->data['user_id'] == ANONYMOUS)
{
echo $user->data['user_id'];
echo "vous n'avez pas accès au chat car vous n'êtes pas logué/e.";
exit();
}


require_once dirname(__FILE__)."/src/phpfreechat.class.php";

$params["serverid"]      = md5(__FILE__); // calculate a unique id for this chat
//$params["data_private_path"] = "/dev/shm/mychat";
$params['admins'] = array(   'Cyb'  => 'mdp',
                            'novelenn' => 'mdp');
                     
$params['frozen_nick'] = true;
$params['title'] = "Nameofmychat";
$params['channels'] = array('pschannel');
$params["theme"]       = "default";

$params['height'] = "500px";
$params['language']      = "fr_FR";
$params['nick']     = $user->data['username'];



$chat = new phpFreeChat( $params );
mysql_close();

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
  <meta http-equiv=“X-UA-Compatible” content=“IE=7” />
 
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Chat www.phosiesociale.org</title>

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

  </head>

  <body>
    <?php $chat->printChat(); ?>



  </body>
</html>
Last edited by Cyb on Fri Mar 04, 2011 4:24 pm, edited 1 time in total.
Cyb
Member
 
Posts: 11
Joined: Fri Mar 04, 2011 2:53 pm
Top

Postby re*s.t.a.r.s.*2 » Fri Mar 04, 2011 6:11 pm

Hi I seem some strange stuff in your code, can you try the one below and tell me what happens?

Code: Select all
<?php
define('IN_PHPBB', true);

$phpbb_root_path = '../forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);

$chat_root_phpbbrealtive_path = '../chat/'; // Chat url relative to phpBB root ;)
include($phpbb_root_path . 'common.' . $phpEx);


$user->session_begin();
$auth->acl($user->data);
$user->setup();

if($user->data['user_id'] == ANONYMOUS)
{
echo $user->data['user_id'];
echo "vous n'avez pas accès au chat car vous n'êtes pas logué/e.";
exit();
}
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params['admins'] = array(    'Cyb'  => 'mdp','novelenn' => 'mdp');
                           
$params['frozen_nick'] = true;
$params['title'] = "Nameofmychat";
$params['channels'] = array('pschannel');
$params["theme"]       = "default";
$params['height'] = "500px";
$params['language']      = "fr_FR";
$params['nick']     = $user->data['username'];
$params["serverid"]      = md5(__FILE__); // calculate a unique id for this chat
$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>
  <head>
 <!-- <meta http-equiv=“X-UA-Compatible” content=“IE=7” /> -->
 
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Chat www.phosiesociale.org</title>

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

  </head>

  <body>
    <?php $chat->printChat(); ?>



  </body>
</html>
Last edited by re*s.t.a.r.s.*2 on Fri Mar 04, 2011 6:44 pm, edited 1 time in total.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby Cyb » Fri Mar 04, 2011 6:34 pm

It seems to be much better for the double connexion.

IE7 displays the firts time strange smileys and I have to refresh the page but... IE...
I know...
You think it's not a good idea to shut down the connexion with DB before the end of the page ?

Never mind, thank you !!
Cyb
Member
 
Posts: 11
Joined: Fri Mar 04, 2011 2:53 pm
Top

Postby re*s.t.a.r.s.*2 » Fri Mar 04, 2011 6:40 pm

I don't see in your code any connection to mysql, so that's why I took it off..

why you have it in first place?

put a link to your site, make a guest account for me to check... please.
Last edited by re*s.t.a.r.s.*2 on Fri Mar 04, 2011 6:41 pm, edited 1 time in total.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby re*s.t.a.r.s.*2 » Fri Mar 04, 2011 6:48 pm

Also I dont think you need this :
<?php //$chat->printJavascript(); ?>
<?php //$chat->printStyle(); ?>

that's depreciated in PFC 1.3, If you have it... otherwise you would be calling the javascript and css twice so the above code is updated..
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby Cyb » Fri Mar 04, 2011 7:03 pm

You're right, I just have a session, and cookie, no connexion !
Where is my head ?!! :P

ok I have created an account to test :

[edit]

You have to be logged before on the forum on that address:
[edit]

I havn't yet put a link in the website, then you're connected, go there : [edit] please.

I'm not sure to understand, you think I can erase the lines
Code: Select all
 <?php //$chat->printJavascript(); ?>
    <?php //$chat->printStyle(); ?>

Is that ?

Then you finish, I'll edit my address if you're ok, I don't wanna let it on the net... :)
Last edited by Cyb on Fri Mar 04, 2011 9:03 pm, edited 1 time in total.
Cyb
Member
 
Posts: 11
Joined: Fri Mar 04, 2011 2:53 pm
Top

Postby re*s.t.a.r.s.*2 » Fri Mar 04, 2011 7:42 pm

Use the new code, I have updated it, you got error in IE 8 emulating IE7, so either erase the :
<meta http-equiv=“X-UA-Compatible” content=“IE=7” /> and
<?php //$chat->printJavascript(); ?>
<?php //$chat->printStyle(); ?>

or just update it as I have commented those lines..
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby Cyb » Fri Mar 04, 2011 8:56 pm

I have done what you say,
IE's display is allways the same, but never mind I'll say that users who wants to chat with IE have to refresh the window first and it will be ok.

hope it works now, thanks a lot again.

Cyb
Cyb
Member
 
Posts: 11
Joined: Fri Mar 04, 2011 2:53 pm
Top

Postby Cyb » Fri Mar 04, 2011 9:27 pm

Please, have you finished ?
Because I have to close the account to test :)
Thank you,

Cyb
Cyb
Member
 
Posts: 11
Joined: Fri Mar 04, 2011 2:53 pm
Top

Postby re*s.t.a.r.s.*2 » Fri Mar 04, 2011 11:51 pm

No problem I am done, Works great now.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top


Post a reply
14 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 22 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