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

Guests: 43

167.86.x.x comment
173.212.x.x forum
216.244.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.4.x.x dilbertplus
54.235.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x lgsl
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
66.249.x.x forum

Last Seen

4Rsercom Thu 21:49
Apophis01 Fri 10:15
Bommel Wed 09:39
frob Sat 21:14
ODDBALL118 Fri 17:07

Newest Members

Forums
Possible to fix something like id count?
Nouton^
Sun Aug 25 2013, 08:42PM

Posts: 22
Joined: Thu Aug 01 2013, 10:18PM
Registered Member #7778
UPDATE FROM:
Possible to add most players in the server, server go to the top?


possible to fix something like id count
but if the server settings is
$lgsl_config['sort']['servers'] = "players";
then the counter autochange 1 to the top then 2,3,4,5,6, m.m like server settings for most players, server on the top.

//Nouton^


NgSwe.se
Website
Wussie
Tue Aug 27 2013, 04:51PM

Posts: 437
Joined: Sun Mar 22 2009, 06:53AM
Registered Member #4938
A question which nobody understands will get no answer.

Maybe you should try writing in your own language.

Not working for you?
Don't forget to share the IP/ports of the offending server so that people can do tests and help you.
Oh, and if you're using a modified lgsl_protocol.php, make sure you disable the feed or it may NOT work!
Website
Nouton^
Tue Aug 27 2013, 05:18PM

Posts: 22
Joined: Thu Aug 01 2013, 10:18PM
Registered Member #7778
Wussie wrote ...

A question which nobody understands will get no answer.

Maybe you should try writing in your own language.

okey,
its hard to describe.
just want a counter for ex: server 1, server 2 in front the server name.

//Nouton^

NgSwe.se
Website
Dodgeitorelse
Tue Aug 27 2013, 06:56PM
Posts: 246
Joined: Sun Dec 12 2010, 09:16AM
Registered Member #6457
maybe try

Server {$server['o']['id']} -

before server name. untested

lack of effort on your part requires less effort on my part
Website
Nouton^
Tue Aug 27 2013, 07:01PM

Posts: 22
Joined: Thu Aug 01 2013, 10:18PM
Registered Member #7778
Dodgeitorelse wrote ...

maybe try

Server {$server['o']['id']} -

before server name. untested


have test it but have settings:$lgsl_config['sort']['servers'] = "players";

when server move to the top the count its the same.
i want its update if server move to the top its be number 1.

//Nouton^

NgSwe.se
Website
Dodgeitorelse
Wed Aug 28 2013, 07:53AM
Posts: 246
Joined: Sun Dec 12 2010, 09:16AM
Registered Member #6457
sounds like you want the id in the database to change so that the first server with players is number 1 regardless of which server name. That can be done but not with id.

maybe use something like i=0; and then i++ ?????

lack of effort on your part requires less effort on my part
Website
Nouton^
Wed Aug 28 2013, 10:06AM

Posts: 22
Joined: Thu Aug 01 2013, 10:18PM
Registered Member #7778
Dodgeitorelse wrote ...

sounds like you want the id in the database to change so that the first server with players is number 1 regardless of which server name. That can be done but not with id.

maybe use something like i=0; and then i++ ?????

yes something like that, but not the id i want a new counter. ex: make exact like id but its a new counter for counter the server and not counter the id so i dont need to change the comment line every time the server id/counter autoupdate.

//Nouton^

NgSwe.se
Website
Wussie
Wed Aug 28 2013, 04:07PM

Posts: 437
Joined: Sun Mar 22 2009, 06:53AM
Registered Member #4938
OMG leave the database alone, you don't need to touch it!
You already have $lgsl_config['sort']['servers'] = "players"; so LGSL will automatically display the most populated server on top followed by the others.
Now all you have to do is put numbers like 1,2,3,4.... next to each server, from top to bottom.
You can do that quite easily by editing lgsl_list.php, look at the first lines and find
foreach ($server_list as $server)
{
$misc = lgsl_server_misc($server);
$server = lgsl_server_html($server);

$output .= "
<tr style='".lgsl_bg()."; table-layout:fixed'>

<td style='white-space:nowrap; text-align:center'>
<img alt='' src='{$misc['icon_status']}' title='{$misc['text_status']}' style='vertical-align:middle' />
and replace with
$rank = 1;
foreach ($server_list as $server)
{
$misc = lgsl_server_misc($server);
$server = lgsl_server_html($server);

$output .= "
<tr style='".lgsl_bg()."; table-layout:fixed'>
<td style='text-weight:bold; text-align:center; padding:0 4px'>".$rank;
$rank++; $output .= "</td>
<td style='white-space:nowrap; text-align:center'>
<img alt='' src='{$misc['icon_status']}' title='{$misc['text_status']}' style='vertical-align:middle' />

That's it!

Not working for you?
Don't forget to share the IP/ports of the offending server so that people can do tests and help you.
Oh, and if you're using a modified lgsl_protocol.php, make sure you disable the feed or it may NOT work!
Website
Dodgeitorelse
Wed Aug 28 2013, 04:21PM
Posts: 246
Joined: Sun Dec 12 2010, 09:16AM
Registered Member #6457
hehe same thing I told him but I wasn't going to go through the full explanation due to the lack of effort in the question plus the fact of 2 forum topics for same thing so I just gave an answer that told him the idea not the solution hehehe

lack of effort on your part requires less effort on my part
Website
Nouton^
Wed Aug 28 2013, 04:32PM

Posts: 22
Joined: Thu Aug 01 2013, 10:18PM
Registered Member #7778
Wussie wrote ...

OMG leave the database alone, you don't need to touch it!
You already have $lgsl_config['sort']['servers'] = "players"; so LGSL will automatically display the most populated server on top followed by the others.
Now all you have to do is put numbers like 1,2,3,4.... next to each server, from top to bottom.
You can do that quite easily by editing lgsl_list.php, look at the first lines and find
foreach ($server_list as $server)
{
$misc = lgsl_server_misc($server);
$server = lgsl_server_html($server);

$output .= "
<tr style='".lgsl_bg()."; table-layout:fixed'>

<td style='white-space:nowrap; text-align:center'>
<img alt='' src='{$misc['icon_status']}' title='{$misc['text_status']}' style='vertical-align:middle' />
and replace with
$rank = 1;
foreach ($server_list as $server)
{
$misc = lgsl_server_misc($server);
$server = lgsl_server_html($server);

$output .= "
<tr style='".lgsl_bg()."; table-layout:fixed'>
<td style='text-weight:bold; text-align:center; padding:0 4px'>".$rank;
$rank++; $output .= "</td>
<td style='white-space:nowrap; text-align:center'>
<img alt='' src='{$misc['icon_status']}' title='{$misc['text_status']}' style='vertical-align:middle' />

That's it!



Thanks for the support its work =)

//Nouton^

NgSwe.se
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