• 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

How do you add channels / rooms?

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

Post a reply
5 posts • Page 1 of 1

Postby hknight » Thu Aug 18, 2011 10:54 pm

How do you add channels / rooms?

Code: Select all
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["channel"] = 'Hello';
$params["debug"] = false;

That code in index.php gives an error:

cannot be initialized, please correct these errors:
* Error: undefined or obsolete parameter 'channel', please correct or remove this parameter
hknight
New member
 
Posts: 6
Joined: Thu Aug 18, 2011 12:49 am
Top

Postby re*s.t.a.r.s.*2 » Thu Aug 18, 2011 11:00 pm

hi,

To ad channels you need to user $params['channels'] = array('This is one channel');

you mistyped channel instead of channels and it must be an PHP array ...
Don't forget to use as admin the command "/rehash" ..

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

Postby mortek » Fri Jun 08, 2012 12:52 pm

You shoud make amends on http://www.phpfreechat.net/faq !

Genarraly that is not work. I got two diffrent pages with diffrant params:

EDIT:] channel appear when I deleted session files[/EDIT

But I want to make independent pages who have diffrent channel:

page #1:
$params["serverid"] = 1;
$params["channels"] = array('ONE');

page #2:
$params["serverid"] = 2;
$params["channels"] = array('TWO');

Is that possible?
Last edited by mortek on Fri Jun 08, 2012 11:34 pm, edited 1 time in total.
mortek
New member
 
Posts: 6
Joined: Tue Apr 17, 2012 1:33 pm
Top

Postby OldWolf » Sat Jun 09, 2012 12:44 am

mortek wrote:You shoud make amends on http://www.phpfreechat.net/faq !

It is correct on the FAQ... the only place it uses the format you are using it reads "(only for 0.x branche)"


mortek wrote:page #1:
$params["serverid"] = 1;
$params["channels"] = array('ONE');

page #2:
$params["serverid"] = 2;
$params["channels"] = array('TWO');

Is that possible?

Yup. They will act as chats independent of each other if you give them different ids.
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

Postby mortek » Sun Jun 10, 2012 10:03 am

Thanks re*s.t.a.r.s.*2 & OldWolf for great support :)
Indeed it works but if somebody want do this too, you must remember about add diffrent $params["server_script_url"] = "xxx"; param to chat recognize valid chat :)
Last edited by mortek on Wed Jun 13, 2012 11:16 am, edited 1 time in total.
mortek
New member
 
Posts: 6
Joined: Tue Apr 17, 2012 1:33 pm
Top


Post a reply
5 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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