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

Guests: 13

112.111.x.x forum
175.42.x.x forum
178.255.x.x forum
198.56.x.x forum
36.248.x.x forum
36.248.x.x forum
5.63.x.x news
54.224.x.x forum
66.249.x.x forum
66.249.x.x forum
88.190.x.x forum
91.214.x.x forum
94.23.x.x dilbertplus

Last Seen

code72 Tue 14:53
Wussie Tue 13:48
cs16cj Tue 11:43
Dodgeitorelse Tue 08:24
Rich Tue 07:42

Newest Members

Forums
Server list only for special zones (lgsl_list)
Blackwolf
Sat Jun 23 2012, 08:24AM

Posts: 4
Joined: Sat Jun 23 2012, 07:13AM
Registered Member #7260
Is it possible to display the complete server list only for the zones?
Like "LGSL&lgsl_zone_number=2", so it will only display servers which are in zone2

Or is it heavy to code that?

regards
BlackWolf

Website
Wussie
Sat Jun 23 2012, 11:32AM

Posts: 160
Joined: Sun Mar 22 2009, 06:53AM
Registered Member #4938
Hi Blackwolf.
This was explained in the readme section:

For the compact block, aka zone, which shows the map image:

global $output, $lgsl_zone_number;
$lgsl_zone_number = 1;
$output = "";
require "lgsl/lgsl_files/lgsl_zone.php";
echo $output;
unset($output);

The zone number links with zones set in the LGSL admin area.

So in your case you will need to insert the above lines of code inside your web page, enclosed within "<?php" and "?>", and don't forget to make $lgsl_zone_number = 2 if you want servers in zone 2 to be displayed. And yes, you can have multiple servers in one zone, which will be all displayed together.
Have fun!
Website
Blackwolf
Sat Jun 23 2012, 12:06PM

Posts: 4
Joined: Sat Jun 23 2012, 07:13AM
Registered Member #7260
Thank you for the fast answer. But I don't mean the Blocks. I want to show only zones at the global list, thats why I spoke from lgsl_list
I want to use zones at this:

So I can show seperate serverlists with zones settings. Easiest way would be with given parameter Like "http://www.destinationunreal.com/modules.php?name=LGSL&lgsl_zone_number=2"

Would be nice if you can help

regards
BlackWolf



Website
Wussie
Sun Jun 24 2012, 05:14AM

Posts: 160
Joined: Sun Mar 22 2009, 06:53AM
Registered Member #4938
Ok, I get it: you want servers displayed as list and not as blocks. This is how you do it:
First you edit lgsl/index.php: insert the following code BEFORE the line starting with "if":
if (isset($_GET['lgsl_zone_number']) && is_numeric($_GET['lgsl_zone_number'])) { $lgsl_zone_number = $_GET['lgsl_zone_number']; }

Then you edit lgsl/lgsl_files/lgsl_list.php: find the first line beginning with "$server_list =" and replace the whole line with:
if (isset($lgsl_zone_number)) {
$server_list = lgsl_query_group( array( "request"=>"s", "zone"=>$lgsl_zone_number ) );
} else { $server_list = lgsl_query_group();
}

Then you should be able to view the server list of zone 2 by accessing http://www.destinationunreal.com/modules.php?name=LGSL&lgsl_zone_number=2 .
Website
Blackwolf
Sun Jun 24 2012, 06:44AM

Posts: 4
Joined: Sat Jun 23 2012, 07:13AM
Registered Member #7260
GREAT!
Works without problems!
A big Thank you!


btw..
Your LGSL integration on your site looks very good!



Website
Wussie
Sun Jun 24 2012, 09:18AM

Posts: 160
Joined: Sun Mar 22 2009, 06:53AM
Registered Member #4938
Thanks, yours looks cool too. Always nice when someone notices..

One little suggestion: you might want to check how "Available" is spelled in the page title. May The Force be with you!
Website
Blackwolf
Tue Jun 26 2012, 05:21AM

Posts: 4
Joined: Sat Jun 23 2012, 07:13AM
Registered Member #7260
The title is now changed. I read now the title from the LGSL "comment", so it fits the Zones which are displayed.

Thanks again
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