Check for Admin Message on log in?

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Rashomon
Posts: 72
Joined: 11 Aug 2010, 19:48

Check for Admin Message on log in?

Postby Rashomon » 31 Jan 2012, 18:16

I want to be able to communicate messages/info to users when they log on - server down times, known issues, etc.

I found the onAdminMessage event, so I can create a pop-ups when I manually send messages through the admin tool. Is there a built-in function to check for admin messages, though? (I can probably do something with checking an XML file, but it would be nice if there's something already built in.)
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Postby rjgtav » 31 Jan 2012, 22:48

Hi.

When you send an Admin Message through the AdminTool (and also via a Moderator user), that message is instantly sent to every user that is online, and won't appear to new users that come in.

My suggestion here is for you to really use XML or something like that to store the message to be shown. That way you save a lot of server-side traffic.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 48 guests