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

Guests: 22

216.244.x.x user
34.203.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 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 lgsl
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
91.242.x.x forum

Last Seen

mrstipfan Wed 19:48
Gagi2 Mon 16:30
EFiNST0RM Sun 15:39
85filip58 Sun 12:14
brlight Tue 04:18

Newest Members

Forums
How to appear a different list
Ej
Mon Aug 03 2009, 06:05AM
Posts: 13
Joined: Sun Jul 26 2009, 05:07AM
Registered Member #5284
In lgsl_details.php there is this command $lookup = lgsl_lookup_id($_GET['s']);
which says to look up for the number ID and present the results. What i want to do is this.
I want to make a page where i enter the id myself so i can appear in the same page my own data, like the tables from all my servers. I am asking what to edit (in a different page) so instead of getting a list i will appear my own tables (that i can make)

The page i want to make is like this:
Get the ID 1 and appear some tables, then at another line get the ID 2 and present other tables and so on


ty
Website
Rich
Mon Aug 03 2009, 08:03AM
Posts: 1717
Joined: Wed Nov 26 2003, 04:30PM

Do you want this page to list all your servers, or have a form where you have to enter an ID ?

Could you make a picture of what you want to do.
Website
Ej
Mon Aug 03 2009, 10:33AM
Posts: 13
Joined: Sun Jul 26 2009, 05:07AM
Registered Member #5284
I have 3 servers in lgsl and their details appear in this pages
e107_plugins/lgsl/?s=1
e107_plugins/lgsl/?s=2
e107_plugins/lgsl/?s=3

In each page at first u get a table like this (I edited so it keep only the data i want)

after come the players and then the extrea info.

What i want is to make a php page, lets say for example servers.php where i can choose the data presented. For example. I want to show the tables shown above for my 1st server after the same table for my second server and then another third table. But to do this I have to say what ID my servers have and then for php to look for that data. Fisrt to show the table for my server with ID 1, then the table for ID 2 and so on.

I want to make this in a seperate page and keep the data i get from e107_plugins/lgsl/?s=1 or e107_plugins/lgsl/?s=2 in a different page

Practically, i dont want to use the e107_plugins/lgsl/ link to show my servers, but i want to have the ability to choose myself what data to be presented, and to do that i have to say what server ID to look for and present the data

PS the site I am making is working here LINK but not fully operational yet. I have changed alot of things.
Hope i made my point clear, ty for ur time
Website
Rich
Tue Aug 04 2009, 07:36AM
Posts: 1717
Joined: Wed Nov 26 2003, 04:30PM

Copy the lgsl_list.php ( example name lgsl_custom.php )

Edit the index.php and below:

elseif ($_GET['s'] == "add")
{
require "lgsl_files/lgsl_add.php";
}

Add

elseif ($_GET['s'] == "custom")
{
require "lgsl_files/lgsl_custom.php";
}

So now your page will load with /lgsl/?s=custom

Next edit the lgsl_custom.php and change the design to display what you want. To show server settings or players you need to change:

lgsl_query_cached_all("s");
To
lgsl_query_cached_all("sep");

( e = exta/settings, p = players );
Website
Ej
Wed Aug 12 2009, 01:57PM
Posts: 13
Joined: Sun Jul 26 2009, 05:07AM
Registered Member #5284
well friend ur info helped me alot to learn some things

i did what u told me but i just edited finally the lgsl_list.php as i liked and the result is here LINK

This layout is my preference for clan with small amount of servers. The font is now 12, instead of 10, for begger letters.
Anyone wanting help, please post here

Also the Game link is replaced with Server Details link, feel free to ask me anything
Website
Rich
Wed Aug 12 2009, 02:37PM
Posts: 1717
Joined: Wed Nov 26 2003, 04:30PM

Looks great
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