Accessing chat server side

Everything about the SmartFoxBits UI Components for SmartFoxServer 2X. Post your questions, suggestions and bug reports.

Moderators: Bax, Lapo

Accessing chat server side

Postby Eldido » 05 Mar 2012, 11:04

Hi,

Maybe i'm missing out something obvious but I'm wondering : is there a simple way to have access to chat server side. I'm asking because I would like to log chat sessions along with some data about games for statistic and moderation purposes.

thanks
User avatar
Eldido
 
Posts: 8
Joined: 04 Jan 2012, 12:55
Location: Paris, France

Re: Accessing chat server side

Postby rjgtav » 05 Mar 2012, 23:16

Hi.
Well, you can listen to the PUBLIC_MESSAGE and PRIVATE_MESSAGE events that are fired at the Zone-Level.
In those events, one of the parameters is the SFSEventParam.MESSAGE, which contains the message that was sent. You can use it for logging purposes.

For more information, please check the SFSEventType documentation.
Skills: SFS Pro/Basic, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS
SFS Tutorials: http://sfs-tutor.blogspot.com/ - I no longer update it nor visit it. Some examples may be bugged.
If I take too long to reply, feel free to PM me
User avatar
rjgtav
 
Posts: 2809
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Accessing chat server side

Postby Eldido » 06 Mar 2012, 09:27

great !

thank you very much Rjgtav !
User avatar
Eldido
 
Posts: 8
Joined: 04 Jan 2012, 12:55
Location: Paris, France


Return to SmartFoxBits for SFS 2X

Who is online

Users browsing this forum: No registered users and 1 guest