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

Guests: 12

107.21.x.x forum
157.55.x.x top
175.44.x.x forum
175.44.x.x signup
192.157.x.x forum
199.15.x.x forum
220.181.x.x forum
36.251.x.x forum
5.63.x.x news
66.249.x.x user
8.35.x.x forum
94.23.x.x forum

Last Seen

Rich Sat 10:11
mkden Sat 09:40
Wussie Sat 09:40
Ap1962 Sat 06:52
Jack win Sat 06:16

Newest Members

Forums
Players Online?
Shanekiller
Wed Nov 11 2009, 10:45PM
Posts: 53
Joined: Wed Apr 15 2009, 11:56AM
Registered Member #4989
How could i take the "Servers: 2 Players: 0 Max Players: 28 " and add is somewhere els and have it say "Gamers Online 0/28"?
Website
Rich
Thu Nov 12 2009, 03:00AM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

Bottom of

http://www.greycube.com/help/readme/lgsl/extra-info/
Website
Flesh
Thu Nov 12 2009, 03:24AM

Posts: 63
Joined: Mon Oct 19 2009, 07:16AM
Registered Member #5495
It is possible to make still so
Online servers {$total['servers_online']}
Offline servers {$total['servers_offline']}

Website
Rich
Thu Nov 12 2009, 03:33AM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

Yes:


echo "
Online servers {$total['servers_online']} <br />
Offline servers {$total['servers_offline']}";
Website
Flesh
Thu Nov 12 2009, 08:03AM

Posts: 63
Joined: Mon Oct 19 2009, 07:16AM
Registered Member #5495
Shanekiller
Players: {$total['players']}/{$total['playersmax']}

Website
Shanekiller
Thu Nov 12 2009, 03:09PM
Posts: 53
Joined: Wed Apr 15 2009, 11:56AM
Registered Member #4989
Hi, Thanks but i tried to put this in a module that allows php and it only shows the text i'm using joomla.
Website
Rich
Thu Nov 12 2009, 04:11PM
Posts: 1700
Joined: Wed Nov 26 2003, 04:30PM

You need to put the whole of that code at the bottom of the readme, from the require to the echo.

You will also need to adjust the path to be correct.
Website
Shanekiller
Thu Nov 12 2009, 05:20PM
Posts: 53
Joined: Wed Apr 15 2009, 11:56AM
Registered Member #4989
It still didn't work i copied the whole thing this is what i put
require "components/lgsl/lgsl_files/lgsl_class.php";
lgsl_query_cached_all("s");
$total = lgsl_cached_totals();
echo " Servers: {$total['servers']}
Servers Online: {$total['servers_online']}
Servers Offline: {$total['servers_offline']}
Players: {$total['players']}
Max Players: {$total['playersmax']} ";
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