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

Guests: 41

151.80.x.x dilbertplus
157.55.x.x forum
173.212.x.x dilbertplus
216.244.x.x user
36.250.x.x guestbook
46.229.x.x forum
46.229.x.x forum
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 user
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
5.196.x.x forum
54.145.x.x forum
54.186.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 dilbertplus
54.36.x.x lgsl
54.36.x.x lgsl
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x lgsl
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x lgsl
54.36.x.x dilbertplus
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
95.216.x.x forum

Last Seen

mrstipfan Wed 10:54
Nouton^ Wed 10:12
Wussie Mon 01:59
Dodgeitorelse Mon 16:49
85filip58 Wed 12:06

Newest Members

Forums
Joomla
Seppo
Sun Jan 02 2011, 06:25AM
Posts: 10
Joined: Fri Dec 31 2010, 01:52AM
Registered Member #6487
Hi, could anyone help me get my server looks like this site please

http://ufbteam.com/

They use joomla aswell but i can get mine look the same
KIKOFF
Sun Jan 02 2011, 01:14PM

Posts: 132
Joined: Thu Nov 18 2010, 08:18AM
Registered Member #6411
Hi i use this output to doing that:



$output .= "
      <td style='vertical-align:top;'>
        <table summary='' style='width:246px; float:left; margin:auto; text-align:left; padding:5px;'>
          <tr>
            <td>
              <div style='left:0px; right:0px; top:0px; bottom:0px; overflow:hidden;'>
                <img alt='' src='{$misc['icon_game']}' title='{$lgsl_type_list[$server['b']['type']]}' style='padding-right:2px; border:none; float:left;' />
        <img alt='' src='{$misc['icon_status']}' title='{$misc['text_status']}' style='padding-right:2px; border:none; float:left;' />
        <a href='".lgsl_link($server['o']['id'])."' title='{$server['s']['name']}'>{$misc['name_filtered']}</a>
              </div>
            </td>
          </tr>

          <tr>
            <td>
              <div style='left:0px; right:0px; top:0px; bottom:0px;  white-space:nowrap; overflow:hidden;'>
                <span>{$lgsl_config['text']['map']} {$server['s']['map']}</span> - <span>{$lgsl_config['text']['zpl']}</span>
                <span>{$server['s']['players']} / {$server['s']['playersmax']}</span>
              </div>
            </td>
          </tr>
          </table>
      </td>";


Also set to 0 "ZONE SHOWS PLAYER NAMES" in lgsl_config.

Hope this help you, KIKOFF


Lo cortez, no quita lo valiente... ahhh... yes e107 Rock
Seppo
Sun Jan 02 2011, 01:28PM
Posts: 10
Joined: Fri Dec 31 2010, 01:52AM
Registered Member #6487
Hi tyvm, do you know how i can change it to that code you posted in joomla ?
KIKOFF
Sun Jan 02 2011, 01:41PM

Posts: 132
Joined: Thu Nov 18 2010, 08:18AM
Registered Member #6411
Sorry, in lgsl_zone after line 60 more or less. Replace all before closing the foreach.

Lo cortez, no quita lo valiente... ahhh... yes e107 Rock
Seppo
Sun Jan 02 2011, 01:42PM
Posts: 10
Joined: Fri Dec 31 2010, 01:52AM
Registered Member #6487
Ok thanks will try find it Cant see the lines since i use notepad hehe thanks again
KIKOFF
Sun Jan 02 2011, 01:44PM

Posts: 132
Joined: Thu Nov 18 2010, 08:18AM
Registered Member #6411
Seppo wrote ...

Ok thanks will try find it Cant see the lines since i use notepad hehe thanks again

Omg... use Notepad++ its free and good software

Lo cortez, no quita lo valiente... ahhh... yes e107 Rock
Seppo
Sun Jan 02 2011, 01:54PM
Posts: 10
Joined: Fri Dec 31 2010, 01:52AM
Registered Member #6487
So i should replce this ?

if (!$server_list)

{

$output .= "<div style='margin:auto; text-align:center'>NO SERVERS IN ZONE {$lgsl_zone_number}</div>"; return;

}
KIKOFF
Sun Jan 02 2011, 01:59PM

Posts: 132
Joined: Thu Nov 18 2010, 08:18AM
Registered Member #6411
I paste all code, so you can compare:

<?php

 
/*----------------------------------------------------------------------------------------------------------\
 |                                                                                                            |
 |                      [ LIVE GAME SERVER LIST ] [ © RICHARD PERRY FROM GREYCUBE.COM ]                       |
 |                                                                                                            |
 |    Released under the terms and conditions of the GNU General Public License Version 3 (http://gnu.org)    |
 |                                                                                                            |
 \-----------------------------------------------------------------------------------------------------------*/

//------------------------------------------------------------------------------------------------------------+

  
global $lgsl_config$lgsl_zone_number;

  if (!isset(
$lgsl_zone_number)) { exit("LGSL PROBLEM: $lgsl_zone_number NOT SET"); }

  require 
"lgsl_class.php";

  
$zone_width $lgsl_config['zone']['width']."px";
  
$zone_grid  = isset($lgsl_config['grid'][$lgsl_zone_number]) ? $lgsl_config['grid'][$lgsl_zone_number] : 1;
  
$zone_count 0;

//------------------------------------------------------------------------------------------------------------+

  
$request     = empty($lgsl_config['players'][$lgsl_zone_number]) ? "s" "sp";
  
$server_list lgsl_query_group( array( "request"=>$request"zone"=>$lgsl_zone_number ) );
  
$server_list lgsl_sort_servers($server_list);

//------------------------------------------------------------------------------------------------------------+

  
if (!$server_list)
  {
    
$output .= "<div style='margin:auto; text-align:center'>NO SERVERS IN ZONE {$lgsl_zone_number}</div>"; return;
  }

//------------------------------------------------------------------------------------------------------------+

  
$output .= "
  <table cellpadding='0' cellspacing='0' style='width:100%; margin:auto; text-align:left'>
    <tr>"
;

    foreach (
$server_list as $key => $server)
    {
      
$server lgsl_sort_players($server);
      
$misc   lgsl_server_misc($server);
      
$server lgsl_server_html($server);
      if (
$server['b']['type'] != $previous_type)
      {
      if (!isset(
$lgsl_type_list)) { $lgsl_type_list lgsl_type_list(); }}
      
//------------------------------------------------------------------------------------------------------------+
      
if ($zone_count != && !($zone_count $zone_grid))
      {
        
$output .= "
        </tr>
        <tr>"
;
      }

      
$zone_count ++;
//------------------------------------------------------------------------------------------------------------+

      
$output .= "
      <td style='vertical-align:top;'>
        <table summary='' style='width:246px; float:left; margin:auto; text-align:left; padding:5px;'>
          <tr>
            <td class='zone_1'>
              <div style='left:0px; right:0px; top:0px; bottom:0px; overflow:hidden;'>
                <img alt='' src='
{$misc['icon_game']}' title='{$lgsl_type_list[$server['b']['type']]}' style='padding-right:2px; border:none; float:left;' />
        <img alt='' src='
{$misc['icon_status']}' title='{$misc['text_status']}' style='padding-right:2px; border:none; float:left;' />
        <a href='"
.lgsl_link($server['o']['id'])."' title='{$server['s']['name']}'>{$misc['name_filtered']}</a>
              </div>
            </td>
          </tr>

          <tr>
            <td class='zone_2'>
              <div style='left:0px; right:0px; top:0px; bottom:0px;  white-space:nowrap; overflow:hidden;'>
                <span>
{$lgsl_config['text']['map']}&nbsp;{$server['s']['map']}</span>&nbsp;-&nbsp;<span>{$lgsl_config['text']['zpl']}</span>
                <span>
{$server['s']['players']} / {$server['s']['playersmax']}</span>
              </div>
            </td>
          </tr>
          </table>
      </td>"
;

    }

    
$output .= "
    </tr>
  </table>"
;

//------------------------------------------------------------------------------------------------------------+


EDIT: Set the language string to Map "{$lgsl_config['text']['map']}" i forgot

Lo cortez, no quita lo valiente... ahhh... yes e107 Rock
Seppo
Sun Jan 02 2011, 02:14PM
Posts: 10
Joined: Fri Dec 31 2010, 01:52AM
Registered Member #6487
Awsome works perfect Thanks
KIKOFF
Sun Jan 02 2011, 02:19PM

Posts: 132
Joined: Thu Nov 18 2010, 08:18AM
Registered Member #6411
You wellcome, if you can put the url to see the result.

Saludos, KIKOFF

Lo cortez, no quita lo valiente... ahhh... yes e107 Rock
Seppo
Mon Jan 03 2011, 02:47AM
Posts: 10
Joined: Fri Dec 31 2010, 01:52AM
Registered Member #6487
I sure will when the site is done Got some stuff to add and such Do you know if it possible to change the link when you click the server name ? So it connect to steam instead ?
KIKOFF
Mon Jan 03 2011, 10:50AM

Posts: 132
Joined: Thu Nov 18 2010, 08:18AM
Registered Member #6411
Tray to replace:
".lgsl_link($server['o']['id'])."

To:
{$misc['software_link']}


I not use Steam...

Lo cortez, no quita lo valiente... ahhh... yes e107 Rock
Seppo
Fri Jan 07 2011, 11:00AM
Posts: 10
Joined: Fri Dec 31 2010, 01:52AM
Registered Member #6487
Ah dident work I tought it would be more simple if i used the code u game me for my server list, and then when people click the link it starts the game in steam
KIKOFF
Fri Jan 07 2011, 11:15AM

Posts: 132
Joined: Thu Nov 18 2010, 08:18AM
Registered Member #6411
Hi Seppo, do you read the sticky for game conection?
http://www.greycube.com/site/e107_plugins/forum/forum_viewtopic.php?657

Lo cortez, no quita lo valiente... ahhh... yes e107 Rock
 

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