• 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

Integrating to my own login system

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

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

Postby youngcalihottie » Fri Sep 08, 2006 7:38 am

i have checked the cookies and do not see a cookie left after visiting the chat room. i checked for a phpfreechat cookie and a mywebsite cookie.

where is the cookie??? i know santa claus isnt coming down and eating it :P lol

i agree with a previous post that if the nick is frozen and the nick is manually set then the param should have priority over the cookie.

why not just insert a line somewhere that sets the cookie as the manual nick if the nick is also frozen? i would do it myself but i have no idea where that line of code would go. lol.
youngcalihottie
New member
 
Posts: 9
Joined: Mon Sep 04, 2006 11:55 pm
Top

Postby youngcalihottie » Fri Sep 08, 2006 11:31 am

if you log out and log back in as another user, beta 5 even throws an error "You are not allowed to change your nickname"
youngcalihottie
New member
 
Posts: 9
Joined: Mon Sep 04, 2006 11:55 pm
Top

Postby russ » Sat Sep 09, 2006 4:02 am

This is also causing me a headache...

If a user changes their nickname on my system, I need it to be that nickname when they open the chat. Instead it remembers their old one, even if I set the nick in params.

If I use the frozen nick param we just get an error the next time logging in - you are not allowed to change your nick. Ideally - I don't want people to ne able to change their nick, as it provides a means of identifying them on my other system. If they change it, I lose the link.

I just need to be able to clear any cached/cookied/sessioned nick each time chat loads - but I am pulling my hair out trying to work out how!
russ
New member
 
Posts: 4
Joined: Sat Sep 09, 2006 2:33 am
Top

Postby phpfreechat » Sat Sep 09, 2006 11:10 am

I made so work on the "nick" and "frozen_nick" parameters in the lastest subversion repository.
Could you try with the last suversion files?

Now "frozen_nick" can be set to true with a empty "nick" :
- the user will choos a nick then he will not be able to change it.
- if "frozen_nick" is on and "nick" come from an external system, then the nick parameter will force user with this nick. If the nick parameter changes during the chat session then the user nickname will be renamed automaticaly.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby russ » Sat Sep 09, 2006 1:06 pm

Hi Kerphi,

Thanks for your response.

I have the latest version (beta5) and only installed it last week.

The problem is - if I turn frozen nick on and then come back with a different nick (passed by my system in params) the error that I cannot change my nick appears and I do not join any channels.

Something is remembering my old nick, and seeing my new one set in params as an attempt to change it.

For now I have allowed nick changes but disabled the nick change button - so unless people use the /nick command they won't be able to change their nickname.

Chat is still ignoring my passing of a new username though, what is storing it? Is it session data, cookies, or?

Thanks again,
Russ.
russ
New member
 
Posts: 4
Joined: Sat Sep 09, 2006 2:33 am
Top

Postby phpfreechat » Sat Sep 09, 2006 1:16 pm

These problèmes are fixed in the lastest subverion so wait for the next release or try with the lastest subversion.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby lightnin » Tue Oct 03, 2006 5:25 pm

I'm still having probs with this. frozen_nick seems to be busted on both beta5 and beta6. anyone have a work around for this issue? i'm hacking away myself but only worsening the problems.
lightnin
New member
 
Posts: 4
Joined: Tue Oct 03, 2006 5:23 pm
Top

Postby shanek » Tue Oct 03, 2006 7:58 pm

frozen_nick is working fine for me on beta5. I haven't had a chance to try beta6 yet.
shanek
Member
 
Posts: 30
Joined: Mon Jun 19, 2006 2:22 pm
Top

Postby lightnin » Thu Oct 19, 2006 4:50 pm

can you show me examples on how you are making frozen_nick work?
lightnin
New member
 
Posts: 4
Joined: Tue Oct 03, 2006 5:23 pm
Top

Postby shanek » Thu Oct 19, 2006 6:38 pm

All I did was set the user name to the logged-in name, as per the instructions, and set frozen_nick to true. Works fine, even on beta6.
shanek
Member
 
Posts: 30
Joined: Mon Jun 19, 2006 2:22 pm
Top

Postby lightnin » Fri Oct 20, 2006 12:05 pm

thanks
lightnin
New member
 
Posts: 4
Joined: Tue Oct 03, 2006 5:23 pm
Top

Postby lightnin » Fri Oct 20, 2006 2:42 pm

Code: Select all
$params =  array("title"          => "Chat",
                 "max_msg"        => 21,
              "prefix"         => "blune_",
                 "clock"          => false,
                 "showwhosonline" => true,
                 "showsmileys"    => false,
                 "height"         => "270px",
                 "width"          => "300px",
                 "serverid"       => md5(__FILE__),
                 "theme"          => "blune",
              "nick"           => $user,
                 "frozen_nick"    => "true"
                 );
$chat = new phpFreeChat( $params );

I can still change my nick. tested on beta 5 and beta 6
lightnin
New member
 
Posts: 4
Joined: Tue Oct 03, 2006 5:23 pm
Top

Postby ascurri » Wed Aug 08, 2007 1:41 am

You script looks great, but....

Its been almost a year on this discussion, do we have to change our chat script or is solved?

Regards,
ascurri
New member
 
Posts: 3
Joined: Wed Aug 08, 2007 1:09 am
Top

Postby gik » Sun Oct 14, 2007 11:32 am

I solved the problem by resetting the phpfreechat cookie during login/logout to the community. That doesn't expire the user's session when the user disconnects without using the logout button, but solves the issue with phpfreechat ignoring the current logged-in user.

You can do that by adding the following command to the place where the community creates and closes user sessions:

setcookie('phpfreechat','', 0,'/');

Regards,
Gik.
gik
New member
 
Posts: 2
Joined: Sun Oct 14, 2007 11:26 am
Top

Postby lnevo » Fri Oct 26, 2007 7:45 am

gik's solution worked for me. I added the line where phpBB2 does its session_end in login.php for those integrating.
lnevo
New member
 
Posts: 7
Joined: Thu Oct 25, 2007 5:27 am
Top

Previous

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

Return to General Support (v1.x)

Who is online

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