Username:    Password:        Click Here To Signup     Forgotten Password
Main Menu
Online
Members: 0

Guests: 9

112.111.x.x forum
123.151.x.x forum
157.56.x.x forum
175.42.x.x forum
180.76.x.x comment
184.72.x.x forum
208.115.x.x signup
54.224.x.x forum
66.249.x.x forum

Last Seen

ODDBALL118 Tue 16:23
code72 Tue 14:53
Wussie Tue 13:48
cs16cj Tue 11:43
Dodgeitorelse Tue 08:24

Newest Members

Forums
How to add titles above columns and fix L4D version bug?
Ettans
Mon Mar 16 2009, 08:22AM
Posts: 2
Joined: Mon Mar 16 2009, 08:15AM
Registered Member #4918
Hi! I'm having trouble with adding titles above the server list and also the game-version is acting weird. It usually shows for 1-3 servers and sometimes it doesn't show up at all.

Current server list:


How I want it to be:


From those images you can also see that only 2 servers have the version slot filled in.

Code for displaying version, in lgsl_list.php:


<td title='Server version' style='white-space:nowrap; text-align:right'>
{$server['e']['version']}
</td>


If anyone can help me out here, I'd really appreciate it.

-Ettans


Edit: I got the title thing done, but still having trouble with versions.
Website
Rich
Fri Mar 20 2009, 09:56PM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

s = standard info
e = extra info
p = player info

You need to edit the lgsl_list.php and change

lgsl_query_cached_all("s");
to
lgsl_query_cached_all("se");

As version will be 'extra' that is not requested, you would only see it where the server details have been viewed and the 'extra' would then be placed into the cache for a short time.
Website
Ettans
Tue Mar 24 2009, 02:59PM
Posts: 2
Joined: Mon Mar 16 2009, 08:15AM
Registered Member #4918
Thank you very much Richard!
Website
 

Jump:     Back to top


You are not logged in - Click Here To Signup

Username:    Password:   

Mini Buttons

.... © GreyCube.com - Richard Perry - Powered by e107.org