View Single Post
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 07-20-2016 , 01:00   Re: Gameserver Chat to Browser
Reply With Quote #13

Quote:
Originally Posted by Arkarr View Post
Quote:
Originally Posted by Deathknife View Post
Why not insert messages into MySQL(either directly or http requests) and then just load the messages on web page with auto-refresh using jquery/ajax?
Bad practice I guess.
Well, I'm also very curious about this one...

You seriously have to explain your "bad practice"!

It would be the most obvious way to do it:

- SourceMod plugin inserting data (e.g. steamid, message, playername, etc) into SQL.
- PHP (API) fetching directly from the database
- Some sort of jquery/ajax can indeed be used to update things, by selecting stuff that's newer than what's in the browser already.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline