• 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

Multiple channels configuration

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

Post a reply
5 posts • Page 1 of 1

Postby neomades » Mon Nov 13, 2006 11:24 am

Hello,

I'm facing a little problem with the multiple channels configuration. I have integrated the demo example code in my chat, but it does not work correctly...

Here is my code :

$params["channels"] = array("Main Room");
$params["frozen_channels"] = array("Main Room", "WebSite Room");
...
<p>Rooms list:</p>
<ul>
<li><a href="#" onclick="pfc.sendRequest('/join', 'Main Room');">Main Room</a></li>
<li><a href="#" onclick="pfc.sendRequest('/join', 'WebSite Room');">WebSite Room</a></li>
</ul>


Actually, I do have the two rooms in my chat, and can access them. But when I leave the WebSite Room and come back in it, there are no messages left.

Main Room works fine.

Any idea?
Thanks
neomades
New member
 
Posts: 6
Joined: Fri Nov 10, 2006 8:05 am
Location: France
  • Website
Top

Postby phpfreechat » Mon Nov 13, 2006 3:27 pm

Yes it's a feature ...
The channels not listed in 'channels' array are automaticaly emptied when the last user leave the channel.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby neomades » Mon Nov 13, 2006 3:39 pm

OK, thanks.
Actually, I found out that the solution was to add all the channels in the 'channels' array.
Everything works fine now, except I would like that only the main room opens when arriving in the chat. Is there a way to do that? For the moment, all channels open, and it can become a bit annoyinig when there are lots of channels.

Thanks a lot
neomades
New member
 
Posts: 6
Joined: Fri Nov 10, 2006 8:05 am
Location: France
  • Website
Top

Postby phpfreechat » Mon Nov 13, 2006 3:51 pm

Without modifing anything it not doable. However if you are a developer you can contribute to pfc and implement a new parameter, for exemple : the 'channels_with_history' parameter
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby neomades » Mon Nov 13, 2006 4:01 pm

Well, I don't know PHP enough to add such a feature. But maybe I could patch my chat by removing the line in charge with the channels display? All I want to do is not to open a window for each channel, but only one for the Main Room. I suppose there is a function somewhere that calls the window creation for each element of the 'channels' array... But I couldn't find it for I don't fully understand the code :(

Thanks
neomades
New member
 
Posts: 6
Joined: Fri Nov 10, 2006 8:05 am
Location: France
  • Website
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 3 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