• 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

SOLVED: "max_channels" Not Working?

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

Post a reply
6 posts • Page 1 of 1

SOLVED: "max_channels" Not Working?

Postby itchibahn » Mon Jan 21, 2013 9:21 pm

I've tried
Code: Select all
$params["max_channels"] = 3;
also tried in pfcglobalconfig.class.php
Code: Select all
var $max_channels = 3;
but it doesn't work. I can still create (/join xxxx) up to 10 channels.
Advice will be appreciated. Thanks.
Last edited by itchibahn on Sun Feb 10, 2013 11:13 pm, edited 1 time in total.
.
.
.
-------------------------------------------------------------------------------
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: "max_channels" Not Working?

Postby OldWolf » Tue Jan 22, 2013 5:42 am

Let's see all of the code. :)
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: "max_channels" Not Working?

Postby itchibahn » Sun Feb 10, 2013 7:03 am

Got side tracked with another project. I'm back on it now. Below is my code, and the core has not been changed.

Code: Select all
<?php

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["frozen_nick"] = true;           // do not allow to change the nickname
$params['firstisadmin'] = false;
//$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";
$params["clock"] = false;
$params["showsmileys"] = false;
$params["display_pfc_logo"] = false;
$params["max_msg"] = 0;            // max message in the history (message seen when reloading the chat)
$params["max_text_len"] = 400;            // a message cannot be longer than 50 caracteres
$params["max_displayed_lines"] = 150;      // The maximum number of lines displayed in the window. Old lines will be deleted
$params["height"] = "400px";
$params["quit_on_closedwindow"] = true;
$params["timeout"] = 300000;
$params["refresh_delay_steps"] = array(2000,300000,15000,420000,3600000,600000);
$params["channels"] = array("The Lounge");
$params["max_channels"] = 3;
$params["admins"]=array("abcdefg"=>"1234");
$chat = new phpFreeChat( $params );

?>

Last edited by itchibahn on Sun Feb 10, 2013 11:20 pm, edited 1 time in total.
.
.
.
-------------------------------------------------------------------------------
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: "max_channels" Not Working?

Postby OldWolf » Sun Feb 10, 2013 6:34 pm

That all appears correct from my quick glance. Have you rehashed your chat since the changes? http://www.phpfreechat.net/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: SOLVED: "max_channels" Not Working?

Postby itchibahn » Sun Feb 10, 2013 11:15 pm

Geez, I need to stop staring at the codes and look for obvious... :shock:

After rehashing, it's doing what it supposed to do... :oops:

Thanks.
.
.
.
-------------------------------------------------------------------------------
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: SOLVED: "max_channels" Not Working?

Postby OldWolf » Mon Feb 11, 2013 7:05 am

itchibahn wrote:Geez, I need to stop staring at the codes and look for obvious... :shock:

After rehashing, it's doing what it supposed to do... :oops:

Thanks.

Don't worry, you're about the hundredth person to miss that step. ;)
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 4 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub