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

Guests: 19

46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x dilbertplus
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x news
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 dilbertplus
46.229.x.x forum
46.4.x.x forum
46.4.x.x dilbertplus
54.234.x.x forum
60.53.x.x forum
78.46.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
LGSL code for myBB template.
uzurpatoru
Mon Oct 21 2013, 10:44AM
Posts: 2
Joined: Mon Oct 21 2013, 10:39AM
Registered Member #7830
Hello everyone!
My lgsl script works perfectly, but, i wish to integrate the table, in my myBB forum template, for example, in header or in index.
What am i supposed to do please?

I tryed this code in index template:

<?php

global $output;
$output = "";
require "serverstats/lgsl_files/lgsl_list.php";
echo $output;
unset($output);
?>

But no effect, nothing shows up.

Thank you.
Wussie
Mon Oct 21 2013, 02:47PM

Posts: 437
Joined: Sun Mar 22 2009, 06:53AM
Registered Member #4938
Hi.
Assuming the path is wright, try checking the error log of your webserver and see if there's anything related to lgsl in there.

You can also try tweaking the parameters under [HOSTING FIXES] in lgsl_config.php, make sure LGSL gets it's path correctly.

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
uzurpatoru
Mon Oct 21 2013, 03:23PM
Posts: 2
Joined: Mon Oct 21 2013, 10:39AM
Registered Member #7830
I found out the problem. The myBB didn't allowed me to use php in templates. I've installed a plugin which allowes that and now it's fine. But i have another question.
When one click's on the Click To View Server Details icon, i want to display on that page, only the PLAYERS ONLINE + NICK. Not all the informations in there, like: adress, operating sistem, anticheat etc. In fact, i want once someone clicks on the CLICK TO VIEW SERVER DETAILS, a list with online players nicks will appear. How can i do that? Thank you!
Dodgeitorelse
Mon Oct 21 2013, 11:22PM
Posts: 246
Joined: Sun Dec 12 2010, 09:16AM
Registered Member #6457
In lgsl_details.php find

$server = lgsl_query_cached($lookup['type'], $lookup['ip'], $lookup['c_port'], $lookup['q_port'], $lookup['s_port'], "sep");



and remove the e from the sep part such as

$server = lgsl_query_cached($lookup['type'], $lookup['ip'], $lookup['c_port'], $lookup['q_port'], $lookup['s_port'], "sp");



all that info you don't want is called extra which is the e you removed. s= servers, e= extra info and p= players

lack of effort on your part requires less effort on my part
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