• 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

On channels and frozen channels

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

Post a reply
3 posts • Page 1 of 1

On channels and frozen channels

Postby Sjroepus » Fri Jan 11, 2013 3:23 pm

I've read the faq and the docs. My questions is in there, but just don't get it. I've tried changing according to what you are saying, but I'm not getting it to work.

Let's say I want two channels. One for everybody and one for operators only. So what I've understood so far is that I have to work with the channel (for open chat) and frozen channel (for operators) parameter.
So to set up the open channel I have to do this:
Code: Select all
var $channels = array('open channel');

And to set up a channel for operators only I have to do this:
Code: Select all
 var $frozen_channels = array('Operator channel' => 'user one');


But this doesn't work. Tip please?
Sjroepus
New member
 
Posts: 2
Joined: Fri Jan 11, 2013 3:16 pm
Top

Re: On channels and frozen channels

Postby Sjroepus » Sat Jan 12, 2013 12:52 pm

Maybe I should rephrase the question, without telling you what I've done until now.

How can I create two channels? One open chat and channel for specific users.

Thanks!
Sjroepus
New member
 
Posts: 2
Joined: Fri Jan 11, 2013 3:16 pm
Top

Re: On channels and frozen channels

Postby OldWolf » Wed Jan 16, 2013 1:08 am

Sjroepus wrote:Maybe I should rephrase the question, without telling you what I've done until now.

How can I create two channels? One open chat and channel for specific users.

Thanks!

Sorry, I've been away for the weekend.

Two things:
var $frozen_channels = array('Operator channel' => 'user one');
1. You shouldn't be making these settings in the global settings file, but on the chat page itself. I only bring this up since you have var at the front, which is how the global settings works if I remember right.
2. You built the array wrong, which is why it didn't work. array('Operator channel' => 'user one') creates an array with a single key of "Operator channel" which has a value of "user one"... instead what you want is array('operator channel', 'user one').

Now, all that said, I believe you misunderstand how this all works.

"channels" is the starting channels for the user. "frozen_channels" restricts the user to only be able to access those channels that are listed (they can't create any channel they want, only the channels listed). In order to use them in the scenario you are describing, you need to create (or make use of an existing) user registration system. Once a user is logged in, if they are an operator, you would set their frozen_channels to whatever operators can access... otherwise, set it to the restricted settings.
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
3 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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