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

Guests: 19

185.136.x.x signup
216.244.x.x forum
3.80.x.x forum
35.192.x.x user
46.229.x.x forum
46.229.x.x dilbertplus
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 forum
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x forum
46.229.x.x dilbertplus
54.36.x.x forum

Last Seen

85filip58 Tue 15:15
4Rsercom Thu 21:49
Apophis01 Fri 10:15
Bommel Wed 09:39
frob Sat 21:14

Newest Members

Forums
Need help with LGSL coding in php - webspell
anderseN
Fri Dec 14 2012, 06:53PM
Posts: 4
Joined: Fri Dec 14 2012, 06:46PM
Registered Member #7481
Good evening!

I have installed IGSL on my website (www.gamepark.se), but I there are a coupple of things I want to change but unfortunately I have no idea how to do this.

Solution A
So, you know when you press the magnifying glass to see more game info, you get redirected to a new blank page with extended server info? I want this info to be added on the same site as the one you clicked the magnifying glass. What I mean is that I want it to be so that when you press the magnifying glass extended server info will come instantly on the same page below.

I know this is possible, but I'm not sure how to "merge" those two codes into one.

Solution B
The simplest way to do this might be to just change the page you get to when you press the magnifying glass to a new page on the website. So my question is how to I change the link of the magnifying glass?


NB! I'm using the latest stand-alone LGSL on my webspell cms

- anderseN
Website
Wussie
Sat Dec 15 2012, 10:26AM

Posts: 437
Joined: Sun Mar 22 2009, 06:53AM
Registered Member #4938
Hi anderseN.

If you only have one server, you don't have to merge anything, you just replace the server list page with the server details page.

In other words, in your CMS you replace the link "http://scrubnub.com/gp/index.php?site=LGSL" with "http://scrubnub.com/gp/index.php?site=LGSL&s=1", which will display servers 1's details instead of the list containing server 1.

If you have a few more servers, first make sure they are all in the same zone (in the database) and then edit "lgsl/index.php", define a variable $lgsl_zone_number = 1 (where 1 is your zone number) and then require "lgsl_files/lgsl_zone.php" instead of "lgsl_files/lgsl_list.php".

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
anderseN
Sat Dec 22 2012, 04:20PM
Posts: 4
Joined: Fri Dec 14 2012, 06:46PM
Registered Member #7481
Wussie wrote ...

Hi anderseN.

If you only have one server, you don't have to merge anything, you just replace the server list page with the server details page.

In other words, in your CMS you replace the link "http://scrubnub.com/gp/index.php?site=LGSL" with "http://scrubnub.com/gp/index.php?site=LGSL&s=1", which will display servers 1's details instead of the list containing server 1.

If you have a few more servers, first make sure they are all in the same zone (in the database) and then edit "lgsl/index.php", define a variable $lgsl_zone_number = 1 (where 1 is your zone number) and then require "lgsl_files/lgsl_zone.php" instead of "lgsl_files/lgsl_list.php".


Your speeking greek. Take a look at: http://www.second-gaming.se/servrar.php

How can I do that on a stand alone version with webspell?
Website
Wussie
Sun Dec 23 2012, 05:22AM

Posts: 437
Joined: Sun Mar 22 2009, 06:53AM
Registered Member #4938
HAHA ) I speak geek not greek!

I see you have a working serverlist at http://scrubnub.com/gp/index.php?site=LGSL.
All you need to do is to correct the links to the details pages, the ones under the magnifying glass:
it should be
http://scrubnub.com/gp/lgsl/?s=1
instead of
http://scrubnub.com/gp/lgsl/?s=Array


Did you modify the file "gp/lgsl/lgsl_files/lgsl_list.php" ? check line 68, it has to be
<a href='".lgsl_link($server['o']['id'])."' style='text-decoration:none'>
for those links to work.

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
anderseN
Sun Dec 23 2012, 05:15PM
Posts: 4
Joined: Fri Dec 14 2012, 06:46PM
Registered Member #7481
Wussie wrote ...

HAHA ) I speak geek not greek!

I see you have a working serverlist at http://scrubnub.com/gp/index.php?site=LGSL.
All you need to do is to correct the links to the details pages, the ones under the magnifying glass:
it should be
http://scrubnub.com/gp/lgsl/?s=1
instead of
http://scrubnub.com/gp/lgsl/?s=Array


Did you modify the file "gp/lgsl/lgsl_files/lgsl_list.php" ? check line 68, it has to be
<a href='".lgsl_link($server['o']['id'])."' style='text-decoration:none'>
for those links to work.


Allright! Now I need the magnifying glass to show up in the same window as servers. Or below servers. How do I do that?
Website
Wussie
Sun Dec 23 2012, 08:22PM

Posts: 437
Joined: Sun Mar 22 2009, 06:53AM
Registered Member #4938
As I suggested before...
If you have a few more servers, first make sure they are all in the same zone (in the database) and then edit "lgsl/index.php", define a variable $lgsl_zone_number = 1 (where 1 is your zone number) and then require "lgsl_files/lgsl_zone.php" instead of "lgsl_files/lgsl_list.php".


That means you have to edit "lgsl/index.php", insert a line
$lgsl_zone_number = 1;
and then replace the required lgsl_list.php with lgsl_zone.php .
If you don't have the necessary php skills to do that, I strongly suggest you ask someone to do it for you.

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
anderseN
Sun Dec 23 2012, 10:42PM
Posts: 4
Joined: Fri Dec 14 2012, 06:46PM
Registered Member #7481
Allright. I've done it. But it still wont work as I want it to. Take a look. http://www.second-gaming.se/servrar.php click the magnifiying glass.

I want the same feature in a way.

Happy christmas!
Website
Wussie
Tue Dec 25 2012, 05:24AM

Posts: 437
Joined: Sun Mar 22 2009, 06:53AM
Registered Member #4938
And Happy Holydays to you to anderseN!

You can get the same result on your page when you click the magnifying glass.
But if you want to display details for several servers on the same page, then you need to do some editing and call "lgsl_files/lgsl_details.php" once for each server... not that complicated really.

You need to make a copy of your "lgsl/index.php" file and rename it "lgsl/detailed.php" or something, then edit it and replace
$s = isset($_GET['s']) ? $_GET['s'] : "";

if (is_numeric($s)) { $lgsl_server_id = $s; require "lgsl_files/lgsl_details.php"; }
elseif ($s == "add") { require "lgsl_files/lgsl_add.php"; }
else { require "lgsl_files/lgsl_list.php"; }

echo $output;
with
$lgsl_server_id = 1; require "lgsl_files/lgsl_details.php"; echo $output;
$lgsl_server_id = 2; require "lgsl_files/lgsl_details.php"; echo $output;
Last step is to link "lgsl/detailed.php" instead of "lgsl/index.php" on your website.

Is this more like what you wanted?

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
 

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