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

Guests: 14

180.191.x.x news
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x forum
54.92.x.x forum
68.180.x.x forum
68.180.x.x user

Last Seen

Dodgeitorelse Thu 23:15
HotRod Thu 19:59
jollyhersblog Wed 05:05
mmotony Mon 03:03
ESO2017 Wed 01:36

Newest Members

Forums
Help on Joomla LGSL display layout customization
lycanwrath
Wed Jun 12 2013, 07:32AM
Posts: 18
Joined: Tue Jun 04 2013, 04:43AM
Registered Member #7741
Hello,

1. I am trying to get LGSL server details to show up in a modal popup window, preserving the website style without displaying the header

2. I would also like to show servers by a batch, for e.eg 15 rows per page

3. Is there a way to create links to show filtered server lists by game?

Can someone please point me in the right direction on how to do so please?
I am using LGSL joomla version 5.81

Thanks in advance!!!
Website
Wussie
Thu Jun 13 2013, 06:17PM

Posts: 430
Joined: Sun Mar 22 2009, 06:53AM
Registered Member #4938
Hi!
If you do a quick search through the forum you will find:

1. a discussion on popup windows, although I'm sure there are more ways to do it
2. a discussion on pagination which may help you limit the max number of servers displayed on one page

As for filtering by game, it's pretty simple to do. Let's say you want to display only ut2004 servers on one page:
First you go into the admin panel and assign the same zone number for each ut2004 server, say it's zone 3.
Then you display a list of servers in zone 3 by setting $lgsl_zone_number=3; and requiring lgsl_zone.php for example. Piece o'cake

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
lycanwrath
Thu Jun 20 2013, 05:07AM
Posts: 18
Joined: Tue Jun 04 2013, 04:43AM
Registered Member #7741
Thnak you very much for the reply wussie.

I managed to implement the modal and pagination

I am still stuck with the filter by game

I have noticed this in lgsl_class.php: //EXAMPLE USAGE: lgsl_query_group( array("request"=>"sep", "hide_offline"=>0, "random"=>0, "type"=>"source", "game"=>"cstrike") )

Do you or anyone know how I can pass the parameters though a link or some other method so as to retrieve specific games for that link?
I would like to be able to use the links so that the user can click for different game server lists according to the game title.
I am using Joomla version of LGSL
Website
Wussie
Sun Jun 23 2013, 01:14PM

Posts: 430
Joined: Sun Mar 22 2009, 06:53AM
Registered Member #4938
Yes, you can do it that way too.
Say you do the group query inside a script named group.php, like this:
$type = $_GET['type']; $game = $_GET['game'];
lgsl_query_group( array("request"=>"sep", "hide_offline"=>0, "random"=>0, "type"=>$type, "game"=>$game) )

Then, if you use LGSL standalone, you include this kind of links in your webpages:
http://www.yourwebpage.com/lgsl/group.php?type=source&game=cstrike

Some adjustments have to be made to the links if you use the joomla version ofcourse.

And I strongly recommend you write some "if" conditions to test the variables passed by the $_GET() function before using them.

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
lycanwrath
Thu Jun 27 2013, 08:41AM
Posts: 18
Joined: Tue Jun 04 2013, 04:43AM
Registered Member #7741
Thanks a lot for the assist Wussie,

This seems very interesting but I have no clue on how to do that with the joomla version as the .php file cannot be accessed directly by path in joomla

EDIT:
I managed to do it.
In Joomla LGSL the file to modify is lgsl_list.php

Change the code below:
$server_list = lgsl_query_group();

To:
$game = $_GET['game'];
$server_list = lgsl_query_group( array("request"=>"sep", "hide_offline"=>0, "random"=>0, "type"=>"", "game"=>$game));


An example of the link towards the game is as follows:-
www.mywebsite.com/index.php?option=com_lgsl&view=list&game=bfbc2

Replace bfbc2 with any other game name found in the lgsl_protocol list
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