Simple server query

Post Reply
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri May 18, 2012 3:20 pm

Simple server query

Post by soja »

Mainly for john, but if anyone else can do this, great.

I saw your post http://www.nfoservers.com/forums/viewto ... =19&t=3733
about querying servers.

My question is, could you modify that script so instead of showing http://www.nfoservers.com/query/example3.html with the minimal style, it could JUST return the player count, and it could be added in-line with text.

We have a list of game servers on our site and we would like to have the server name, the server status, and a Click to join link(which we can do easily)

Ex:

Zombie Escape 55/60 Click to Join!
(with click to join the steam hyperlink to launch cs etc)

Thanks!
Not a NFO employee
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: Simple server query

Post by kraze »

Something like this?

http://admin.site.nfoservers.com/status/NewStatus5/

That is as minimal as I have taken it down but it was pretty easy, about five minutes and some .css editing did the trick.
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Simple server query

Post by soja »

I was looking for just NFOs script returning active/possible players.

So the NFO script would return:
55/60

only.

The rest would be static text
Not a NFO employee
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: Simple server query

Post by kraze »

You would edit the .css down further but I don't think you'd be able to get it in to just a simple line without doing some heavy edits to the .css.
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: Simple server query

Post by kraze »

This is about the best I could do;
http://admin.site.nfoservers.com/status/NewStatus5/
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Simple server query

Post by soja »

Thanks
Not a NFO employee
Post Reply