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

Guests: 16

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