• 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

Is it possible to invite other chatters into a private Chat?

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

Post a reply
4 posts • Page 1 of 1

Postby Beni » Thu Sep 21, 2006 2:00 pm

As far as i understood the code since now, the private rooms and public rooms are based on the same code.
So it should not be much of a problem to let users inside private chats invite others outside.

Does somebody know how or where to implement this feature?
Beni
Member
 
Posts: 65
Joined: Thu Sep 21, 2006 10:50 am
Top

Postby phpfreechat » Thu Sep 21, 2006 2:17 pm

Private chat are *special* rooms. It has not been designed to make possible invitations of a third person in a private chat.

However, by design, invitations car be implemented on classique channels (as on IRC protocol). A new command should be written : /invite nickname

It's not trivial but it's fesable.
Feel free to implement it and submit your code, if it's well written I will integrate your contribution.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Beni » Thu Sep 21, 2006 2:39 pm

Thank you for your suggestion!
Do you have any hint how the chat system decides which users are in which channles?
I think the /invite command needs a additional /accept_invite (or something) so the invited user is able to go to the channel he has been invited to.

Th Question i wanted to answer in my first post is, if it is possible to have more than 2 persons in one private chat, e.g. is the chat system itself able to handle this constellation?
Beni
Member
 
Posts: 65
Joined: Thu Sep 21, 2006 10:50 am
Top

Postby phpfreechat » Thu Sep 21, 2006 2:50 pm

Beni wrote:Do you have any hint how the chat system decides which users are in which channles?

As a concret example, look at src/commands/getonlinenick.class.php :
Code: Select all
$users = $container->getOnlineNick($recipient);

Beni wrote:I think the /invite command needs a additional /accept_invite (or something) so the invited user is able to go to the channel he has been invited to.

I'm not sure how IRC handle /invite command. But I think the user is invited by default. However to prevent abuse, a "/ignore nickname" command should be welcomed.

Beni wrote:Th Question i wanted to answer in my first post is, if it is possible to have more than 2 persons in one private chat, e.g. is the chat system itself able to handle this constellation?

No, pfc has not been designed to support more than two users in a private chat.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Post a reply
4 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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