• 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

Setting MAX_MSG to 0 has no effect

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

Post a reply
6 posts • Page 1 of 1

Setting MAX_MSG to 0 has no effect

Postby itchibahn » Thu Nov 08, 2012 10:38 pm

I've got max_msg set to 0, but when the user is timed out, left, closed the browser and come back next day, the chat still shows previous texts.
Code: Select all
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "Chat Rooms";
$params["nick"] = "guest".rand(1,1000);  // setup the intitial nickname
$params['firstisadmin'] = true;
//$params["isadmin"] = true; // makes everybody admin: do not use it on production servers ;)
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["debug"] = false;
$params["theme"] = "msn";
$parms["display_pfc_logo"] = false;
$parms["max_msg"] = 0;
$parms["quit_on_closedwindow"] = true;
$parms["timeout"] = 360000;
$params["channels"] = array("Anything Goes");
$chat = new phpFreeChat( $params );


I'm using v1.5. Is this a bug, or is it just me?
.
.
.
-------------------------------------------------------------------------------
Currently working on NorJah
My failed websites: PC Share ISOT MultiByte
itchibahn
Member
 
Posts: 12
Joined: Sun Mar 16, 2008 6:33 pm
  • Website
Top

Re: Setting MAX_MSG to 0 has no effect

Postby OldWolf » Fri Nov 09, 2012 10:10 pm

Did you rehash?
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Re: Setting MAX_MSG to 0 has no effect

Postby itchibahn » Tue Nov 13, 2012 5:34 pm

Yes. Rehashed, even refreshed the browser, cleared it's cache, also tried on both FF16 and IE9. Old chats are still there...
.
.
.
-------------------------------------------------------------------------------
Currently working on NorJah
My failed websites: PC Share ISOT MultiByte
itchibahn
Member
 
Posts: 12
Joined: Sun Mar 16, 2008 6:33 pm
  • Website
Top

Re: Setting MAX_MSG to 0 has no effect

Postby OldWolf » Wed Nov 14, 2012 6:15 pm

I had another look at the code. Turns out parms != params. ;)

$parms["display_pfc_logo"] = false;
$parms["max_msg"] = 0;
$parms["quit_on_closedwindow"] = true;
$parms["timeout"] = 360000;
$params["channels"] = array("Anything Goes");
$chat = new phpFreeChat( $params );
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Re: Setting MAX_MSG to 0 has no effect

Postby itchibahn » Wed Nov 28, 2012 5:36 am

LOL!!! How could I have missed that?
Must be the lasik I just had.
Thanks for helping this fool. :oops:
.
.
.
-------------------------------------------------------------------------------
Currently working on NorJah
My failed websites: PC Share ISOT MultiByte
itchibahn
Member
 
Posts: 12
Joined: Sun Mar 16, 2008 6:33 pm
  • Website
Top

Re: Setting MAX_MSG to 0 has no effect

Postby OldWolf » Wed Nov 28, 2012 6:17 pm

itchibahn wrote:LOL!!! How could I have missed that?
Must be the lasik I just had.
Thanks for helping this fool. :oops:

No worries, we all make typos. :)
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top


Post a reply
6 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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