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

Username keep changing all the time in v1.3

Post a bug fix, a new feature, a theme ...

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

Post a reply
2 posts • Page 1 of 1

Postby zilveer » Fri Dec 10, 2010 1:33 am

Hi everyone and thx for the gr8 PHPfreechat.
It works like charms except one BIG bug in version 1.3.
Whan you setup a nick like the code below and use the frozen_nick true then the username keeps changing all the way, and to the end I get kicked because of flooding.

Code: Select all
$params["nick"] = "guest".rand(1,1000);  // setup the intitial nickname
$params["frozen_nick"] = true;

This is a big ISSUE and I hope that you guys solve this problem as soon as possible.

Best regards Zilveer
/Isa Acar, the truth is infront of you
zilveer
Member
 
Posts: 38
Joined: Sat Oct 07, 2006 11:35 am
Top

Postby re*s.t.a.r.s.*2 » Fri Dec 10, 2010 2:27 am

This was posted long ago as a fix,
so all thanks goes to the creator :

Code: Select all
$ip = $_SERVER['REMOTE_ADDR'];
$desc = md5($ip);
$preview = substr($desc, 3, 6);
$preview = preg_replace("/[^0-9]/", '', $preview);
$params["nick"] =  "guest".$preview;

what it does is give you an static number taken from you IP but without put in your IP in public..
and you dont get a random number that makes PFC loop forever.. regards
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
2 posts • Page 1 of 1

Return to Contributions (v1.x)

Who is online

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