sendMessageToGroup

Post here your suggestions for new possible features in SmartFoxServer.

Moderators: Lapo, Bax

Post Reply
Gosub
Posts: 3
Joined: 20 Sep 2007, 08:00
Location: Munich, Germany

sendMessageToGroup

Post by Gosub »

It would be very nice to have a method that sends messages to a group of recipients - let's say sendMessageToGroup (just like sendObjectToGroup). When using sendObjectToGroup for this purpose, neither the built in BadWordsFilter nor AntiFlood can be used.

Or am I wrong?
Thanks!
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

You're right.
So probably the method should be called sendPublicMessageToGroup()

I am wondering how this would work from the client side...
In a normal chat you would select multiple users from a dropdown and then send the message?
Or maybe this function should only exist on the server side?
Lapo
--
gotoAndPlay()
...addicted to flash games
Gosub
Posts: 3
Joined: 20 Sep 2007, 08:00
Location: Munich, Germany

Post by Gosub »

Thanks for your immediate answer, Lapo!

In my case there is an isometric chat view that is larger than the visible area, so users can walk around and "meet" different people depending on where they are. Messages should be sent only only to those users that are currently inside the visible area. Therefore I do not need any dropdown - the group ist collected automatically.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

I see... interesting! :)
Ok, we'll add it to the to-do list
Lapo
--
gotoAndPlay()
...addicted to flash games
Gosub
Posts: 3
Joined: 20 Sep 2007, 08:00
Location: Munich, Germany

Post by Gosub »

GREAT!!!
DrD00m0
Posts: 1
Joined: 03 Sep 2008, 20:00

Post by DrD00m0 »

Just wondering when we can expect this feature. Is it a matter of weeks or months?

If not anytime soon I'll implement my own solution - simply wanted to sync up and see what's ahead.

Thanks for your help!
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Hi,
the next update is planned for end of November/beginning of December.
And yep, I think that this feature is going to be added in the next release.

If you're in a hurry, you can easily implement it on the server side using the sendGenericMessage() method.

You just need to mimick the same XML format used by the public message and provide a custom list of recipients.
NOTE: if you plan to send the message across multiple rooms you might have problems detecting the sender on the client side. This is because each client only "knows" the users that exist in the room(s) that he has joined.

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply