• 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

[1.0-beta4] Frozen Nick

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

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

Post a reply
6 posts • Page 1 of 1

Postby Mephisto » Mon Aug 14, 2006 8:28 am

Hello,

I had some problems with the params "frozen_nick", although I write it to "true" it was still possible to modify the nick name. So I hadded this script on chat.html.tpl.php file :

replace line n°16
<input id="<?php echo $prefix; ?>handle" type="button" title="<?php echo _pfc("Enter your nickname here"); ?>" value="<?php echo $u->nick; ?>" onclick="pfc.askNick('');" />

by
<?php if (!$c->frozen_nick) { ?>
<input id="<?php echo $prefix; ?>handle" type="button" title="<?php echo _pfc("Enter your nickname here"); ?>" value="<?php echo $u->nick; ?>" onclick="pfc.askNick('');" />
<?php } else { ?>
<input id="<?php echo $prefix; ?>handle" type="button" title="<?php echo $u->nick; ?>" value="<?php echo $u->nick; ?>" />
<?php } ?>
Last edited by Mephisto on Mon Aug 14, 2006 8:28 am, edited 1 time in total.
Mephisto
New member
 
Posts: 5
Joined: Mon Aug 14, 2006 8:24 am
Top

Postby phpfreechat » Mon Aug 14, 2006 8:59 am

Humm which version of phpfreechat did you modify ?
In 1.x branche the frozen_nick parameter should be fixed.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Mephisto » Mon Aug 14, 2006 10:03 am

I have version number 1.0-beta4 but it would not work... my problem is fixed :p
Mephisto
New member
 
Posts: 5
Joined: Mon Aug 14, 2006 8:24 am
Top

Postby rd_ » Thu Sep 14, 2006 12:20 pm

Hi, i have 1.0-beta5 and frozen_nick doesn't work. I try:
$params["frozen_nick"] = true;
or
$params["frozen_nick"] = "true";

but it doesn't work.
What can I do?
Is there anything i can do to disable the message box shown when i click on the username button?
Which is the file and what are the lines i have to remove to do not show the window that let me change the nick?
Last edited by rd_ on Thu Sep 14, 2006 12:20 pm, edited 1 time in total.
rd_
New member
 
Posts: 2
Joined: Thu Sep 14, 2006 12:13 pm
Top

Postby phpfreechat » Thu Sep 14, 2006 12:47 pm

1.0-beta6 will fix frozen_nick problems. (see the changelog)
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby rd_ » Thu Sep 14, 2006 1:56 pm

Now it works... I specified frozen_nick param after running for the first time the chat. Now i remove all files into data/public and data/private and the chat run correctly. Sorry if i didn't try to do this before posting my message
rd_
New member
 
Posts: 2
Joined: Thu Sep 14, 2006 12:13 pm
Top


Post a reply
6 posts • Page 1 of 1

Return to Contributions (v1.x)

Who is online

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